CircleCI MCP Server

Enable AI Agents to fix build failures from CircleCI.

Local serverstdio

What is the CircleCI MCP server?

If you want an AI assistant working directly with CircleCI, the circleci mcp server is the bridge. Enable AI Agents to fix build failures from CircleCI.

What CircleCI does

Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems. In this repository, we provide an MCP Server for CircleCI.

Installing the circleci mcp server

The server is distributed via npm as @circleci/mcp-server-circleci, so most clients can run it without a manual build step. Add it to your MCP client's configuration and restart the client to pick it up — the copy-paste configs for Claude Desktop, Claude Code and Cursor are on this page.

Configuration

Before the server will start you need to supply 6 environment variables: CIRCLECI_TOKEN, CIRCLECI_BASE_URL, MAX_MCP_OUTPUT_LENGTH, YOUR_CIRCLECI_TOKEN, REQUIRE_REQUEST_TOKEN, MCP_BIND_HOST. Keep credentials in your client's env block or a secrets manager rather than committing them.

Where it fits

Developer-tool servers are usually the first ones people connect, because they turn "help me with this code" into an assistant that can actually read the repo and act on it. CircleCI sits in that group. Worth comparing against the other developer tools servers in this directory before you commit to one, since several overlap in scope but differ sharply in setup cost and permissions.

Practical notes

  • This server runs locally, so it operates with whatever access your machine and its credentials already have. Scope that deliberately rather than by default.
  • It will not start until its required credentials are present, so set those before wondering why the tools never appear.
  • MCP clients ask for confirmation before each tool call by default. Keep that on while you learn what the circleci mcp server actually does with your data.
  • Every entry in this directory is reviewed by hand before it goes live, and details are checked against the project's own documentation.

How to install the CircleCI MCP server

{
  "mcpServers": {
    "circleci-mcp-server": {
      "command": "npx",
      "args": ["-y", "@circleci/mcp-server-circleci@latest"],
      "env": {
        "CIRCLECI_TOKEN": "your-circleci-token",
        "CIRCLECI_BASE_URL": "https://circleci.com",
        "MAX_MCP_OUTPUT_LENGTH": "50000"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
CIRCLECI_TOKENCredential the server authenticates with.Yes
CIRCLECI_BASE_URLEndpoint or connection string the server talks to.Yes
MAX_MCP_OUTPUT_LENGTHConfiguration value read at startup.Optional
YOUR_CIRCLECI_TOKENCredential the server authenticates with.Yes
REQUIRE_REQUEST_TOKENCredential the server authenticates with.Yes
MCP_BIND_HOSTEndpoint or connection string the server talks to.Optional

Frequently asked questions

It connects CircleCI to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with CircleCI directly.