# dotnet-mcp

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 6 repo stars
- Author: Skymly
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Skymly/dotnet-mcp
- Updated: 2026-11-12
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/dotnet-mcp

## What it 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.

## Install

### Claude Code (native platform)

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

## When to use it
- 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
- 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.

## Similar
- [dotnet-pilot](https://affpapa.org/en/nevibecode/plugins/dotnet-pilot.md) — plugin · ★ 5 repo stars
- [dotnet-wpf](https://affpapa.org/en/nevibecode/rules/dotnet-wpf.md) — rule · ★ 41430 repo stars
- [dotnet-maui](https://affpapa.org/en/nevibecode/rules/dotnet-maui.md) — rule · ★ 41430 repo stars
- [csharp-refactoring](https://affpapa.org/en/nevibecode/skills/csharp-refactoring.md) — skill · 3000 installs
- [analyzing-dotnet-performance](https://affpapa.org/en/nevibecode/skills/analyzing-dotnet-performance.md) — skill · 6200 installs
- [Roslyn CodeLens](https://affpapa.org/en/nevibecode/mcp/roslyn-codelens.md) — MCP server · ★ 75 repo stars

---
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
