MCP server for querying Codecov coverage data with configurable URL support
Codecov MCP server is a hosted integration for AI assistants that speak the Model Context Protocol. MCP server for querying Codecov coverage data with configurable URL support.
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.
Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.
Once Codecov is connected, these are the calls the assistant has available:
get_file_coverage — The get_file_coverage tool exposed by this serverget_commit_coverage — The get_commit_coverage tool exposed by this serverget_repo_coverage — The get_repo_coverage tool exposed by this serverget_pull_request_coverage — Get coverage data for a specific pull request, including coverage changes and file-level impactcompare_coverage — Compare coverage between two git references (branches, commits, or tags)You will need 2 environment variables: CODECOV_BASE_URL, CODECOV_TOKEN. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Codecov's toolset — get_file_coverage, get_commit_coverage, get_repo_coverage and 2 more — is a fair guide to whether it matches your workflow. It is maintained by egulatee; worth a glance at recent repository activity before you build anything load-bearing on it.
This entry was verified against Codecov's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.
| Tool | What it does |
|---|---|
| get_file_coverage | The get_file_coverage tool exposed by this server. |
| get_commit_coverage | The get_commit_coverage tool exposed by this server. |
| get_repo_coverage | The get_repo_coverage tool exposed by this server. |
| get_pull_request_coverage | Get coverage data for a specific pull request, including coverage changes and file-level impact. |
| compare_coverage | Compare coverage between two git references (branches, commits, or tags). |
**Manual (`~/.claude.json`):**
```json
{
"mcpServers": {
"codecov": {
"command": "node",
"args": ["/absolute/path/to/codecov-mcp/dist/index.js"],
"env": {
"CODECOV_BASE_URL": "https://codecov.io",
"CODECOV_TOKEN": "${CODECOV_TOKEN}"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| CODECOV_BASE_URL | Endpoint or connection string the server talks to. | Yes |
| CODECOV_TOKEN | Credential the server authenticates with. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.