Article · 10 picks · Published

10 MCP servers worth setting up for .NET development

The Model Context Protocol (MCP) lets coding agents, such as GitHub Copilot in Visual Studio and VS Code, Copilot CLI, Claude Code and Cursor, call tools outside the editor. The right servers turn an agent that guesses from its training data into one that reads current docs, checks real package versions, looks at your running app and opens the pull request.

These are the ten we would set up for .NET work in late 2026. For each one we checked the setup steps, authentication and status against the publisher's own repository or documentation on December 5, 2026. The JSON examples use the portable .mcp.json format: a file at the repository root with a top-level mcpServers key, which VS Code now recommends for new setups and which other clients, such as Claude Code, read too. Clients with their own config file take the same server entries.

Before you add servers

  • Fewer is better. Every server adds its tool descriptions to the agent's context. Turn on the few a project needs, and use read-only modes and toolset filters where a server offers them.
  • A server acts with your permissions. Local servers run on your machine as you, and cloud servers use your account. Give them the least access that works.
  • Install from publishers you trust. Most entries below are run by the vendor of the product they connect to.
  • npx and dnx commands with @latest or no version fetch the newest release each time. Pin a version where your team needs repeatable setups.
  • If you followed an older tutorial: .vscode/mcp.json, with a top-level servers key, belongs to VS Code's Local harness, which VS Code has deprecated and plans to remove in February 2027. VS Code can move your entries to .mcp.json from Chat: Open Customizations, under Migrations. Password inputs and envFile settings do not migrate automatically, so move those secrets to environment variables first.

Documentation

Microsoft Learn MCP Server

Searches and fetches Microsoft's official documentation and code samples, including all of the .NET, ASP.NET Core, EF Core and Azure docs. Three tools: docs search, docs fetch and code sample search.

Why it made the list: Agents stop inventing APIs that were renamed two versions ago. It is remote, read-only and free, with nothing to install, so it is the first server to add.

Publisher
Microsoft
Runs
Remote
Auth
None
.mcp.json
{
  "mcpServers": {
    "microsoft-learn": {
      "type": "http",
      "url": "https://learn.microsoft.com/api/mcp",
      "tools": ["*"]
    }
  }
}

Worth knowing: In Claude Code, the Microsoft Docs plugin sets it up: /plugin install microsoft-docs@claude-plugins-official.

Library docs

Context7

Pulls current, version-specific documentation and code examples for third-party libraries into the agent's context. Two tools: one resolves a library name, the other queries its docs.

Why it made the list: It covers the open source packages Microsoft Learn does not, which is where agents most often fall back on outdated examples.

Publisher
Upstash
Runs
Remote
Auth
Optional API key for higher rate limits
License
MIT
Guided setup (Node 22.13 or later)
npx ctx7 setup
Or connect directly
{
  "mcpServers": {
    "context7": {
      "type": "http",
      "url": "https://mcp.context7.com/mcp",
      "tools": ["*"]
    }
  }
}

Worth knowing: Your library names and questions are sent to Upstash's hosted service.

Source control

GitHub MCP Server

GitHub's official server: repositories, code, issues, pull requests, Actions runs, Dependabot and security alerts, discussions and more, grouped into toolsets.

Why it made the list: The agent can read the issue it is fixing, check why a workflow failed and open the pull request, without you copying text between windows.

Publisher
GitHub
Runs
Remote, or locally with Docker
Auth
OAuth or a personal access token
License
MIT
.mcp.json
{
  "mcpServers": {
    "github": {
      "type": "http",
      "url": "https://api.githubcopilot.com/mcp/",
      "tools": ["*"]
    }
  }
}

Worth knowing: It is one of the larger servers. Enable only the toolsets you use (for example repos,issues,pull_requests), and use read-only mode for agents that only need to look.

Packages

NuGet MCP Server

Gives the agent live NuGet data: it finds and fixes vulnerable packages, updates packages to versions compatible with your project, and helps review package sources.

Why it made the list: Agents tend to suggest package versions from memory. This server checks the real feed, so upgrades and security fixes use versions that exist and fit your target framework.

Publisher
NuGet (Microsoft)
Runs
Locally with dnx (.NET 10 SDK or later)
Auth
None
.mcp.json
{
  "mcpServers": {
    "nuget": {
      "type": "stdio",
      "command": "dnx",
      "args": ["NuGet.Mcp.Server", "--source", "https://api.nuget.org/v3/index.json", "--yes"],
      "tools": ["*"]
    }
  }
}

Worth knowing: Visual Studio 2026 includes it: enable it once from the tools menu in GitHub Copilot Chat. The August 2025 preview announcement used a --prerelease flag that current setups no longer need.

Running app

Aspire MCP server

Connects the agent to your running Aspire app: resource state and health, console and structured logs, distributed traces, and commands to start, stop or restart resources. It can also search the Aspire docs and integration catalog.

Why it made the list: After a change, the agent can check the logs and traces of the whole app itself instead of asking you what happened.

Publisher
Microsoft (Aspire)
Runs
Locally, through the Aspire CLI
Auth
None
License
MIT
Let the CLI write the config
aspire agent init
Or add it yourself
{
  "mcpServers": {
    "aspire": {
      "type": "stdio",
      "command": "aspire",
      "args": ["agent", "mcp"],
      "tools": ["*"]
    }
  }
}

Worth knowing: It is for local development only. The Aspire docs now recommend Aspire skills for most agent workflows and describe the MCP server as optional. The older MCP server built into the dashboard was removed, so rerun aspire agent init if you set that one up.

Browser testing

Playwright MCP

Lets the agent drive a real browser: navigate, click, type, fill forms and take screenshots. It works from accessibility snapshots rather than pixels, so actions are fast and precise.

