CircleCI MCP Server enables natural language interaction with CircleCI through Model Context Protocol, allowing developers to manage pipelines, analyze builds, and debug failures using AI assistants like Cursor, Claude, and VS Code.
Retrieves detailed failure logs from CircleCI builds using project slug and branch, CircleCI URLs, or local project context.
Identifies flaky tests in your CircleCI project by analyzing test execution history using project slug, CircleCI project URL, or local project context.
Retrieves the status of the latest pipeline for a given branch using project slug and branch, CircleCI project URL, or local project context.
Retrieves test metadata for CircleCI jobs using project slug and branch, CircleCI URL, or local project context.
Assists with CircleCI configuration tasks by providing guidance and validation for CircleCI config files.
Helps generate structured prompt templates for AI-enabled applications based on feature requirements.
Generates test cases for prompt templates to ensure they produce expected results.
Lists all projects that the user is following on CircleCI with project names and projectSlugs.
Triggers a pipeline to run using project slug and branch, CircleCI URL, or local project context.
Triggers a rollback for a project by either executing a rollback pipeline or rerunning a previous workflow.
Reruns a workflow from its start or from the failed job and returns the ID of the newly-created workflow.
Analyzes git diffs against cursor rules to identify rule violations in staged or unstaged changes.
Lists all versions for a specific CircleCI component in an environment with deployment status and commit information.
Downloads usage data from the CircleCI Usage API for a given organization using flexible date input.
Analyzes CircleCI usage data CSV files to find jobs/resource classes with average or max CPU/RAM usage below a given threshold.
{
"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"
}
}
}
}