DotNetCodeReviewer.McpServer 1.0.0

dotnet tool install --global DotNetCodeReviewer.McpServer --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local DotNetCodeReviewer.McpServer --version 1.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DotNetCodeReviewer.McpServer&version=1.0.0
                    
nuke :add-package DotNetCodeReviewer.McpServer --version 1.0.0
                    

DotNetCodeReviewer MCP Server

A Model Context Protocol server that performs deep static code review of C# / .NET source using the Roslyn compiler platform. It plugs into AI coding tools (Claude Desktop, Cursor, Cline, Windsurf) so the assistant can review your code for bugs, security issues, performance problems, and design smells.

Install

dotnet tool install -g DotNetCodeReviewer.McpServer

This installs a command called dncr-mcp. Update later with:

dotnet tool update -g DotNetCodeReviewer.McpServer

Configure your AI client

Point your MCP client at the dncr-mcp command over stdio.

Claude Desktop add to claude_desktop_config.json:

{
  "mcpServers": {
    "dotnet-code-reviewer": {
      "command": "dncr-mcp"
    }
  }
}

Cursor add to .cursor/mcp.json:

{
  "mcpServers": {
    "dotnet-code-reviewer": {
      "command": "dncr-mcp"
    }
  }
}

Restart your client. The assistant can now call the review tools.

Available tools

Tool What it does
review_file Review a single C# file
review_project Review every C# file under a directory
check_clean_architecture Validate Clean Architecture layer boundaries
audit_nuget Check NuGet package-reference hygiene
scan_security Security-focused scan (SQL injection, secrets, weak crypto)
audit_ef_core Entity Framework / data-access scan
check_async_patterns Async-correctness scan
suggest_tests Suggest unit-test scenarios for a file

Notes

  • Requires the .NET 10 SDK or runtime.
  • The server communicates over stdio (JSON-RPC). When you run dncr-mcp directly in a terminal it will appear to "hang" that is correct; it is waiting for a client to connect. Press Ctrl+C to stop.
  • All analysis runs locally on your machine; your source code is not sent anywhere.

Hosted REST API

A hosted HTTP version (no install required) is also available with Free / Pro / Team plans. See the project site for details.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.0 222 6/12/2026