codecov-mcp-server
Provides tools to retrieve commit coverage totals and file-level coverage breakdowns from Codecov, and prompts to suggest tests based on Codecov reports.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codecov-mcp-server show coverage totals for the last commit"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Codecov MCP Server
A Codecov Model Context Protocol server in TypeScript.
Tools for finding where your codebase is lacking tests.
Prompts for suggesting which tests to write.
Features
Resources
None yet
Tools
get_commit_coverage_totals- Returns the coverage totals for a given commit and the coverage totals broken down by file. Uses this api.
Prompts
suggest_tests- Suggests tests to write based on Codecov report.
Related MCP server: test-coverage-mcp
Installation
Usage: Ask your AI agent to "run the get_commit_coverage_totals tool" in your chat.
Configure: No need to install anything, just run with npx and put in your Codecov API key from here - Go to Settings -> Access.
And git url: git remote get-url origin
Cursor command: npx -y codecov-mcp-server --api-key XXX --git-url XXX
(On Windows) Cursor command: cmd.exe /c npx -y codecov-mcp-server --api-key XXX --git-url XXX
To use with Claude (or any AI), add the server config:
{
"mcpServers": {
"codecov-mcp-server": {
"command": "npx",
"args": [
"-y",
"codecov-mcp-server",
],
"env": {
"CODECOV_API_KEY": "XXX",
"GIT_URL": "XXX"
}
}
}
}Debugging
Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:
npm run inspectorThe Inspector will provide a URL to access debugging tools in your browser.
Development
Install dependencies:
npm installBuild the server:
npm run buildFor development with auto-rebuild:
npm run watchAvailable Tools
1 toolget_commit_coverage_totalsA
Returns the Codecov coverage totals for a given commit and the coverage totals broken down by file
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
Only one tool exists, so there is no possibility of confusion between tools. The tool's purpose is clear and unambiguous.
The single tool name 'get_commit_coverage_totals' follows a clear verb_noun pattern and is descriptive. With only one tool, consistency is trivially satisfied, but the name itself is well-formed.
One tool is far too thin for a Codecov MCP server, which typically would need multiple operations (commits, branches, reports, etc.). The server appears to be scoped too narrowly.
The tool only provides commit coverage totals with file breakdown. Many obvious Codecov features are missing (e.g., coverage by branch, pull request, or trend analysis), creating significant gaps for most use cases.
Related MCP Connectors
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for generating rough-draft project plans from natural-language prompts.
Related MCP Servers
- FlicenseAqualityDmaintenanceMCP server for Java branch coverage analysis using JaCoCo. Enables agent-style coverage feedback with per-test-class granularity and uncovered line identification.2-
- AlicenseNot gradedqualityDmaintenanceMCP server that provides instant, token-efficient test coverage data for any programming language, allowing agents to query coverage summaries and track session progress.73 npm42MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that performs mutation testing and diff scoping to score how trustworthy tests are for detecting regressions in changed code.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for testing assistance that scans codebases, identifies untested areas, generates and runs tests, and reports results.Apache 2.0