DotNetMCP

Free

Expert .NET knowledge delivered directly to your AI assistant via the Model Context Protocol. 50+ curated guides, anti-pattern detection, migration planning, and code analysis for .NET 8-10 and C# 12-14. No API key required.

# Claude Code
$ claude mcp add dotnetmcp https://dotnetmcp.com/sse

# Or add to any MCP config (Cursor, Windsurf, Claude Desktop)
{
 "mcpServers": {
 "dotnetmcp": {
 "url": "https://dotnetmcp.com/sse"
 }
 }
}

What is DotNetMCP?

DotNetMCP gives every AI coding assistant deep .NET expertise through the Model Context Protocol. It works with Claude Code, Cursor, Windsurf, and any MCP-compatible tool. Instead of relying on the AI's training data alone (which may be outdated or incomplete), DotNetMCP feeds your assistant curated, up-to-date .NET knowledge in real time -- covering modern patterns, performance optimization, security best practices, and migration strategies.

Built for the community: DotNetMCP is sponsored by Noundry and free for all .NET developers. No signup, no API keys, no rate limits. Just connect and go.

50+
Expert Guides
24+
Anti-Patterns
Free
No API Key
.NET 10
Latest Coverage

Available MCP Tools

Your AI assistant gains these capabilities automatically when DotNetMCP is connected.

search_guides

Search 50+ expert guides covering EF Core, minimal APIs, authentication, performance, testing, and more.

detect_antipatterns

Identify 24+ common .NET anti-patterns including N+1 queries, sync-over-async, service locator abuse, captive dependencies, and more.

check_security

Review code for OWASP vulnerabilities, insecure configurations, and .NET-specific security issues.

plan_migration

Generate migration plans with risk assessments for upgrading from .NET 6/7/8 to .NET 9/10.

optimize_performance

Analyze code for performance issues. Covers Span<T>, pooling, caching strategies, and async patterns.

review_code

Expert code review for .NET conventions, design patterns, SOLID principles, and C# 12-14 features.

Knowledge Coverage

Web & APIs

  • Minimal APIs
  • ASP.NET Core MVC
  • Blazor (Server & WASM)
  • gRPC Services
  • SignalR Real-time

Data & ORM

  • Entity Framework Core
  • Dapper & Micro-ORMs
  • Database Migrations
  • Query Optimization
  • Multi-tenancy

Architecture

  • Clean Architecture
  • CQRS & MediatR
  • Microservices
  • Domain-Driven Design
  • Vertical Slices

DevOps & Cloud

  • Docker & Containers
  • CI/CD Pipelines
  • Azure & AWS
  • Health Checks
  • Observability

Anti-Pattern Detection

DotNetMCP helps your AI assistant catch common mistakes before they ship:

N+1 Query Problems
sync Over Async
DI Captive Dependencies
GC Allocation Pressure
EF Tracking Misuse
HTTP Client Leaks
SL Service Locator
+20 More Patterns

Setup by IDE

Claude Code

$ claude mcp add dotnetmcp
https://dotnetmcp.com/sse

One command. Works immediately.

Cursor & Windsurf

// .cursor/mcp.json
{ "mcpServers": {
  "dotnetmcp": {
    "url": "https://dotnetmcp.com/sse"
  }
}}

Add to MCP config. Restart IDE.

Claude Desktop

// claude_desktop_config.json
{ "mcpServers": {
  "dotnetmcp": {
    "url": "https://dotnetmcp.com/sse"
  }
}}

Add to config. Restart app.

Real-World Use Cases

Upgrading a .NET 6 project to .NET 10

DotNetMCP provides a step-by-step migration plan with breaking change alerts, deprecated API replacements, and new feature recommendations.

> Help me migrate this project from .NET 6 to .NET 10
[dotnetmcp:plan_migration]
Migration plan generated: 12 steps, 3 high-risk changes...

Catching performance issues

Detects anti-patterns like N+1 queries, sync-over-async calls, and allocation-heavy code before code review.

> Review this EF Core repository for performance issues
[dotnetmcp:detect_antipatterns]
Found: N+1 query in GetOrdersWithItems(), missing AsNoTracking()...

Learning modern C# patterns

Get accurate, up-to-date guidance with code examples following current best practices.

> What's the modern way to handle options validation?
[dotnetmcp:search_guides]
Use ValidateDataAnnotations() + ValidateOnStart()...

Related Packages