Dotnet MCP Server

MCP server for .NET coverage: run tests, parse Cobertura, find uncovered branches, append tests.

Local serverstdio

What is the Dotnet MCP Server?

MCP server for .NET coverage: run tests, parse Cobertura, find uncovered branches, append tests.

What you get

An MCP (Model Context Protocol) server that gives AI assistants — Claude Code, Gemini CLI, and others — direct access to .NET test-coverage tooling. Run dotnet test, parse Cobertura XML, identify uncovered branches, diff coverage between runs, and append test code — all over stdio.

Configuration and credentials

  • .NET 9.0 SDK (or later) — https://dotnet.microsoft.com/download - reportgenerator global tool — the server shells out to it to render coverage reports (installed in the Install step below) - An MCP-compatible client (Claude Code, Gemini CLI, etc.) - COVERAGE_MCP_ALLOWED_ROOT — recommended. Set to your repository root to restrict

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Configuration

  • .NET 9.0 SDK (or later) — https://dotnet.microsoft.com/download - reportgenerator global tool — the server shells out to it to render coverage reports (installed in the Install step below) - An MCP-compatible client (Claude Code, Gemini CLI, etc.) - COVERAGE_MCP_ALLOWED_ROOT — recommended. Set to your repository root to restrict
VariableDescriptionRequired
COVERAGE_MCP_ALLOWED_ROOTConfiguration value read at startup.Optional

Example prompts to try

  • “Use Dotnet to GetSourceFiles.”
  • “Use Dotnet to RunTestsWithCoverage.”
  • “Use Dotnet to GetCoverageSummary.”

Frequently asked questions

MCP server for .NET coverage: run tests, parse Cobertura, find uncovered branches, append tests. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.