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
6.9K

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

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
7.4K
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.4K
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
4.5K
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.4K
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
6.7K
5 points
P
Praisonai
PraisonAI is a production-ready multi-AI agent framework with self-reflection capabilities, designed to create AI agents to automate the solution of various problems from simple tasks to complex challenges. It simplifies the construction and management of multi-agent LLM systems by integrating PraisonAI agents, AG2, and CrewAI into a low-code solution, emphasizing simplicity, customization, and effective human-machine collaboration.
Python
5.3K
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.3K
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
6.2K
4 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
58.6K
4.3 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
19.2K
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
30.6K
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
19.9K
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#
27.2K
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.5K
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
39.0K
4.8 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
18.0K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase