home / mcp / .net mcp server

.NET MCP Server

Provides an MCP server that connects AI assistants to the .NET SDK, enabling natural language control of dotnet commands.

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "jongalloway-dotnet-mcp": {
      "command": "dnx",
      "args": [
        "Community.Mcp.DotNet@1.*",
        "--yes"
      ],
      "env": {
        "DOTNET_NOLOGO": "1",
        "DOTNET_SKIP_FIRST_TIME_EXPERIENCE": "1"
      }
    }
  }
}

You learn to run and use a dedicated MCP server that links AI assistants to the .NET SDK, enabling natural language requests to translate into concrete dotnet commands, with structured outputs and context-aware guidance to streamline .NET development.

How to use

You interact with your AI assistant to perform .NET tasks through natural language. The MCP server translates your requests into structured .NET SDK operations, validates parameters against official metadata, executes commands locally, and returns clear, actionable results. Expect enhanced diagnostics, template awareness, and environment metadata to guide decisions like choosing the right framework version, templates, and packages.

How to install

Prerequisites: install the required .NET SDKs and ensure your development environment can run the MCP server locally.

Option 1. Quick setup using the recommended approach. This configures the MCP server in your environment and will fetch the server from NuGet on first use.

Option 2. Manual configuration for source builds or custom setups.

Available tools

dotnet_project

Project lifecycle management with actions such as New, Restore, Build, Run, Test, Publish, Clean, Analyze, Dependencies, Validate, Pack, Watch, Format, and Stop. Includes Stop for terminating long-running sessions and a noBuild option for skipping builds before running.

dotnet_package

Manage NuGet packages and project references with Add, Remove, Search, Update, List, AddReference, RemoveReference, ListReferences, and ClearCache.

dotnet_solution

Create, Add, List, and Remove projects in solutions, and list or modify solution memberships.

dotnet_ef

Entity Framework Core operations for migrations, database updates, scaffolding, and script generation.

dotnet_workload

Manage .NET workloads such as MAUI, WASM, and related components.

dotnet_tool

Manage global and local .NET tools, including Install, List, Update, Uninstall, Restore, CreateManifest, Search, and Run.

dotnet_sdk

Query and browse SDK, runtime, templates, and framework information with various actions.

dotnet_dev_certs

Handle development certificates and user secrets for secure development workflows.

dotnet_help

Get help for any dotnet command.

dotnet_server_capabilities

Query MCP server capabilities and concurrency guidance for orchestration.