Codecov MCP Server

MCP server for querying Codecov coverage data with configurable URL support

Remote serverstreamable-httpGo

What is the Codecov MCP server?

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.

What you get

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.

  • File-level coverage — Get detailed line-by-line coverage data for specific files
  • Commit coverage — Retrieve coverage statistics for individual commits
  • Repository coverage — Get overall coverage metrics for repositories
  • Pull request coverage — Analyze coverage changes and impact for pull requests
  • Coverage comparison — Compare coverage between branches, commits, or tags
  • Configurable URL — Point to any Codecov instance (codecov.io or self-hosted)

Setting it up

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

What the assistant can call

Once Codecov is connected, these are the calls the assistant has available:

  • 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)

Configuration and credentials

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.

Before you rely on it

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the codecov mcp server does with a few real requests.

Choosing this one

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.

Available tools

ToolWhat it does
get_file_coverageThe get_file_coverage tool exposed by this server.
get_commit_coverageThe get_commit_coverage tool exposed by this server.
get_repo_coverageThe get_repo_coverage tool exposed by this server.
get_pull_request_coverageGet coverage data for a specific pull request, including coverage changes and file-level impact.
compare_coverageCompare coverage between two git references (branches, commits, or tags).

How to install the Codecov MCP server

**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.

Configuration

VariableDescriptionRequired
CODECOV_BASE_URLEndpoint or connection string the server talks to.Yes
CODECOV_TOKENCredential the server authenticates with.Yes

Example prompts to try

  • Use Codecov to get file coverage.
  • Use Codecov to get commit coverage.
  • Use Codecov to get repo coverage.

Frequently asked questions

It connects Codecov to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (get_file_coverage, get_commit_coverage, get_repo_coverage, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Codecov directly.