MCP Server Codecov
M

MCP Server Codecov

A Model Context Protocol server that provides tools for querying Codecov code coverage data, supporting codecov.io and self-hosted instances.
2 points
6.9K

What is the Codecov MCP Server?

The Codecov MCP Server is a bridge that connects the Claude AI assistant with the Codecov code coverage platform. It allows you to query and analyze code coverage data directly in Claude without leaving the conversation interface. Through simple natural language commands, you can obtain coverage information at the file, commit, and repository levels.

How to use the Codecov MCP Server?

Using the Codecov MCP Server is very simple: 1) Obtain a Codecov API token, 2) Set environment variables, 3) Install the MCP server, 4) Start querying coverage data in Claude. The entire process can be configured in just a few minutes.

Use cases

The Codecov MCP Server is particularly suitable for the following scenarios: quickly checking code coverage during the development process, verifying test coverage during code reviews, sharing coverage data in team collaboration, and monitoring the trend of coverage changes in the continuous integration process.

Main features

File-level coverage analysis
Obtain line-by-line coverage data for a specific file, including which code lines are covered by tests and which are not. It supports specifying branches, tags, or commit SHAs.
Commit coverage query
Retrieve the coverage statistics for a specific commit, including metrics such as overall coverage, line coverage, and branch coverage.
Overall repository coverage
Get an overview of the coverage of the entire repository, including coverage comparisons between different branches and historical trend data.
Support for self-hosted instances
It not only supports the official codecov.io service but also supports enterprise self-hosted Codecov instances, allowing flexible configuration of API endpoints.
Token authentication
Use the Codecov API token for secure authentication to ensure that only authorized users can access the coverage data.
Advantages
Seamless integration: Access coverage data directly in the Claude conversation without switching tools
Simple configuration: Installation and configuration can be completed within a few minutes
Flexible deployment: Supports codecov.io and self-hosted instances
Real-time query: Instantly obtain the latest coverage information
Natural language interaction: Query data using simple natural language commands
Limitations
Requires a Codecov API token: Additional authentication configuration is required
Only supports GitHub repositories: Currently mainly supports GitHub, with limited support for other platforms
Depends on network connection: Needs to be able to access the Codecov API service
Data delay: There may be a few minutes of synchronization delay for the coverage data

How to use

Obtain an API token
Log in to your Codecov account, go to Settings → Access tab, and generate a new API token (Note: not the upload token).
Set environment variables
Set the API token as an environment variable so that the MCP server can access it.
Install the MCP server
Use the Claude Code CLI to add the MCP server configuration.
Verify the installation
Check if the MCP server is successfully connected.
Start using
Query coverage data directly in the Claude conversation.

Usage examples

Check coverage during code review
When reviewing a Pull Request, quickly check the test coverage of the modified files to ensure that the newly added code has sufficient test coverage.
Monitor coverage trends
Regularly check the overall coverage of the repository to ensure that the test coverage does not decline during development.
Debug test failures
When a CI test fails, quickly check the coverage changes of the relevant files to help locate the problem.

Frequently Asked Questions

Why do I receive a 401 Unauthorized error?
How do I configure a self-hosted Codecov instance?
What should I do if the environment variables do not take effect?
Which code repository platforms are supported?
Is there a delay in the coverage data?
How do I update the MCP server version?

Related resources

npm package page
View the latest version, download statistics, and version history
GitHub repository
Source code, issue tracking, and contribution guidelines
Codecov official documentation
Complete documentation for the Codecov API and features
Model Context Protocol documentation
Official specifications and guidelines for the MCP protocol
Test coverage report
View the test coverage of this MCP server itself

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "codecov": {
      "command": "npx",
      "args": ["-y", "mcp-server-codecov"],
      "env": {
        "CODECOV_BASE_URL": "https://codecov.io",
        "CODECOV_TOKEN": "your-codecov-token-here"
      }
    }
  }
}

{
  "mcpServers": {
    "codecov": {
      "command": "npx",
      "args": ["-y", "mcp-server-codecov"],
      "env": {
        "CODECOV_BASE_URL": "https://codecov.io",
        "CODECOV_TOKEN": "${CODECOV_TOKEN}"
      }
    }
  }
}

{
  "mcpServers": {
    "codecov": {
      "command": "node",
      "args": ["/absolute/path/to/codecov-mcp/dist/index.js"],
      "env": {
        "CODECOV_BASE_URL": "https://codecov.io",
        "CODECOV_TOKEN": "${CODECOV_TOKEN}"
      }
    }
  }
}

{
  "mcpServers": {
    "codecov": {
      "command": "node",
      "args": ["/path/to/mcp-server-codecov/dist/index.js"],
      "env": {
        "CODECOV_BASE_URL": "https://codecov.io",
        "CODECOV_TOKEN": "your-codecov-token-here"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

R
Rsdoctor
Rsdoctor is a build analysis tool specifically designed for the Rspack ecosystem, fully compatible with webpack. It provides visual build analysis, multi - dimensional performance diagnosis, and intelligent optimization suggestions to help developers improve build efficiency and engineering quality.
TypeScript
6.5K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
7.7K
5 points
T
Testkube
Testkube is a test orchestration and execution framework for cloud-native applications, providing a unified platform to define, run, and analyze tests. It supports existing testing tools and Kubernetes infrastructure.
Go
5.8K
5 points
M
MCP Windbg
An MCP server that integrates AI models with WinDbg/CDB for analyzing Windows crash dump files and remote debugging, supporting natural language interaction to execute debugging commands.
Python
8.9K
5 points
R
Runno
Runno is a collection of JavaScript toolkits for securely running code in multiple programming languages in environments such as browsers and Node.js. It achieves sandboxed execution through WebAssembly and WASI, supports languages such as Python, Ruby, JavaScript, SQLite, C/C++, and provides integration methods such as web components and MCP servers.
TypeScript
5.9K
5 points
N
Netdata
Netdata is an open-source real-time infrastructure monitoring platform that provides second-level metric collection, visualization, machine learning-driven anomaly detection, and automated alerts. It can achieve full-stack monitoring without complex configuration.
Go
6.7K
5 points
M
MCP Server
The Mapbox MCP Server is a model context protocol server implemented in Node.js, providing AI applications with access to Mapbox geospatial APIs, including functions such as geocoding, point - of - interest search, route planning, isochrone analysis, and static map generation.
TypeScript
7.5K
4 points
U
Uniprof
Uniprof is a tool that simplifies CPU performance analysis. It supports multiple programming languages and runtimes, does not require code modification or additional dependencies, and can perform one-click performance profiling and hotspot analysis through Docker containers or the host mode.
TypeScript
7.1K
4.5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
18.4K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
31.4K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
61.4K
4.3 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
21.6K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
28.0K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
55.8K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
19.3K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
40.1K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase