Roslyn CodeLens MCP Server
A Roslyn-based MCP server that gives AI agents deep semantic understanding of .NET codebases - type hierarchies, call graphs, DI registrations, diagnostics, refactoring, and more. It runs locally over stdio via the published package.
People connecting coding agent tools to Claude, Cursor, VS Code, or another MCP client. The project is written in C#.
VERIFIED ACTIVE
LAST COMMIT 2026-08-22 · ★ 48 · #32 OF 194 MAINTAINED CODING AGENT · VERIFIED 2026-08-25
MIT · C# · how we verify → /methodology
01 · Install Roslyn CodeLens
Claude Code
claude mcp add marcelroozekrans-roslyn-codelens-mcp -- npx -y roslyn-codelens-mcp Claude Desktop / Cursor / VS Code - add to config
{
"mcpServers": {
"marcelroozekrans-roslyn-codelens-mcp": {
"command": "npx",
"args": [
"-y",
"roslyn-codelens-mcp"
]
}
}
} Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.
Using another client? Same JSON, different key
Claude Desktop · mcpServers
Cursor · mcpServers
VS Code · servers
Windsurf · mcpServers
Zed · context_servers
Cline · mcpServers
Roo Code · mcpServers
Continue · mcpServers
LibreChat · mcpServers
Gemini CLI · mcpServers
Codex CLI · mcp_servers
Full setup guides: every client.
02 · Evidence
Security posture
What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.
runs as local process (stdio) - runs on your machine with your user's permissions
license MIT - declared in the repository
npm package roslyn-codelens-mcp - unscoped; check the name against the project README before installing
registry namespace io.github.MarcelRoozekrans is GitHub-verified and matches the repo owner
03 · What Roslyn CodeLens can do
Prose above is summarized from the project's README and registry record - no invented capabilities.
Latest releases
v2.18.0 · 2026-08-21
2.18.0 (2026-08-21) · attribute generated-code results to their authored markup · resolve generated-code blind spots surfaced by #399 · run the SDK's source generators by matching its Roslyn version (#399)
v2.17.0 · 2026-08-14
2.17.0 (2026-08-14) · add streamable HTTP transport behind --http flag
v2.16.2 · 2026-08-12
2.16.2 (2026-08-12) · let contributors opt out of ZeroAlloc.Analyzers (#376) (77502c2), closes #369
04 · Who maintains Roslyn CodeLens
Roslyn CodeLens is maintained by marcelroozekrans. We track 2 MCP servers from marcelroozekrans - 2 actively maintained, 58 combined GitHub stars, oldest repo from Mar 2026. Full record: all servers from marcelroozekrans.
05 · Facts
- category
- coding agent - ranked #32 of 194 actively-maintained coding agent servers as of 2026-08-25.
- release cadence
- 10+ releases in the last 90 days (latest 2026-08-21)
- registry
- io.github.MarcelRoozekrans/roslyn-codelens (active, first published 2026-03-30 · 29 versions)
- packages
- npm:roslyn-codelens-mcp · nuget:RoslynCodeLens.Mcp
06 · Roslyn CodeLens FAQ
What is Roslyn CodeLens?
A Roslyn-based MCP server that gives AI agents deep semantic understanding of .NET codebases - type hierarchies, call graphs, DI registrations, diagnostics, refactoring, and more. It runs locally over stdio via the published package.
Is Roslyn CodeLens still maintained?
Yes - as of 2026-08-25, its last commit was 2026-08-22 and it shipped 10+ releases in the last 90 days. We re-verify nightly.
How do I install Roslyn CodeLens?
Run `npx -y roslyn-codelens-mcp`. You can also paste the ready-made client config above.
Does Roslyn CodeLens run locally?
Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.
07 · Alternatives to Roslyn CodeLens
Alternatives to Roslyn CodeLens
Maintained coding agent servers if Roslyn CodeLens isn't the fit.
- Serena A powerful toolkit for coding, providing semantic retrieval and editing capabilities. ★ 28,461 · 2026-08-20
- Desktop Commander MCP server for terminal commands, file operations, and process management ★ 9,387 · 2026-08-21
- Ouroboros Pins an acceptance spec; the verify command and expected output never enter the success contract. ★ 5,649 · 2026-08-25
- Socraticode MCP server for local codebase indexing, semantic search, and code dependency graphs. ★ 3,274 · 2026-08-24
- Magic Cloud Self-hosted low-code platform (Docker); its MCP endpoint runs on your own instance, not via npx. ★ 1,180 · 2026-08-24
- LLM Sandbox Securely run LLM-generated code in isolated containers across 7 languages and 3 container backends. ★ 1,111 · 2026-08-23
Pairs well with
Servers that cover what Roslyn CodeLens doesn't - only shown when the pairing reason fits the companion.
- Context7 → documentation companion documentation · ★ 61,171
- GitLab MCP → documentation companion documentation · ★ 1,918
- Storybook MCP Addon → developer tools companion developer tools · ★ 268
- Xcode Build MCP → developer tools companion developer tools · ★ 6,274
- Server Filesystem → filesystem companion filesystem · ★ 38,704
- X402 List MCP → filesystem companion filesystem · ★ 58
More coding agent MCP servers · Sourcebook · Refactoring MCP Server · M1nd · Adrkit Decision Memory · Codebase Index