How to set up the CircleCI MCP Server in Claude
- Open the connector in Claude and authorize access in your browser. In Claude Code, run the command, open /mcp, select circleci-mcp-server, and authenticate.
- Test on a known pipeline using a read-only request before approving any workflow action.
claude mcp add --transport http circleci-mcp-server https://mcp.circleci.com/v1/mcpFind the actual failed job
The hosted server provides pipeline, workflow, and job information from your authorized CircleCI projects. Give Claude a pipeline ID and ask for the first failed job, the failing step, and the relevant log lines. This works more reliably than asking about the latest build when multiple branches are active.
Separate a rerun from a fix
For a web build that failed twice, ask for a side-by-side comparison of the specific workflow attempts. Check that the run URLs, commit SHA, and first failing test match the CircleCI dashboard. If one run passed, look for a rerun on the same SHA before attributing the result to a code change.
Use the hosted setup for CI diagnostics
The hosted server covers run diagnostics and workflow actions. CircleCI documents a separate CLI-based MCP for tasks such as authoring and validating CI configuration. Use the hosted OAuth flow for everyday investigation with Claude.