Best for
- .NET/C# developers using MCP clients like Claude Code or VS Code
- AI-assisted development workflows needing deep static analysis and safe refactoring
- Teams maintaining large SDK-style .NET solutions
A very comprehensive Roslyn semantic-analysis MCP server with 67 tools covering navigation, refactoring, test intelligence, quality auditing, and IL inspection. Performance is benchmarked, and a VS-style trust model guards analyzer execution. Works only with SDK-style .NET projects and requires the .NET 10 SDK. Maintained by an individual developer, not an official .NET/Roslyn product.
Roslyn CodeLens is a Roslyn-based MCP server that gives AI agents deep semantic understanding of .NET/C# codebases over stdio. It exposes 67 tools for navigation, call graphs, diagnostics and code fixes, safe refactoring, code-quality auditing, test intelligence, DI graphs, and IL/external-assembly inspection. Installable via npm (npx launcher), NuGet (.NET global tool), Claude Code plugin, or Docker; requires the .NET 10 SDK.
npm: add "mcpServers": {"roslyn-codelens": {"type": "stdio", "command": "npx", "args": ["-y", "roslyn-codelens-mcp"]}} to your MCP client config; the .NET 10 SDK must be on PATH. NuGet: run dotnet tool install -g RoslynCodeLens.Mcp then configure command roslyn-codelens-mcp, or use dnx RoslynCodeLens.Mcp --yes. Claude Code: claude install gh:MarcelRoozekrans/roslyn-codelens-mcp. Docker is also supported, bind-mounting the solution at /workspace (solution must be restored).
{"mcpServers":{"roslyn-codelens":{"type":"stdio","command":"npx","args":["-y","roslyn-codelens-mcp"]}}}