# .NET MCP Server

> .NET MCP Server is an open-source MCP server. AI assistant access to .NET SDK for projects, packages, building, testing, and development tools. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/jongalloway/dotnet-mcp
- **MCP Registry name:** io.github.jongalloway/dotnet-mcp
- **Listing updated:** 2026-11-13

## About

AI assistant access to .NET SDK for projects, packages, building, testing, and development tools.

## Install

### Claude Code (Terminal)

```sh
claude mcp add dotnet-mcp -- dnx Community.Mcp.DotNet --yes
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "dotnet-mcp": {
      "command": "dnx",
      "args": [
        "Community.Mcp.DotNet",
        "--yes"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "dotnet-mcp": {
      "command": "dnx",
      "args": [
        "Community.Mcp.DotNet",
        "--yes"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "dotnet-mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "Community.Mcp.DotNet",
        "--yes"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "dotnet-mcp": {
      "command": "dnx",
      "args": [
        "Community.Mcp.DotNet",
        "--yes"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "dotnet-mcp": {
      "command": "dnx",
      "args": [
        "Community.Mcp.DotNet",
        "--yes"
      ]
    }
  }
}
```

## FAQ

### Is .NET MCP Server free?

Yes. .NET MCP Server is open source, so you can use and self-host it for free.

### How do I add .NET MCP Server to Claude Code?

Run this command in your terminal: claude mcp add dotnet-mcp -- dnx Community.Mcp.DotNet --yes

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/net-mcp-server
