CircleCI MCP server for AI agents

Live

API KEY

CI/CD

Developer Tools

CircleCI gives your agent CI/CD in your CircleCI account: read pipelines, workflows, jobs, and test results, pull insights and flaky tests, check contexts and environment variables, and trigger, rerun, cancel, and approve runs.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
CircleCI
agent · Acme Q3
Run
Why did the last pipeline on main fail?
S
circleci_project_pipelines_list
219ms
CI agent
The latest pipeline on main failed in the test job of the build-and-test workflow. 2 of 148 tests failed.
Sources: CircleCI pipelines, 1 project
circleci
1 pipeline
18:29
Message Claude...

Tools your CI/CD agent reaches for on CircleCI, scoped per user.

CALL ANY TOOL
30 tools for CI/CD in CircleCI: read pipelines, workflows, jobs, artifacts, and test results, pull insights and flaky tests, check contexts and masked environment variables, and trigger, rerun, cancel, and approve runs.
circleci_collaborations_list
List collaborations
List the organizations the connected user is a member of or collaborates on. Returns each organization's id, name, slug (for example gh/acme), vcs_type and avatar_url. Use this first to find the org slug or organization id that the pipeline, context and insights tools need.
Parameters
Name
Type
Required
Description
—
No parameters required
circleci_context_envvars_list
List context envvars
circleci_context_get
Get context
circleci_contexts_list
List contexts
circleci_insights_flaky_tests_list
List insights flaky tests
circleci_insights_org_summary_get
Get insights org summary
circleci_insights_test_metrics_get
Get insights test metrics
circleci_insights_workflow_jobs_list
List insights workflow jobs
circleci_insights_workflow_runs_list
List insights workflow runs
circleci_insights_workflows_list
List insights workflows
circleci_job_artifacts_list
List job artifacts
circleci_job_cancel
Cancel job
circleci_job_get
Get job
circleci_job_tests_list
List job tests
circleci_me_get
Get me
circleci_pipeline_config_get
Get pipeline config
circleci_pipeline_get
Get pipeline
circleci_pipeline_get_by_number
Pipeline get by number
circleci_pipeline_trigger
Trigger pipeline
circleci_pipeline_workflows_list
List pipeline workflows
circleci_pipelines_list
List pipelines
circleci_project_envvar_get
Get project envvar
circleci_project_envvars_list
List project envvars
circleci_project_get
Get project
circleci_project_pipelines_list
List project pipelines
circleci_workflow_approve
Approve workflow
circleci_workflow_cancel
Cancel workflow
circleci_workflow_get
Get workflow
circleci_workflow_jobs_list
List workflow jobs
circleci_workflow_rerun
Workflow rerun
Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// CircleCI tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["circleci"], toolNames: [
    "circleci_project_pipelines_list",
    "circleci_workflow_jobs_list",
    "circleci_workflow_rerun"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Show the latest pipeline on main, find the failed job in its workflow, and rerun the workflow from its failed jobs" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["circleci"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Show the latest pipeline on main, find the failed job in its workflow, and rerun the workflow from its failed jobs" }],
  tools,
});

// Execute the tool call with the user's vaulted CircleCI API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["circleci"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Show the latest pipeline on main, find the failed job in its workflow, and rerun the workflow from its failed jobs" }],
  tools,
});

// Tool call runs with the user's vaulted CircleCI API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["circleci"] }, pageSize: 100,
});

const agent = new Agent({
  name: "ci_agent",
  model: "gemini-2.5-pro",
  instruction: "CircleCI tools scoped to this user",
  tools,
});

await agent.run("Show the latest pipeline on main, find the failed job in its workflow, and rerun the workflow from its failed jobs");
Try these prompts
Copy any prompt into your agent. Each maps directly to a CircleCI tool. Click to copy, paste into your agent, done.
Pipelines and jobs
Copy the prompt
Copied
List the recent pipelines on main for this project.
Copy the prompt
Copied
Show the workflows and jobs of this pipeline.
Copy the prompt
Copied
List the test results for this job.
Insights
Copy the prompt
Copied
Which tests are flaky in this project?
Copy the prompt
Copied
Show success rates for each workflow over the last 30 days.
Copy the prompt
Copied
Give me the summary metrics for my organization.
Run and control
Copy the prompt
Copied
Trigger a new pipeline on the release branch.
Copy the prompt
Copied
Rerun this workflow from its failed jobs.
Copy the prompt
Copied
Approve the pending hold step in this workflow.
SEE HOW AUTH WORKS
Each user connects their own CircleCI API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
CircleCI
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
CircleCI
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
CircleCI
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
CircleCI
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other developer tools and automation connectors.
Engineering Teams
DevOps assistant agent
Polls GitHub for failing checks and stale PRs, opens Linear issues for the ones that need work, and posts a daily digest to Slack. It acts as the engineer, not a shared service account.
Engineering Teams
Auto release notes agent
Reads merged GitHub PRs, groups them into structured release notes, publishes the page to Notion, and announces the release in Slack. Every call runs on the engineer's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other developer tools and automation connectors.
ENGINEERING
DevOps assistant agent
Poll GitHub for failing checks and stale pull requests, open Linear issues for the ones that need work, and digest to Slack.
ENGINEERING
Auto-release notes agent
Group merged GitHub PRs into structured release notes, publish the page to Notion, and announce the release in Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared CircleCI API key looks fine in a demo. In production every pipeline trigger and approval looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
CircleCI today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access CircleCI as the user or through a shared key?
As the user. Each user connects their own CircleCI API key once, and Scalekit sends it with every call. Audit logs attribute every pipeline trigger, rerun, and approval to that user, not a shared service account.
Where is the CircleCI API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in CircleCI?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the read and insights tools without circleci_pipeline_trigger, circleci_workflow_rerun, or circleci_workflow_approve, which start runs or release a hold step. Scalekit also enforces scope checks before every API call.
What happens when a user revokes CircleCI access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent read CircleCI environment variable values?
No. circleci_context_envvars_list returns variable names without their values, and circleci_project_envvar_get and circleci_project_envvars_list return values masked. None of the 30 tools is destructive.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""circleci"": {
""url"": ""https://mcp.scalekit.com/circleci"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.circleci]
url = ""https://mcp.scalekit.com/circleci""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""circleci"": {
""url"": ""https://mcp.scalekit.com/circleci"",
""type"": ""http""
}
}
}