CircleCI MCP server: deprecated, and what replaced it
Which of CircleCI's two MCP servers to connect, what an agent can ask each of them, and why thirteen CircleCI tools cost more context than GitHub's forty-four.
Last verified 1 September 2026 · from CircleCI's repository, its documentation and the server's own tools/list response
This page is one of 90 in a directory of monitoring and developer tools. Each page checks what an AI coding agent can get out of the tool through its MCP server, the connector that lets the agent query the tool directly.
Summary
CircleCI publishes an official MCP server, and the npm package version of it is deprecated. Its README opens with "This package is deprecated. Please migrate."
The replacement is CircleCI's hosted server at mcp.circleci.com, which removes the need to run a process holding your personal API token. CircleCI names that token specifically as the reason not to keep running the old one.
The tools are strong for CI work, and they are expensive. 13 CircleCI tools cost about 11,755 tokens. GitHub's default 44 tools cost less than that. The reason is description length, not tool count.
What is the CircleCI MCP server?
It is CircleCI's server for the Model Context Protocol. The agent gains tools for reading build failures, finding flaky tests, and checking pipeline status.
There are two surfaces and they are not equal. The npm package @circleci/mcp-server-circleci runs on your machine and holds a CircleCI personal API token. The hosted server at mcp.circleci.com is CircleCI's current recommendation and its direct replacement.
The deprecation is explicit rather than implied. The README states the repository will be archived, that existing versions remain installable, and that running an unmaintained server holding a personal API token is not recommended.
CircleCI covers release broadly, reaches part of the way into code review through test results, and reaches nothing in production observability, agent observability or cost.
| Part of the work | What CircleCI has here | Can an agent reach it |
|---|---|---|
| Code, tests & review | Test results and flaky-test detection | Partial. Test failures and flaky tests are readable, which is review evidence. There is no diff or review feature |
| CI & release | Pipelines, workflows, jobs, artifacts, rollbacks | Yes. Core strength, and the product's whole purpose |
| Production observability | None | No infrastructure telemetry. CircleCI knows the build, not the running system |
| Agent observability & evals | None | No traces, evaluations or prompt versioning for your own agents |
| AI cost management | Compute usage data | Partial, and not AI cost. download_usage_api_data reports CircleCI credit consumption, not token spend |
In practice, CircleCI answers questions about what the pipeline did and why it failed, and nothing about the system the pipeline deployed to. An agent connected here can find the flaky test behind an intermittent failure and re-run the workflow. It cannot tell you that the deploy made production slower. Pair this connector with an observability one.
What can an AI agent do with CircleCI?
| Task | Tools | Works | Watch out for |
|---|---|---|---|
| Explain why the build failed | get_build_failure_logs get_latest_pipeline_status | Yes | Log output is the failing step, not the whole run |
| Find flaky tests | find_flaky_tests get_job_test_results | Yes | Needs test results uploaded through store_test_results |
| Re-run a workflow after a fix | rerun_workflow run_pipeline | Yes | These are writes, and nothing gates them |
| Roll a deployment back | run_rollback_pipeline list_component_versions | Yes | A write that reaches production. Keep it off the allowlist |
| Check what CircleCI is costing | download_usage_api_data find_underused_resource_classes | Yes | Credit usage, not token spend. This is not AI cost management |
| Validate a config before pushing | config_helper | Yes | Validates syntax, not whether the pipeline does what you meant |
| Explain a production regression | No | No telemetry. CircleCI sees the deploy, not its effect |
13 tools registered, all on by default
- Build failures2
get_build_failure_logsget_latest_pipeline_status- Tests2
find_flaky_testsget_job_test_results- Projects and artifacts3
list_followed_projectslist_artifactslist_component_versions- Config1
config_helper- Usage and cost2
download_usage_api_datafind_underused_resource_classes- Triggering pipelines3Write
run_pipelinererun_workflowrun_rollback_pipeline
Counted from the server's own tools/list response on the published npm package, 19 August 2026. The write group has no server-side flag; the only gate is your client's allowlist.
What connecting costs before the first question
A context window is the amount of text a model can hold at once, and connecting uses some of it before the agent asks anything. Every tool the server registers sends its name, description and input schema to the model when the session starts. The tool list is charged whether or not a single tool is called.
Thirteen tools here cost more than GitHub's default forty-four. The cause is description length. CircleCI's tool descriptions average 2,560 characters; GitHub's average 124, about twenty times shorter.
Long descriptions are not automatically wrong, and CircleCI's carry worked examples and parameter guidance that help an agent choose correctly. The cost is real either way, and it is paid on every session whether or not a tool is called.
| Tool set | Tools | Tokens (GPT-5.6, GPT-5.5) | Tokens (GPT-4, GPT-3.5) | Tokens (Claude Haiku 4.5 to Opus 5) | Share of a 200,000-token window |
|---|---|---|---|---|---|
| Every tool, as registered | 13 | 11,755 to 12,891 | 11,701 to 12,873 | 14,290 to 19,164 | 5.9% to 9.6% |
Encodings: GPT-5.6, GPT-5.5 o200k_base; GPT-4, GPT-3.5 cl100k_base; Claude Haiku 4.5 to Opus 5 count_tokens. Counted 19 August 2026 from tools/list on the published @circleci/mcp-server-circleci package, run locally with a placeholder token.
Registration is static, so no CircleCI account was involved. Figures cover name, description and input schema. The two models in column one share the o200k_base encoding, so they get one count. The spread is formatting, about 10%, narrow because prose rather than schemas carries the payload. Reasoning tokens are output, spent per request. The tool list is input, charged once at connection.
The Claude figures are measured rather than encoded. Anthropic publishes no local tokenizer, so the definitions were sent to the API's count_tokens endpoint and a no-tools baseline subtracted. The range covers two tokenizer generations rather than two serializations. Haiku 4.5 and Opus 4.6 sit at the low end, Opus 5 and Sonnet 5 at the high end. The gap between them is about a third.
CircleCI MCP server limits: where answers come back incomplete
CircleCI documents the limits below. The first is about the package's lifecycle, not an incomplete answer. The other two are about answers that come back incomplete.
The agent says: “The CircleCI server is connected and working.” It is, and it is deprecated.
Deprecation does not break a server, which is what makes it easy to miss. The package still installs from npm and still answers, so nothing in the agent's behavior signals the change. CircleCI states the repository will be archived and that the package is no longer receiving feature work.
The specific risk CircleCI names is the credential: running an unmaintained server that holds a CircleCI personal API token is not recommended. A server that stops receiving updates keeps holding the token.
Guard: Migrate to the hosted server at mcp.circleci.com. If you run the self-managed remote transport, CircleCI names that as the first one to move.
The agent says: “There are no test results for that job.” Test results were never uploaded.
find_flaky_tests and get_job_test_results read CircleCI's test metadata, which only exists when the pipeline uploads it with store_test_results. A job that runs tests but never stores them produces a real, empty answer, and the response does not explain why it is empty.
Guard: Confirm store_test_results is in the config before trusting a negative answer about flaky tests.
The agent says: “I rolled the deployment back.” True, and nothing on the server stopped it.
run_pipeline, rerun_workflow and run_rollback_pipeline are write tools with no read-only flag on the server. The only gate is your MCP client's allowlist.
Guard: Approve read tools only. In Claude Code, run /permissions and leave the three pipeline-triggering tools unapproved.
How to configure CircleCI MCP for agents
- 1
Migrate before you configure
CircleCI states this package is deprecated and the repository will be archived, and names the hosted server at
mcp.circleci.comas the replacement. - 2
If you must run it, treat the token as the risk
CircleCI's own warning is that running an unmaintained server holding a personal API token is not recommended.
- 3
Keep the three pipeline triggers off the allowlist
run_pipeline,rerun_workflowandrun_rollback_pipelineall reach production, and the server has no read-only mode. - 4
Budget the context
Thirteen tools cost about 11,755 tokens, roughly 6% of a 200,000-token window, because the descriptions are long rather than because the tools are many.
Paste this into your agent’s instructions
CircleCI's quiet failure is an empty test result: find_flaky_tests returns nothing both when there are no flaky tests and when the pipeline never uploaded results. The block makes the agent say which it saw.
When you answer using CircleCI MCP tools, state: - The project and branch each result came from. - Whether test results were present. find_flaky_tests needs store_test_results in the pipeline, so an empty answer may mean no results were uploaded rather than no flaky tests. - Whether you triggered anything. run_pipeline, rerun_workflow and run_rollback_pipeline all reach production. Never state that data does not exist. State that none was returned under the constraints above. Write your answer in ASD-STE100 Simplified Technical English. Use short sentences with one idea in each.
Do you need the MCP server at all?
Not for the common cases. The CircleCI CLI and the v2 REST API cover pipelines, workflows and jobs, and CircleCI now also offers a CLI-based MCP as one of the two supported routes.
The server adds flaky-test analysis and the usage tools, which have no convenient CLI shape. Its descriptions are also detailed enough that an agent picks the right call unprompted.
The deprecation changes the calculation. Between an unmaintained local package and a maintained hosted endpoint, the hosted one is the better default even where the CLI would also do.
Use the hosted server. Reach for the CLI when the agent already has the repository and the question is about one pipeline.
CircleCI MCP server setup
The hosted server at mcp.circleci.com is CircleCI's recommendation and needs no install. The deprecated npm package runs with npx and needs a CircleCI personal API token in CIRCLECI_TOKEN.
Set CIRCLECI_BASE_URL as well if your organization is on a self-hosted or non-default CircleCI domain.
Claude Code, hosted
The recommended route. No token appears in the config because the hosted server authenticates through its own OAuth flow on first connect.
claude mcp add --transport http circleci https://mcp.circleci.com/v1/mcp
Claude Code, deprecated package
Only where the hosted server is not an option. This process holds your personal API token.
claude mcp add-json "circleci" '{"command":"npx",
"args":["-y","@circleci/mcp-server-circleci"],
"env":{"CIRCLECI_TOKEN":"<your-token>"}}'Cursor
In ~/.cursor/mcp.json for all projects, or .cursor/mcp.json in one.
{"mcpServers":{"circleci":{"command":"npx",
"args":["-y","@circleci/mcp-server-circleci"],
"env":{"CIRCLECI_TOKEN":"<your-token>"}}}}Codex CLI
Codex reads TOML, so the JSON blocks above will not transfer.
[mcp_servers.circleci]
command = "npx"
args = ["-y", "@circleci/mcp-server-circleci"]
env = { CIRCLECI_TOKEN = "<your-token>" }Every other client
Each block below is the configuration for one client, with the file path and the key that client expects.
Claude Desktop
macOS ~/Library/Application Support/Claude/claude_desktop_config.json. Windows %APPDATA%\Claude\claude_desktop_config.json. There is no CLI. Edit through Settings, Developer, Edit Config.
Quit and restart fully for changes to load. Paths in args must be absolute. Logs at ~/Library/Logs/Claude/mcp.log.
{"mcpServers":{"circleci":{"command":"npx",
"args":["-y","@circleci/mcp-server-circleci"],
"env":{"CIRCLECI_TOKEN":"<your-token>"}}}}Gemini CLI
~/.gemini/settings.json globally, or .gemini/settings.json per project. Key mcpServers. CLI: gemini mcp add.
{"mcpServers":{"circleci":{"command":"npx",
"args":["-y","@circleci/mcp-server-circleci"],
"env":{"CIRCLECI_TOKEN":"<your-token>"}}}}VS Code Copilot
.vscode/mcp.json per workspace, or your user profile. CLI: code --add-mcp.
{"servers":{"circleci":{"command":"npx",
"args":["-y","@circleci/mcp-server-circleci"],
"env":{"CIRCLECI_TOKEN":"<your-token>"}}}}The key is `servers`, not `mcpServers`. VS Code is the only client that uses that name, and copying a config from anywhere else fails silently.
Windsurf
~/.codeium/windsurf/mcp_config.json, which is the path Windsurf documents. Key mcpServers, the same JSON shape as Cursor, carrying the same API token.
Zed
~/.config/zed/settings.json, carrying the same API token as the blocks above.
The key is `context_servers`. Zed does not call them MCP servers in config, so searching its settings for mcp finds nothing.
Google Antigravity
~/.gemini/config/mcp_config.json globally, or .agents/mcp_config.json per project. Key mcpServers. There is no CLI. Use the /mcp overlay in the editor. Supports stdio, streamable HTTP, SSE and websocket.
{"mcpServers":{"circleci":{"command":"npx",
"args":["-y","@circleci/mcp-server-circleci"],
"env":{"CIRCLECI_TOKEN":"<your-token>"}}}}Amp (Sourcegraph)
~/.config/amp/settings.json or .amp/settings.json, carrying the same API token. The amp mcp CLI covers approve, doctor and oauth.
The key is `amp.mcpServers`, namespaced. A bare mcpServers block is ignored.
Cline
~/.cline/mcp.json per the docs. The source also reads ~/.cline/data/settings/cline_mcp_settings.json. Key mcpServers, standard JSON shape, carrying the same API token. Supports stdio, streamable HTTP and SSE.
Goose (Block)
~/.config/goose/config.yaml, carrying the same API token.
YAML, and servers are called `extensions`. Goose does not use the MCP vocabulary in config at all. Add one interactively with goose configure, or per session with goose session --with-extension.
Kiro (AWS)
.kiro/settings/mcp.json per workspace, or ~/.kiro/settings/mcp.json globally. Key mcpServers, standard JSON shape, carrying the same API token.
Warp
~/.warp/.mcp.json or .warp/.mcp.json. Key mcpServers, standard shape, carrying the same API token. Also addable through the /agent-add-mcp skill.
JetBrains Junie
.junie/mcp/mcp.json per project, or ~/.junie/mcp/mcp.json. Key mcpServers, carrying the same API token. Use /mcp in the CLI to manage.
Roo Code
.roo/mcp.json per project. The global file is mcp_settings.json, opened from the Roo Code MCP settings view with Edit Global MCP. Key mcpServers, carrying the same API token.
Continue
.continue/mcpServers/*.yaml, one file per server, carrying the same API token.
YAML, and `mcpServers` is a list, not an object. Every JSON client keys servers by name. Continue takes an array, so a converted config will not parse.
Trae
.trae/mcp.json per project, or paste into the UI under Raw Config (JSON). Key mcpServers, standard shape, carrying the same API token.
Devin
Devin has no config file to edit. Servers are added through a web form in the settings UI, and Devin's documentation states you do not need to write or paste JSON. The block below is the shape those fields describe, shown for reference. Either route uses the same API token.
Self-hosted CircleCI
Point the package at your own domain with CIRCLECI_BASE_URL alongside the token.
CIRCLECI_TOKEN=<your-token> \ CIRCLECI_BASE_URL=https://circleci.example.com \ npx -y @circleci/mcp-server-circleci
Read-only access, permissions and security
The token is the stated risk
CircleCI advises against running an unmaintained server that holds a CircleCI personal API token, which is what this package is.
No read-only mode
Three of CircleCI's thirteen tools trigger pipelines, including a rollback that reaches production. The MCP client allowlist is the remaining control.
Migrate the remote transport first
CircleCI names the self-managed remote transport as the first thing to move. That is the setup where you run the server yourself as a network-facing service, and it brokers your organization's token.
The token carries your access
A personal API token reaches every project you follow, so scope it to a user with the access you would give an agent.
Troubleshooting
- No flaky tests found on a project that has them
find_flaky_testsreads CircleCI's test metadata, which exists only if the pipeline uploads it withstore_test_results. Confirm that step before trusting the result.- 401 on connect
CIRCLECI_TOKENis missing or not a personal API token. For a self-hosted domain, setCIRCLECI_BASE_URLas well.- A pipeline ran that you did not trigger
run_pipeline,rerun_workflowandrun_rollback_pipelineare write tools with no server-side flag. Remove them from your client's allowlist.- The package still installs but feels stale
- It is deprecated and the repository is to be archived. Existing versions remain installable; the hosted server at
mcp.circleci.comis the replacement.
CircleCI MCP server: Reference
| Item | Value |
|---|---|
| Status | Deprecated · repository pushed 6 August 2026 · to be archived |
| Adoption | 91 stars |
| Package | @circleci/mcp-server-circleci on npm; hosted server at mcp.circleci.com |
| Auth | CIRCLECI_TOKEN, a personal API token, plus CIRCLECI_BASE_URL for self-hosted |
| Tools | 13, all on by default, of which 3 trigger pipelines |
| Read-only | None. Gate the pipeline tools in the client |
| Successor | Hosted MCP server, or the CircleCI CLI MCP |
What engineers report
CircleCI's MCP server has 91 stars and was last pushed on 6 August 2026. Public discussion of it is thin, so this section reports counts rather than quotes.
| What was checked | What it shows |
|---|---|
| Stars | 91 |
| Last push | 6 August 2026 |
| Status | Deprecated; repository to be archived |
| Tools | 13, all on by default |
| Average description length | 2,560 characters per tool |
Repository facts retrieved from the GitHub API on 19 August 2026. Tool counts and description lengths come from the server's own tools/list response, not from the README.
Should you connect an agent to CircleCI?
Yes, though it is no longer actively maintained. Best for CircleCI teams connecting the hosted server, with pipeline-triggering tools left off the allowlist.
- Strongest fit
- Teams on CircleCI who want an agent to explain build failures and find flaky tests without leaving the editor.
- Main advantage
- Flaky-test detection and usage analysis, which have no convenient CLI equivalent.
- Main weakness
- The npm package is deprecated, and 13 tools cost more context than another vendor's default 44.
- Operational risk
- Pipeline triggers and rollbacks are write tools with no server-side read-only flag.
From Oodle
One platform for agent traces and infrastructure
Agent traces usually sit in a different product from the rest of your telemetry, so when a slow database makes an agent slow the symptom is in one tool and the cause is in another. Oodle keeps both in one query surface, from $10 per million spans.
See agent observabilityFrequently asked questions
Is the CircleCI MCP server deprecated?
The npm package is. Its README opens "This package is deprecated. Please migrate." and states the repository will be archived. CircleCI's hosted server at mcp.circleci.com is the replacement.
How many tools does it have?
13, all enabled on connection. Counted from the server's own tools/list response on 19 August 2026.
Why does it cost so much context for so few tools?
Description length. CircleCI's tool descriptions average 2,560 characters against GitHub's 124, so 13 tools cost about 11,755 tokens, more than GitHub's default 44.
Can an agent trigger a deploy or a rollback?
Yes. run_pipeline, rerun_workflow and run_rollback_pipeline are write tools and the server has no read-only mode. Restrict them in your MCP client.
Does it cover production monitoring?
No. CircleCI has no infrastructure telemetry. Pair it with an observability connector.