Purpose: This is a Model Context Protocol (MCP) server for CircleCI, allowing MCP-enabled clients (Cursor, Windsurf, Copilot, Claude, Amazon Q, etc.) to interact with CircleCI in natural language within the IDE, for example troubleshooting build failures or validating .circleci/config.yml.
Main capabilities (based on the materials): get_build_failure_logs retrieves build failure logs, supporting three approaches: project slug with branch, CircleCI URL, or local project context; validate_config validates configuration syntax and semantics and provides results and suggestions; download_usage_api_data downloads CSV from the usage API (Cloud only, supports natural language dates, with an interval limit of 32 days); find_underused_resource_classes analyzes usage CSV to find jobs whose average or maximum CPU/RAM is below a threshold (default 40%); flaky test detection can output text or a file; get_test_metadata retrieves test metadata.
Usage: Requires a CircleCI Personal API Token. Local stdio mode can use NPX (requires Node.js >= v18 and pnpm), and it can be added to the MCP configuration of each client; CIRCLECI_BASE_URL is only needed for on-prem, and MAX_MCP_OUTPUT_LENGTH defaults to 50000. Teams can use a self-managed remote server with start=remote, bridged via mcp-remote, with request tokens sent via the Authorization: Bearer or Circle-Token header.
Limitations and security: This package is deprecated and no longer maintained, the repository will be archived, and the official recommendation is to migrate to the CircleCI-hosted MCP server or CircleCI CLI MCP; running an unmaintained service holding a Personal API Token is not recommended. File output is restricted to the working directory, the user home directory, and the system temporary directory; out-of-bounds paths or system directories, hidden configuration directories, symlinks, etc. will be rejected, and if necessary set MCP_FILE_OUTPUT_ROOTS. Remote mode requires request authentication by default; when REQUIRE_REQUEST_TOKEN=false occurs together with a non-loopback binding, startup will be refused unless MCP_ALLOW_UNAUTHENTICATED_NETWORK_ACCESS=true is explicitly set. Host/Origin validation only prevents DNS rebinding and is not authentication; public deployments need MCP_ALLOWED_HOSTS set, otherwise /mcp returns 403. The mcp-remote version must not be lower than 0.1.16 (CVE-2025-6514), and pinning the version is recommended for production.