CircleCI MCP Server
Official CircleCI MCP server that lets LLMs query build and test failures, detect flaky tests, check pipeline status, fetch build logs, and validate config in CircleCI through natural language.
Open the source and read safety notes before installing.
Safety notes
- The server runs locally via npx and is spawned by your MCP client; the published bin entrypoint is dist/index.js.
- Several tools take write/execution actions on your CI — run_pipeline, rerun_workflow, and run_rollback_pipeline can trigger pipelines, re-run workflows, and roll back deployed component versions. Review tool calls before approving them.
- In remote (HTTP/SSE) mode the server listens on a network port (default 8000); set REQUIRE_REQUEST_TOKEN=true to reject unauthenticated requests and avoid exposing it on untrusted networks.
- MAX_MCP_OUTPUT_LENGTH (default 50000) bounds response size; large log/artifact pulls are truncated rather than streamed in full.
Privacy notes
- CIRCLECI_TOKEN is a personal API token that grants the LLM access to your CircleCI projects, build logs, test results, artifacts, and usage data — treat it as a secret and scope it appropriately.
- Build failure logs, test output, and artifacts retrieved by the tools are passed to your LLM/model provider; avoid exposing pipelines containing sensitive secrets or data.
- download_usage_api_data and find_underused_resource_classes surface organization-level CircleCI usage and resource metrics.
- Telemetry is collected by default; set DISABLE_TELEMETRY=true to opt out.
Prerequisites
- Node.js >= 18.0.0
- A CircleCI Personal API token from https://app.circleci.com/settings/user/tokens
- An MCP-compatible client (Cursor, VS Code, Claude Desktop, Windsurf, Copilot, or similar)
- CircleCI projects you follow / have access to with the supplied token
Schema details
- Install type
- cli
- Troubleshooting
- No
- Scope
- Source repo
- Website
- https://circleci.com
Full copyable content
{
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": ["-y", "@circleci/mcp-server-circleci@latest"],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token"
}
}
}
}
About this resource
Content
CircleCI MCP Server is the official Model Context Protocol server published by CircleCI (the CircleCI-Public org). It connects MCP-compatible clients — Cursor, VS Code, Claude Desktop, Windsurf, Copilot, and others — to the CircleCI API so you can investigate CI/CD state through natural language instead of clicking through the CircleCI web UI.
The server is distributed as the npm package @circleci/mcp-server-circleci (v0.16.1 at time of writing) and exposes 18 tools covering build failure diagnosis, flaky-test detection, pipeline status, log and artifact retrieval, config validation, usage/resource reporting, and pipeline actions such as triggering, re-running, and rolling back. It supports both a local stdio transport (the common case, where your client spawns the process) and a remote HTTP + Server-Sent Events mode for shared deployments.
Authentication is via a CircleCI Personal API token supplied through the CIRCLECI_TOKEN environment variable. The package targets Node.js >= 18, ships a mcp-server-circleci bin pointing at dist/index.js, and is licensed under Apache-2.0.
Source Review
- package.json — confirms name
@circleci/mcp-server-circleci, version 0.16.1, Apache-2.0 license, binmcp-server-circleci→./dist/index.js, Node engine>=18.0.0, and dependencies@modelcontextprotocol/sdkandexpress(used for the remote HTTP/SSE transport). - src/index.ts — the main entrypoint registered as the bin script.
- src/circleci-tools.ts — tool registration surface (alongside
src/tools/,src/clients/, andsrc/transports/). - README.md — documents the official status, the 18 tools, environment variables (
CIRCLECI_TOKEN,CIRCLECI_BASE_URL,MAX_MCP_OUTPUT_LENGTH,REQUIRE_REQUEST_TOKEN,DISABLE_TELEMETRY), stdio and remote HTTP/SSE transports, and client config blocks for Cursor, VS Code, Claude Desktop, and Windsurf. - LICENSE — Apache License 2.0.
Features
The server exposes 18 tools, including:
- get_build_failure_logs — retrieve detailed logs for failed builds.
- find_flaky_tests — detect unreliable tests from execution history.
- get_latest_pipeline_status — check the current pipeline/workflow state for a branch.
- get_job_test_results — extract test metadata and execution results.
- config_helper — validate CircleCI YAML config and surface recommendations.
- analyze_diff — check code changes against Cursor rules / project conventions.
- list_artifacts — list downloadable build outputs from jobs.
- list_followed_projects — enumerate CircleCI projects accessible to the token.
- download_usage_api_data — export CircleCI usage metrics as CSV.
- find_underused_resource_classes — identify underutilized compute resources.
- list_component_versions / run_rollback_pipeline — view deployed component versions and roll back to a prior version.
- run_pipeline / rerun_workflow — trigger a pipeline on a branch or re-run a workflow from start or from the point of failure.
- Prompt-engineering helpers (create_prompt_template, recommend_prompt_template_tests, run_evaluation_tests) for building and validating AI prompt templates.
Transports: local stdio and remote HTTP + SSE (the latter via the bundled Express server, gated by REQUIRE_REQUEST_TOKEN for per-user tokens).
Installation
The server runs through npx, so most clients simply spawn it on demand. The README shows config blocks for Cursor, VS Code, Claude Desktop, and Windsurf.
Standard MCP client config (Claude Desktop / Cursor / Windsurf):
{
"mcpServers": {
"circleci-mcp-server": {
"command": "npx",
"args": ["-y", "@circleci/mcp-server-circleci@latest"],
"env": {
"CIRCLECI_TOKEN": "your-circleci-token"
}
}
}
}
VS Code (.vscode/mcp.json) with a prompted, masked token input:
{
"inputs": [
{
"type": "promptString",
"id": "circleci-token",
"description": "CircleCI API Token",
"password": true
}
],
"servers": {
"circleci-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@circleci/mcp-server-circleci@latest"],
"env": {
"CIRCLECI_TOKEN": "${input:circleci-token}"
}
}
}
}
Create a Personal API token at https://app.circleci.com/settings/user/tokens and supply it via CIRCLECI_TOKEN. Optionally set CIRCLECI_BASE_URL (defaults to https://circleci.com) for self-hosted/server installations.
Use Cases
- "Why did my last build fail?" — pull and summarize build failure logs without opening the CircleCI UI.
- Surface and triage flaky tests across recent runs so they can be quarantined or fixed.
- Check the latest pipeline/workflow status for a branch from inside your editor.
- Validate a
.circleci/config.ymlbefore pushing, and get config recommendations. - Inspect job test results and list/download build artifacts.
- Report on CircleCI usage and underused resource classes for cost/capacity tuning.
- Trigger, re-run, or roll back pipelines via natural language (with human approval on each action).
Safety and Privacy
CIRCLECI_TOKEN is a personal API token that grants the connected LLM access to your CircleCI projects, logs, test results, artifacts, and usage data — store it as a secret and scope it to what you need. Build logs, test output, and artifacts retrieved by the tools are forwarded to your model provider, so avoid pointing it at pipelines that expose secrets or sensitive data.
Several tools perform write/execution actions: run_pipeline, rerun_workflow, and run_rollback_pipeline can trigger pipelines, re-run workflows, and roll back deployed component versions. Review and approve these tool calls deliberately. In remote HTTP/SSE mode the server binds a network port (default 8000) — set REQUIRE_REQUEST_TOKEN=true so it rejects unauthenticated requests, and don't expose it on untrusted networks. Telemetry is on by default; set DISABLE_TELEMETRY=true to opt out. Output size is bounded by MAX_MCP_OUTPUT_LENGTH (default 50000).
Duplicate Check
No existing entry in the awesome-claude MCP directory matches this server. A search of the directory index (318 MCP entries) returned zero hits for "circleci," and CircleCI-Public/mcp-server-circleci is absent from the set of unique owner/repo keys. This is a net-new, official, actively maintained server (TypeScript, not archived, last pushed 2026-06-10), so it is not a duplicate.
Source citations
Add this badge to your README
How it compares
CircleCI MCP Server side by side with 3 alternatives on trust, install, platform support, and disclosed safety notes — all from reviewed registry metadata.
| Field | CircleCI MCP Server Official CircleCI MCP server that lets LLMs query build and test failures, detect flaky tests, check pipeline status, fetch build logs, and validate config in CircleCI through natural language. Open dossier | Render MCP Server The official Render MCP server lets LLMs manage Render resources: create and manage web services, static sites, cron jobs, Postgres and Key-Value instances, monitor deploys, query logs and metrics, and run read-only SQL against Render Postgres. Open dossier | Playwright MCP Server for Claude Official Microsoft Playwright MCP server that lets Claude drive a real browser through Playwright's accessibility tree for fast, deterministic web automation and testing. Open dossier | Claude Desktop MCP Setup Configure MCP servers in the Claude Desktop app by editing claude_desktop_config.json. Grounded walkthrough covering config file locations, the mcpServers JSON structure, the filesystem server, and how to verify and troubleshoot the connection. Open dossier |
|---|---|---|---|---|
| Trust | ||||
| Install risk | Review first | Review first | Review first | Low risk |
| Notes | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ | Safety ✓ Privacy ✓ |
| Category | mcp | mcp | mcp | mcp |
| Source | source-backed | source-backed | source-backed | first-party |
| Author | CircleCI-Public | render-oss | Microsoft | JSONbored |
| Added | 2026-06-11 | 2026-06-11 | 2026-06-02 | 2025-10-27 |
| Platforms | Claude CodeCodexCursorClaude Desktop | Claude CodeClaude Desktop | Claude CodeClaude Desktop | Claude CodeClaude Desktop |
| Source repo | — | — | — | — |
| Safety notes | ✓The server runs locally via npx and is spawned by your MCP client; the published bin entrypoint is dist/index.js. Several tools take write/execution actions on your CI — run_pipeline, rerun_workflow, and run_rollback_pipeline can trigger pipelines, re-run workflows, and roll back deployed component versions. Review tool calls before approving them. In remote (HTTP/SSE) mode the server listens on a network port (default 8000); set REQUIRE_REQUEST_TOKEN=true to reject unauthenticated requests and avoid exposing it on untrusted networks. MAX_MCP_OUTPUT_LENGTH (default 50000) bounds response size; large log/artifact pulls are truncated rather than streamed in full. | ✓Write-capable: tools can create and modify real Render infrastructure — create_web_service, create_static_site, create_cron_job, create_postgres, create_key_value, and update_environment_variables provision or change live resources that may incur billing. update_environment_variables replaces the complete environment variable set for a service; an incomplete array can drop existing variables. Created services run build and start commands you supply; treat generated commands as code execution on Render's platform. The server reaches Render's API over the network; the hosted option (https://mcp.render.com/mcp) sends your requests through Render's hosted MCP endpoint. Review and confirm tool calls before approving them, since an LLM can issue provisioning or env-var changes on your behalf. | ✓Launches and controls a real browser process that can navigate to arbitrary URLs and submit forms on your behalf. Treat any site the agent visits as untrusted; only allow automation against pages and actions you intend to run. Persisted browser profiles can keep cookies and logged-in sessions between runs, so isolate sensitive accounts. | ✓Local MCP servers run as processes on your machine with your user account's privileges, so they can perform any file or system operation you can. Only add servers you trust, and restrict filesystem server paths to the minimum directories the workflow needs. Each Claude Desktop tool call (file write, delete, move) requires your explicit approval before it executes; review every request before approving. |
| Privacy notes | ✓CIRCLECI_TOKEN is a personal API token that grants the LLM access to your CircleCI projects, build logs, test results, artifacts, and usage data — treat it as a secret and scope it appropriately. Build failure logs, test output, and artifacts retrieved by the tools are passed to your LLM/model provider; avoid exposing pipelines containing sensitive secrets or data. download_usage_api_data and find_underused_resource_classes surface organization-level CircleCI usage and resource metrics. Telemetry is collected by default; set DISABLE_TELEMETRY=true to opt out. | ✓Authentication uses a RENDER_API_KEY scoped to your Render workspace(s); anyone with the key can manage those resources. Keep it in a server-scoped header or server-scoped env block, not a top-level/global env block shared with other MCP servers. query_render_postgres runs SQL against your Render Postgres and returns row data to the LLM — query results may include sensitive application data. Logs and metrics tools (list_logs, list_log_label_values, get_metrics) surface application log contents and performance data to the model. update_environment_variables and service details can expose configuration values; avoid sending secrets you don't want the model to see. When using the hosted server, requests transit Render's hosted MCP infrastructure rather than staying entirely local. | ✓Page content, form input, and accessibility snapshots from visited sites are returned to the model context. Avoid driving the browser through pages that contain production credentials or private user data unless the profile is isolated. | ✓Configured servers receive the prompts, file contents, and directory data needed to run their tools, and may store credentials (API keys, tokens) passed through the env block. The claude_desktop_config.json file holds server commands, file paths, and environment-variable names; keep it private and do not commit it to public repositories. |
| Prerequisites |
|
|
|
|
| Install | | | | |
| Config | | | | |
| Citations | ||||
| Claim | Unclaimed | Unclaimed | Unclaimed | Unclaimed |
Signals
Loading live community signals…
A short, calm digest of reviewed Claude resources. Unsubscribe any time.