Skip to content

Menu

CircleCI MCP Server logo

CircleCI MCP Server

Published

At a glance

Watch out for
The hosted server cannot author config or manage orbs; that needs the CLI MCP.

The original @circleci/mcp-server-circleci package is deprecated: CircleCI-Public/mcp-server-circleci no longer gets feature work and says it will be archived. CircleCI now offers two replacements. One is a hosted server at https://mcp.circleci.com/v1/mcp, run by CircleCI and listed in the Claude and Cursor MCP directories. The other is built into the CircleCI CLI (CircleCI-Public/circleci-cli), which runs a local MCP server from the same binary you already use for config validation and orbs.

They split the work differently. The hosted server has a small, fixed tool set aimed at inspecting and acting on CI runs: listing runs, drilling into workflows and jobs, reading failed step logs and test results, and rerunning or cancelling workflows. The CLI MCP does not have a fixed list; it exposes CLI commands as tools, so its reach covers config authoring, orgs and projects, orbs, policy, self-hosted runners, deploy tracking and raw API calls through circleci api. CircleCI's guidance is to use the CLI version when the agent needs to write or validate config or do admin work.

The two are independent and can be connected at the same time. If you still have the old npx-based server configured, CircleCI asks you to remove it first; its README also warns against running an unmaintained server that holds a personal API token.

How it connects

Your AI app

An assistant or agent that supports MCP

CircleCI MCP Server

Runs as

  • Local process
  • Remote (HTTP)

Gives the agent

  • Runs and workflows (hosted)
  • Jobs and logs (hosted)
  • Tests and artifacts (hosted)
  • Actions (hosted)
  • Usage data (hosted)
  • CLI commands (local)

CircleCI

Signs in with

  • OAuth / browser sign-in
  • Token
Your AI app talks to CircleCI MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Runs and workflows (hosted)
list_runs filters a project's runs by branch or status, get_run shows one run with config errors, and list_workflows and get_workflow drill into it.
Jobs and logs (hosted)
list_jobs and get_job show per-step detail and exit codes; get_job_logs reads step output, defaulting to failed steps.
Tests and artifacts (hosted)
list_job_tests returns failing tests by default, and list_artifacts lists saved files such as coverage and test reports.
Actions (hosted)
rerun_workflow reruns from the start or, with from_failed, only failed jobs; cancel_workflow stops a running workflow.
Usage data (hosted)
download_usage_data exports org usage as CSV for up to 31 days; hello checks connectivity.
CLI commands (local)
The CLI MCP exposes CircleCI CLI commands as tools; circleci help reference lists them, including config, orbs, policy, runners and circleci api.

Setting it up

For the hosted server in Claude Code, run claude mcp add --transport http circleci-mcp-server https://mcp.circleci.com/v1/mcp, then open /mcp and authenticate in the browser with OAuth2. Cursor, VS Code and Windsurf take the same URL in their MCP config files, and Claude Desktop can add CircleCI from the connector directory. If your host cannot do OAuth2, send a personal API token as an Authorization: Bearer header. For the CLI MCP, install the CircleCI CLI, sign in with circleci auth login or set CIRCLE_TOKEN, and run circleci mcp claude enable, circleci mcp cursor enable or circleci mcp vscode enable. circleci mcp start serves over stdio and circleci mcp stream over HTTP; swap enable for disable to remove it.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Finding out why the latest pipeline on a branch failed
  • Pulling the failing tests from a job without opening the UI
  • Rerunning only the failed jobs of a flaky workflow
  • Having an agent write and validate a config change through the CLI

Limitations and things to watch

  • The hosted server cannot author config or manage orbs; that needs the CLI MCP.
  • rerun_workflow reruns every job unless from_failed is set.
  • Rerun and cancel change real CI state on shared projects.
  • Hosts must support remote MCP over streamable HTTP for the hosted server.
  • New tools appear only after restarting or reconnecting the MCP host.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…