Test Coverage MCP
T

Test Coverage MCP

Test Coverage MCP is an MCP server that provides test coverage data for AI programming agents. It supports parsing LCOV format files, allowing agents to view coverage changes in real - time when coding, avoid coverage decline, and track improvement progress.
2.5 points
8.6K

What is Test Coverage MCP?

Test Coverage MCP is a Model Context Protocol server specifically designed to provide code test coverage data for AI coding assistants. It can parse standard LCOV format coverage reports, allowing AI assistants to understand test coverage in real - time when writing code, ensuring that code quality does not decline due to the addition of new features.

How to use Test Coverage MCP?

First, install the MCP server, then configure it in your AI coding tools (such as Claude Desktop, Cursor IDE, etc.). After configuration, AI assistants can query coverage data, track coverage changes through simple tool calls, and maintain attention to test coverage when writing code.

Applicable scenarios

Applicable to any scenario where AI assistants are used for code development, especially: 1. When AI assistants write new feature code 2. When AI assistants write test code 3. During code refactoring or optimization 4. Projects that need to monitor code quality changes

Main Features

Coverage Query
Query test coverage data for the entire project or specific files, including line coverage and branch coverage percentages.
Baseline Tracking
Record the coverage at the start of the session as a baseline, then track coverage changes to help AI assistants understand the impact of their work on coverage.
Multi - platform Support
Supports all mainstream AI coding tools, including Claude Desktop, Cursor IDE, GitHub Copilot, and Windsurf.
LCOV Format Compatibility
Supports all standard LCOV format variants and can handle coverage reports generated by different test frameworks.
Advantages
Coverage visualization: Allows AI assistants to see test coverage data and avoid blind code writing
Save Tokens: Using the MCP server can save a large number of Tokens compared to directly parsing large LCOV files
Accuracy: Uses a production - grade LCOV parser to ensure the accuracy of coverage data
Stateless design: The baseline tracking function avoids storing a large amount of data in the context of AI assistants
Limitations
Requires generating LCOV reports: You must run tests and generate coverage reports before using
Path matching: File paths must exactly match the paths in the LCOV report
Temporary storage: Baseline data is stored in the temporary directory and will be lost after the system restarts

How to Use

Install the MCP Server
Globally install the Test Coverage MCP server via npm
Configure AI Tools
Edit the corresponding configuration file according to the AI coding tool you are using and add the MCP server configuration
Generate Coverage Reports
Run your test suite and generate a coverage report in LCOV format
Start Using
Restart the AI coding tool, and now the AI assistant can query coverage data

Usage Examples

Check coverage before developing new features
Before starting to write new feature code, the AI assistant checks the current test coverage to ensure an understanding of the project's quality baseline.
Track coverage changes
During the process of writing code and tests, the AI assistant tracks coverage changes to ensure that new code does not reduce coverage.
Check the coverage of a specific file
After the AI assistant modifies a file, it checks the coverage of that file to ensure that the modification does not break the existing test coverage.

Frequently Asked Questions

Why is this MCP server needed? Can't the AI assistant parse the LCOV file by itself?
Which test frameworks are supported?
Where is the baseline data stored? Will it be permanently saved?
What if the LCOV file path is not the default./coverage/lcov.info?
Will this MCP server affect the performance of the AI assistant?

Related Resources

GitHub Repository
Project source code, issue tracking, and contribution guidelines
npm Package Page
npm package information, version history, and installation statistics
MCP Official Documentation
Official documentation and specifications for the Model Context Protocol
Issue Feedback
Report bugs, request features, or ask questions

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "test-coverage": {
      "command": "npx",
      "args": ["-y", "test-coverage-mcp"]
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
9.7K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
10.4K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
16.1K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
8.0K
4 points
P
Paperbanana
Python
10.1K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
8.8K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
10.2K
5 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
9.2K
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
39.5K
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
24.3K
4.5 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
27.7K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
80.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#
37.7K
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
70.3K
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
25.3K
4.5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
107.4K
4.7 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase