MarcelRoozekrans/roslyn-codelens-mcp
by Various
Roslyn-based MCP server providing semantic code intelligence for .NET codebases — type hierarchies, call sites, DI registrations, and reflection usage for Claude Code
MCP
MarcelRoozekrans/roslyn-codelens-mcp
Added 1 June 2026
Overview
A Roslyn-based MCP server that provides semantic code intelligence for .NET codebases. It exposes type hierarchies, call sites, dependency injection registrations, and reflection usage through the Model Context Protocol for use with Claude Code.
Best for
Best for
Developers working with .NET codebases who want semantic code understanding via Claude Code
Use cases
- Navigating type hierarchies in large .NET projects
- Finding all call sites of a specific method
- Auditing DI registrations and reflection usage across a solution
How to use
Tools exposed
go_to_definitionfind_implementationsget_project_dependenciesget_type_hierarchyfind_circular_dependenciesget_symbol_contextget_source_generatorsanalyze_data_flowfind_attribute_usagesget_generated_codeanalyze_control_flowfind_large_classesget_di_registrationsfind_reflection_usageget_complexity_metricsget_code_actionsget_file_overviewget_diagnosticsget_nuget_dependenciesget_public_api_surface
Tested with
Claude Code, VS Code
Example client config
{\n "mcpServers": {\n "roslyn-codelens": {\n "type": "stdio",\n "command": "npx",\n "args": ["-y", "roslyn-codelens-mcp"]\n }\n }\n} Notes
A Roslyn-based MCP server that provides semantic code intelligence for .NET codebases. It exposes type hierarchies, call sites, dependency injection registrations, and reflection usage through the Model Context Protocol for use with Claude Code.
13 stars on GitHub. Last updated 2026-05-28. Licensed MIT.
Use cases
- Navigating type hierarchies in large .NET projects
- Finding all call sites of a specific method
- Auditing DI registrations and reflection usage across a solution
Pros
- Leverages Roslyn for deep semantic analysis beyond text search
- Integrates with Claude Code for natural language code queries
- Covers specific .NET concerns like DI and reflection
Cons
- Low star count (13) indicates limited community adoption
- Only works with .NET codebases and requires Roslyn
- Depends on Claude Code for the client interaction
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Leverages Roslyn for deep semantic analysis beyond text search
- Integrates with Claude Code for natural language code queries
- Covers specific .NET concerns like DI and reflection
Cons
- Low star count (13) indicates limited community adoption
- Only works with .NET codebases and requires Roslyn
- Depends on Claude Code for the client interaction
Open-source & AI alternatives
Swap-in tools that solve the same job. Weigh the trade-offs before you commit.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.
