mcp-server-circleci
by CircleCI-Public·★ 83·Score 46
A TypeScript MCP server that integrates CircleCI's development workflow with AI assistants via natural language commands.
Overview
The CircleCI MCP server provides a comprehensive bridge between CircleCI's CI/CD infrastructure and AI assistants like Cursor, Windsurf, Claude, and VS Code. It exposes 18 specialized tools for analyzing builds, finding flaky tests, rerunning workflows, managing artifacts, and optimizing resource usage. The server supports multiple deployment methods including NPX, Docker, and self-managed remote servers, with clear configuration instructions for each popular IDE and client.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose this server if you're using CircleCI for CI/CD and want to interact with your pipelines through natural language commands in your IDE.
When NOT to choose this
Avoid if you're not using CircleCI or prefer a more generic CI/CD tool with broader platform support.
Tools this server exposes
12 tools extracted from the READMEanalyze_diffAnalyze git diffs against cursor rules for violations
config_helperValidate and get guidance for your CircleCI configuration
create_prompt_templateGenerate structured prompt templates for AI applications
download_usage_api_dataDownload usage data from the CircleCI Usage API
find_flaky_testsIdentify flaky tests by analyzing test execution history
find_underused_resource_classesFind jobs with underused compute resources
get_build_failure_logsRetrieve detailed failure logs from CircleCI builds
get_job_test_resultsRetrieve test metadata and results for CircleCI jobs
get_latest_pipeline_statusGet the status of the latest pipeline for a branch
list_artifactsList artifacts produced by a CircleCI job
rerun_workflowRerun a workflow from start or from the failed job
run_pipelineTrigger a pipeline to run
Comparable tools
Installation
Installation
With Claude Desktop
Add to claude_desktop_config.json:
{
"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"
}
}
}
}With VS Code
Add to .vscode/mcp.json:
{
"servers": {
"circleci-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["-y", "@circleci/mcp-server-circleci@latest"],
"env": {
"CIRCLECI_TOKEN": "${input:circleci-token}",
"CIRCLECI_BASE_URL": "${input:circleci-base-url}"
}
}
}
}**Prerequisites:** CircleCI Personal API token, Node.js ≥ v18, pnpm, Docker (optional)
FAQ
- What permissions do I need for the CircleCI API token?
- The token needs the 'Status' and 'Settings' scopes to access pipeline information, build details, and configuration validation features.
- Can I use this server with on-premise CircleCI?
- Yes, you need to set the CIRCLECI_BASE_URL environment variable to your on-premise instance URL instead of the default 'https://circleci.com'.
Compare mcp-server-circleci with
Last updated · Auto-generated from public README + GitHub signals.