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.
Strongest · Documentation 18/20 Weakest · Reliability 9/20
Static review · not runListed 2026-09-07
Read the FMRS scoring method →Runtime:.NET 10+ · Node.js · Docker
ROSLYN_CODELENS_OPEN_PROJECT_TIMEOUT_SECONDS
Per-project MSBuild load timeout in seconds (default 300); projects exceeding it are skipped and reported in SkippedProjects. Set before starting the server.
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"]}}}
Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.
{
"servers": {
"roslyn-codelens": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"roslyn-codelens-mcp"
]
}
}
}
Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).
claude mcp add roslyn-codelens -- npx -y roslyn-codelens-mcp
Run it in a terminal; replace any <…> placeholders with your own values first.
Connect the client and confirm the 67 tools (e.g. go_to_definition, get_diagnostics, trust_solution) appear in the tool list; then load a .sln and call list_solutions — seeing the loaded solution proves the connection works.
Once connected, you can ask your AI assistant things like:
No matching tools
Listed from the project's documentation, not tested by this site.
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.
Upstash's official server providing up-to-date third-party library docs for AI coding assistants
AI-powered NPM package analysis MCP server
An independent control layer that gives AI coding agents budgets, brakes, and receipts
GitHub's official MCP server for managing repos, issues, PRs, and workflows via natural language
Source revision 45f6b21fdd17 Data synced 2026-10-19 Read the FMRS scoring method