MCP server for querying Codecov coverage data with configurable URL support
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
A Model Context Protocol (MCP) server that provides tools for querying Codecov coverage data. Supports both codecov.io and self-hosted Codecov instances with configurable URL endpoints.
π¦ Published on npm: @egulatee/mcp-codecov π³ Docker image: ghcr.io/egulatee/mcp-server-codecov
π Learn More: Read about building this MCP server with AI in just 2 hours.
Get started in under 2 minutes:
Create an API token (not an upload token) from your Codecov account:
Add to your shell profile (~/.zshrc or ~/.bashrc):
Then reload: source ~/.zshrc
Expected output: codecov: @egulatee/mcp-codecov - β Connected
That's it! You can now use Codecov tools in Claude Code. See Available Tools below.
Important: Codecov has two different types of tokens:
This MCP server requires an API token, not an upload token.
Get line-by-line coverage data for a specific file.
Parameters:
owner (required): Repository owner (username or organization)repo (required): Repository namefile_path (required): Path to the file within the repository (e.g., 'src/index.ts')ref (optional): Git reference (branch, tag, or commit SHA)Example:
Get coverage data for a specific commit.
Parameters:
owner (required): Repository ownerrepo (required): Repository namecommit_sha (required): Commit SHAExample:
Get overall coverage statistics for a repository.
Parameters:
owner (required): Repository ownerrepo (required): Repository namebranch (optional): Branch name (defaults to repository's default branch)Example:
Get coverage data for a specific pull request, including coverage changes and file-level impact.
Parameters:
owner (required): Repository owner (username or organization)repo (required): Repository namepull_number (required): Pull request numberExample:
Use Cases:
Compare coverage between two git references (branches, commits, or tags).
Parameters:
owner (required): Repository owner (username or organization)repo (required): Repository namebase (required): Base reference (e.g., 'main', commit SHA)head (required): Head reference to compare against baseExample:
Use Cases:
Important Note: Before a repository can receive coverage uploads, it must be activated in Codecov. This is a one-time setup step that cannot be automated via API.
To activate a repository for coverage tracking:
Why manual activation is required: The Codecov API v2 does not provide a /activate endpoint. Repository activation must be done through the web UI or happens automatically on first coverage upload (depending on your Codecov configuration).
1. 401 Unauthorized Error
CODECOV_BASE_URL2. Environment Variable Not Expanding
~/.zshrc or ~/.bashrc)echo $CODECOV_TOKEN3. Connection Failed
echo $CODECOV_TOKENclaude mcp get codecov4. HTTP vs HTTPS
Always use https:// for the CODECOV_BASE_URL, not http://:
https://your-codecov-instance.comhttp://your-codecov-instance.comFor self-hosted Codecov instances, use your instance URL:
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Add to ~/.claude.json:
Notes:
${VAR} syntax${CODECOV_TOKEN} will be read from your shell environment-y flag for npx automatically accepts the package installation promptPull and run the official multi-platform image from GitHub Container Registry:
Platforms: linux/amd64 and linux/arm64 (Apple Silicon, AWS Graviton)
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
With self-hosted Codecov:
Available tags: latest, 2, 2.1, 2.1.0 (full semver)
stdio bridge with socat:
The Docker image includes socat, which allows MCP clients that communicate over stdio to connect to the server running inside a container via a TCP socket:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/codecov)<a href="https://allmcps.com/mcp/codecov"><img src="https://allmcps.com/api/badge/codecov?style=directory" alt="Codecov on AllMCPs" /></a>