Test Coverage MCP server
io.github.goldbergyoni/test-coverage-mcp·v1.1.0·42 starsAnalyze test coverage from LCOV files - makes AI agents coverage-aware without wasting tokens
42 stars45 downloads/wk
Reviews
Write oneNobody has reviewed Test Coverage yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Test Coverage tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-10-01 · same rubric, same numbers if you re-run it
- Code scan30 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 240 days ago4/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Test Coverage compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 75/100
- higher than 45% of 48,255 servers
- GitHub stars
- 42
- more than 93% of 28,688 servers
- Downloads a week
- 45
- more than 37% of 12,191 servers with a package
Install Test Coverage in Claude Code, Cursor or VS Code
Runs npx -y test-coverage-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add test-coverage-mcp -- npx -y test-coverage-mcp
What the publisher says
From the Test Coverage repository's README, as published. We do not edit it. Read it on GitHub
Test Coverage MCP
Make your agents coverage-aware as they code for you
“Hey, I’m a coding agent. I just created flashy nifty feature… but oops, I downgraded the coverage 🤓. How could I know that?”
“Hey, I’m a testing agent. I was tasked to cover some code with testing, but how can I find which areas are not covered?😳”
Give your coding and testing agent eyes: MCP server that provides instant, reliable, token-efficient test coverage data for any programming language (LCOV based)
__
🚀 Just launched (November 2025) ! I spend great time these days on polishing this library. If you find this valuable, a ⭐ star helps signal to other developers that this project is worth their attention
The Problem
When AI coding agents work on your code without proper coverage tooling, they face three critical issues:
- Coverage Blindness - They can't see if their changes improved or regressed test coverage
- Token Waste - They burn thousands of tokens trying to parse massive LCOV files (some exceed 10 MB)
- Unreliable Scripts - They improvise custom parsing scripts that often fail or produce incorrect results
The Solution
This MCP server solves all three problems by providing:
- Coverage Awareness - Agents can check coverage anytime with a simple tool call
- Token Efficiency - Get coverage summaries in <100 tokens instead of thousands
- Accuracy - Production-grade LCOV parsing that handles all format variations
- Baseline Tracking - Measure coverage progress within a session without keeping state in memory
Test Coverage: This project maintains 95% test coverage and we're targeting 100% soon.
Two Main Workflows
1. Query Coverage Summary
Ask for overall project coverage or coverage for specific files:
// Get overall project coverage
coverage_summary({ lcovPath: "./coverage/lcov.info" });
// Returns: { linesCoveragePercentage: 87.5, branchesCoveragePercentage: 82.1 }
// Get coverage for specific files
coverage_file_summary({
lcovPath: "./coverage/lcov.info",
filePath: "src/utils/parser.ts",
});
// Returns: { path: "src/utils/parser.ts", linesCoveragePercentage: 92.0, branchesCoveragePercentage: 88.5 }2. Baseline Tracking for Session Progress
Establish a baseline at session start, then measure your progress:
// At session start - record current coverage as baseline
start_recording({ lcovPath: "./coverage/lcov.info" });
// Returns: "Recording started"
// ... agent writes code and tests ...
// Check coverage impact
get_diff_since_start({ lcovPath: "./coverage/lcov.info" });
// Returns: { linesPercentageImpact: +2.3, branchesPercentageImpact: +1.8 }Why baseline tracking? Without it, agents would need to keep initial coverage in their stateful memory throughout the session, consuming valuable context window space.
Installation
npm install -g test-coverage-mcpConfiguration
Add this MCP server to your AI coding tool's configuration:
Claude Desktop (Claude Code)
macOS: Edit ~/Library/Application Support/Claude/claudedesktopconfig.json Windows: Edit %APPDATA%\Claude\claudedesktopconfig.json
{
"mcpServers": {
"test-coverage": {
"command": "npx",
"args": ["-y", "test-coverage-mcp"]
}
}
}After updating, restart Claude Desktop.
Cursor IDE
Create or edit .cursor/mcp.json in your project root:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Test Coverage: common questions
- Is Test Coverage MCP server safe?
- Mostly: it is graded B (75/100). Read the Test Coverage safety report
- How do I install Test Coverage?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Test Coverage need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Test Coverage maintained?
- The last commit was 274 days ago (2026-02-03). The latest release is v1.1.0.
- What can I use instead of Test Coverage?
- Servers from other publishers that do the same job: Token Optimizer MCP server.
- How does Test Coverage compare with other MCP servers?
- safety score 75/100 (higher than 45% of 48,255 servers); github stars 42 (more than 93% of 28,688 servers); downloads a week 45 (more than 37% of 12,191 servers with a package). Full comparison.
Alternatives to Test Coverage
Same job from other publishers: the closest match first, then the best rated.
- Token OptimizerContext-window optimization: caching, compression & smart file tools that cut tokens 60-90%.not reviewedEstablishedC