
How to add CircleCI MCP Server to Claude Desktop
Official CircleCI MCP server: inspect and fix failed builds, query pipelines in natural language. Paste the config into ~/Library/Application Support/Claude/claude_desktop_config.json and restart Claude Desktop.
Last updated June 15, 2026 ยท 230โ ยท stdio ยท apikey ยท official
Claude Desktop config for CircleCI MCP Server
npx -y @circleci/mcp-server-circleci{
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": [
"-y",
"@circleci/mcp-server-circleci"
],
"env": {
"CIRCLECI_TOKEN": "<your-circleci-token>"
}
}
}
}Setup steps
- 1Open Claude Desktop โ Settings โ Developer โ Edit Config (this opens ~/Library/Application Support/Claude/claude_desktop_config.json).
- 2Paste the CircleCI MCP Server config below under the top-level "mcpServers" key.
- 3Fill in any placeholder secrets (API keys, paths) in the snippet.
- 4Save the file, then fully quit and reopen Claude Desktop.
- 5Open a chat and confirm CircleCI MCP Server's tools appear under the ๐ tools menu.
Before you start
- Node.js 18+ (run via npx) or Docker
- A CircleCI account with at least one project building on CircleCI
- A CircleCI Personal API Token from app.circleci.com/settings/user/tokens (passed via the CIRCLECI_TOKEN env var)
- An MCP-compatible client: Cursor, VS Code, Claude Desktop, Claude Code, Windsurf, or Amazon Q Developer
What CircleCI MCP Server can do in Claude Desktop
get_build_failure_logsRetrieve detailed logs from a failed build or job to diagnose the cause.
config_helperValidate a .circleci/config.yml and get guidance on fixing configuration errors.
find_flaky_testsIdentify flaky tests across a project using execution history.
get_job_test_resultsPull test metadata and pass/fail outcomes for a CircleCI job.
get_latest_pipeline_statusShow the current pipeline state for a given branch.
run_pipelineTrigger a pipeline run for a project/branch.
rerun_workflowRe-run a workflow from the start or from failed jobs only.
run_rollback_pipelineTrigger a rollback pipeline for a project.
Security
The CircleCI API token can read project configuration, environment variable names and build logs that may contain secrets; scope it to the minimum projects needed and treat it as sensitive.
CircleCI MCP Server + Claude Desktop FAQ
Where is the Claude Desktop config file?
Claude Desktop reads MCP servers from ~/Library/Application Support/Claude/claude_desktop_config.json. Paste the CircleCI MCP Server config there under the "mcpServers" key and restart the client.
Is CircleCI MCP Server safe to use with Claude Desktop?
The CircleCI API token can read project configuration, environment variable names and build logs that may contain secrets; scope it to the minimum projects needed and treat it as sensitive.
Is this the official CircleCI MCP server?
Yes. It is maintained by CircleCI under the CircleCI-Public GitHub org and published as @circleci/mcp-server-circleci.
How do I authenticate?
Create a Personal API Token in your CircleCI user settings and provide it via the CIRCLECI_TOKEN environment variable in your MCP client config.
Which clients are supported?
Cursor, VS Code, Claude Desktop, Claude Code, Windsurf, Amazon Q Developer, and other MCP-compatible clients. It also installs via Smithery.