Skip to main content
MCP server CX Codex

dotnet-mcp — Claude Code MCP server: features and setup

The dotnet-mcp MCP server for Claude Code gives coding agents access to .NET symbols and XAML queries. Ask it to trace definitions, references, or project diagnostics, then review proposed edits before they are applied.

MIT ★ 6 updated 2026-11-12

Open on GitHub

What dotnet-mcp does

dotnet-mcp opens .NET solutions and projects so an agent can locate symbol definitions, references, implementations, callers, and type hierarchies. C# and VB.NET use Roslyn; F# uses an FCS-based stack. The server can also report source-generator details and project diagnostics.

For Avalonia and MAUI, its XAML tools resolve classes, names, XML namespaces, and compiled-binding paths. Rename, diagnostic-fix, and refactoring actions have a preview step before changes are applied. The server does not offer general file-writing, shell, or package-download tools.

Run it with .NET 10 or later and configure a trusted root using --roots or DOTNET_MCP_TRUSTED_ROOTS. Opening a workspace runs MSBuild evaluation, project analyzers, and generators, so this server is not designed to open untrusted repositories safely.

What it helps with

  • locate a symbol definition and its callers
  • trace references and implementations across a project
  • inspect project diagnostics and source generators
  • resolve Avalonia or MAUI XAML bindings
  • preview a symbol rename before applying it

Example prompts for the agent

  • Find the definition of OrderService and list its callers.
  • Inspect the project diagnostics and list its source generators.
  • Resolve the compiled-binding path for this XAML name.

How to install dotnet-mcp

Install

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

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about dotnet-mcp

How do I install dotnet-mcp in Claude Code?

Install .NET 10 or later, then start the server with dnx Skymly.DotNetMcp --yes -- --roots /path/to/repo. In the MCP configuration, set the command to dnx and pass Skymly.DotNetMcp, --yes, --, --roots, and /path/to/repo as arguments.

What does dotnet-mcp do?

It lets an agent navigate .NET symbols and inspect project diagnostics, source generators, and Avalonia or MAUI XAML. Rename, diagnostic-fix, and refactoring actions go through a preview before application.

What does dotnet-mcp require?

It requires .NET 10 or later and a trusted root configured with --roots or DOTNET_MCP_TRUSTED_ROOTS. Opening a project runs MSBuild evaluation, analyzers, and generators.

Similar MCP servers

All MCP servers for Backend and APIs →

Project sponsors

Companies that keep this analytics open