# .NET MCP Server

Connects AI assistants directly to the .NET SDK to scaffold solutions, install NuGet packages, and inspect build diagnostics via structured MCP tools.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 37
- Author: jongalloway
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/jongalloway/dotnet-mcp
- Updated: 2026-09-21
- HTML: https://affpapa.org/en/nevibecode/mcp/net-mcp-server

## What it does

The server links AI coding assistants to the .NET SDK using predefined tool schemas. Instead of scraping console text, the assistant receives structured JSON payloads. This cuts down token usage.

Built-in resources expose environment details like `dotnet://sdk-info`, `dotnet://templates`, and `dotnet://workspace`. It includes enriched diagnostics for 52 compiler and tooling error codes across CS, MSB, NU, and NETSDK categories, providing direct links to Microsoft documentation.

The package works only as an MCP server, not as a general library. Launching it via `dnx` requires the .NET 10 SDK.

## Requirements
- Environment variables: `DOTNET_SKIP_FIRST_TIME_EXPERIENCE`, `DOTNET_NOLOGO` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- Scaffold new .NET projects using local templates without typing CLI arguments
- Search and add NuGet packages directly from the assistant chat
- Diagnose 52 build and project error codes with suggested resolutions
- Inspect local SDK versions and workspace layout through structured resources

## Example prompts
- Create a new ASP.NET Core Web API project configured with EF Core
- Search NuGet for Serilog and install it into the current project
- List all installed .NET SDKs and active workspace projects

## Similar
- [MCP Toolbox for Databases](https://affpapa.org/en/nevibecode/mcp/googleapis-mcp-toolbox-for-databases.md) — MCP server · ★ 16717
- [PostHog MCP Server](https://affpapa.org/en/nevibecode/mcp/posthog-mcp-server.md) — MCP server · ★ 40409
- [OpenWork MCP Gateway](https://affpapa.org/en/nevibecode/mcp/openwork-mcp-gateway.md) — MCP server · ★ 24242
- [Keploy](https://affpapa.org/en/nevibecode/mcp/keploy.md) — MCP server · ★ 18727
- [Nhost](https://affpapa.org/en/nevibecode/mcp/nhost.md) — MCP server · ★ 9366
- [basebalance.cloud — x402 RPC & MCP gateway](https://affpapa.org/en/nevibecode/mcp/basebalancecloud-x402-rpc-mcp-gateway.md) — MCP server · ★ 7506

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