Why it made the list: The agent can check its own Blazor or Razor Pages change in the browser, reproduce a UI bug, or sketch a Playwright test from what it just did.

Publisher
Microsoft
Runs
Locally (Node 20 or later)
Auth
None
License
Apache 2.0
Claude Code
claude mcp add playwright npx @playwright/mcp@latest
.mcp.json
{
  "mcpServers": {
    "playwright": {
      "type": "stdio",
      "command": "npx",
      "args": ["@playwright/mcp@latest"],
      "tools": ["*"]
    }
  }
}

Worth knowing: Its README says it is not a security boundary. Point it at your local app and sites you trust, and leave the optional code-execution capability off.

Front-end debugging

Chrome DevTools MCP

Gives the agent the Chrome DevTools: performance traces with insights, network requests, console messages with source-mapped stack traces, screenshots and browser automation.

Why it made the list: When a page is slow or a script fails, the agent can record a trace and read the network and console itself, then propose a fix based on evidence.

Publisher
Chrome DevTools team
Runs
Locally (Node and stable Chrome)
Auth
None
License
Apache 2.0
.mcp.json
{
  "mcpServers": {
    "chrome-devtools": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "chrome-devtools-mcp@latest"],
      "tools": ["*"]
    }
  }
}

Worth knowing: Usage statistics are on by default (turn them off with --no-usage-statistics), and performance tools may send trace URLs to the Chrome UX Report API (--no-performance-crux turns that off).

Cloud

Azure MCP Server

One server for Azure: App Service, AKS, Cosmos DB, Key Vault, Monitor, SQL, Storage, AI Search, Foundry and many more services. The agent can query resources, read logs and metrics, and make changes.

Why it made the list: Diagnosing a deployed .NET app often means jumping between the portal, logs and configuration. The agent can do that legwork and bring back what it found. Version 2.0 is generally available.

Publisher
Microsoft
Runs
Locally (npm, dnx, Docker or the VS Code extension)
Auth
Your Azure sign-in (az login), limited by Azure RBAC
License
MIT
.mcp.json
{
  "mcpServers": {
    "azure-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@azure/mcp@latest", "server", "start"],
      "tools": ["*"]
    }
  }
}

Worth knowing: It can change resources as well as read them. Sign in with an account that has only the roles the task needs, especially near production. Visual Studio 2026 includes it, and VS Code users can install the Azure MCP Server extension instead of editing JSON.

Work items and pipelines

Azure DevOps MCP Server

Work items, boards, repositories, pull requests, pipelines, wikis and test plans in Azure DevOps. The remote server became generally available in August 2026.

Why it made the list: For teams on Azure DevOps it does what the GitHub server does for GitHub: the agent reads the work item, checks the failing pipeline and links its pull request.

Publisher
Microsoft
Runs
Remote, or locally with npx
Auth
Microsoft Entra ID
License
MIT
.mcp.json (remote)
{
  "mcpServers": {
    "ado-remote-mcp": {
      "type": "http",
      "url": "https://mcp.dev.azure.com/{organization}",
      "tools": ["*"]
    }
  }
}
Local server
npx -y @azure-devops/mcp {organization}

Worth knowing: The remote server needs an organization backed by Microsoft Entra ID. It works today in VS Code with GitHub Copilot, Visual Studio, Copilot CLI, Microsoft Foundry and Copilot Studio; for Claude Code and Cursor it needs your own Entra app registration, so the local server is the simpler route there. Headers such as X-MCP-Toolsets and X-MCP-Readonly limit what the remote server exposes.

Database

SQL MCP Server (Data API builder)

Part of Data API builder 1.7 and later. It exposes the tables, views and stored procedures you configure as MCP tools for reading, creating, updating and deleting records, with the same role-based permissions as Data API builder's REST and GraphQL endpoints.

Why it made the list: The agent gets useful access to your SQL Server, Azure SQL or other supported database without a raw connection string. It cannot write free-form SQL; it can only use the entities and actions you allow.

Publisher
Microsoft
Runs
Locally, through the Data API builder CLI
Auth
Data API builder roles in your config
Create a config, expose an entity, start the server
dab init --database-type mssql --connection-string "<your-connection-string>" --config dab-config.json --host-mode development
dab add Product --source dbo.Products --permissions "anonymous:read"
dab start   # MCP endpoint at http://localhost:5000/mcp

Worth knowing: Started over stdio (dab start --mcp-stdio), the server uses the anonymous role unless you name one, for example dab start --mcp-stdio role:reader. Grant that role only what the agent should touch. Microsoft recommends the latest 2.0 release.

Also worth a look

  • The MSBuild binary log MCP server, if you investigate slow or failing builds: the agent reads .binlog files and explains errors, warnings and expensive targets.
  • Sentry's MCP server, if your apps report to Sentry: the agent can look up an issue, its stack trace and related traces. The remote endpoint is https://mcp.sentry.dev/mcp.

Build your own

If your team needs an agent to reach an internal system, the official MCP C# SDK makes a server a small console app, and the .NET 11 SDK includes a dotnet new mcpserver template. Our AI agents and MCP guide puts the best articles on building one in order.

Further reading from our library

Articles on these tools that we have featured in The .NET Insider.

Give Claude Code access to current .NET documentation

David Grace · roundthecode.comIssue 36

Adds the Microsoft Learn MCP server to Claude Code and uses it with newer .NET APIs, with guidance in CLAUDE.md on when the agent should consult the docs. Without MCP the agent can still inspect the installed SDK; documentation is another route to an API's intended use. The instructions and the evidence the agent actually retrieves matter as much as connecting the server.

Reviewed . Versions, licenses and setup steps were checked against each project's repository, documentation and package page on that date. Project names and trademarks belong to their owners; dotnetdevs.io is not affiliated with them.