Analyzes .NET codebases through Roslyn-backed semantic search, diagnostics, testing, architecture, and refactoring tools.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag โ we're steadily working through the catalog.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Roslyn Codelens MCP.
MarcelRoozekrans/roslyn-codelens-mcp MCP server gives MCP-compatible AI agents access to semantic information from .NET projects. It uses Roslyn to understand symbols and relationships instead of treating source files as plain text. The tool set includes code navigation, dependency analysis, diagnostics, test coverage discovery, quality checks, API comparison, and refactoring operations.
The server can locate implementations, callers, references, definitions, event subscriptions, attribute usages, and tests for a symbol. It can also explain type hierarchies, project dependencies, dependency-injection registrations, construction options, exception flow, reflection usage, and NuGet references. For API and maintenance work, it can enumerate public surfaces, compare them with a JSON or DLL baseline, find obsolete usage, detect circular dependencies, and inspect source-generator output.
Roslyn provides the semantic model used to resolve types, members, inheritance, calls, diagnostics, and source locations. The project description states that the server builds indexes for fast lookups. Results can include precise occurrence kinds and source columns, which allows callers to distinguish reads, writes, invocations, object creation, casts, declarations, and other reference forms.
Several capabilities operate across project boundaries. For example, dependency-injection analysis recognizes generic registrations, typeof pairs, and factory-lambda forms. Instantiation analysis combines constructors, static factories, registrations, and required members, and can account for InternalsVisibleTo when evaluating whether a particular project can access an option. Test-oriented tools can walk through helpers transitively, generate a compilable test-class skeleton, and identify public members that no test reaches.
The server also supports source inspection and changes. It can return complete member declarations, inspect external assemblies and IL, provide compiler or analyzer diagnostics, return structured code fixes, discover code actions, and apply a selected Roslyn action with a preview diff before writing changes.
The repository publishes a NuGet package named RoslynCodeLens.Mcp and an npm package named roslyn-codelens-mcp. The supplied material also identifies a hosted deployment on Fronteir AI. No required environment variables, API keys, or configuration values are described in the provided documentation.
For local MCP client setup, use the package distribution appropriate to the client and runtime environment. The exact README excerpt does not provide a full client configuration block, so settings such as workspace selection, project loading, or solution paths should be verified in the repository documentation before deployment.
The documented capabilities include:
MarcelRoozekrans/roslyn-codelens-mcp MCP server is therefore best suited to repository-aware .NET maintenance, review, navigation, and refactoring workflows.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/marcelroozekrans-roslyn-codelens-mcp)<a href="https://allmcps.com/mcp/marcelroozekrans-roslyn-codelens-mcp"><img src="https://allmcps.com/api/badge/marcelroozekrans-roslyn-codelens-mcp?style=directory" alt="Roslyn Codelens MCP on AllMCPs" /></a>