MCP server · Developer tools
Roslyn CodeLens MCP server
Gives your AI deep understanding of .NET code: find callers, implementations, tests, complexity and more.

This is a helper that lets your AI read and understand a .NET codebase in detail. Instead of guessing, it can look up who calls a method, which classes implement an interface, which tests cover a symbol, and where the tricky parts are. It is handy for .NET developers who use an AI assistant and want answers grounded in the real code.
What is an MCP server? The 30-second version
On its own, your AI can only chat with you. An MCP server is a small helper program that gives your AI a new skill or a connection to an app or service. This one connects your AI to your .NET solution, so it can look things up and answer questions about your code. You ask in plain words, and the AI uses this helper to check the real code before replying.
What this MCP server does
You ask your AI a question about your .NET code, like who calls a method or which tests cover a class. The AI sends that request to this helper. The helper reads your solution, builds an index, and searches through types, methods, and references. Then it sends back a clear list or summary, and the AI explains it to you in the chat. Some tools can also suggest code fixes or rename a symbol across the whole solution.
Click to zoomWhat you can do with it
- Find every place a method, property, or constructor is called
- List all classes that implement an interface or extend a class
- Show which tests cover a production symbol and which do not
- Check compiler errors, warnings, and analyzer diagnostics
- Measure complexity and spot oversized or tangled classes
- Trace how exceptions flow through your code
- Rename a symbol safely across the whole solution
Try asking your AI
- “Who calls the SaveOrder method in my solution?”
- “Which classes implement IOrderService?”
- “Show me the public methods that no test reaches, sorted by complexity”
- “What exceptions can escape the ProcessPayment method?”
What it gives back to you
You get back lists, counts, and short summaries in the chat. For example, a list of call sites with file and line numbers, or a table of test methods per project. Some tools return a suggested test skeleton or a preview of a code change before anything is written. The AI turns these results into a plain answer for you.
Before you start
What you need
- A .NET solution you want to analyze
- The .NET SDK installed on your computer
- An AI app that supports MCP servers, like Claude Desktop or Cursor
Good to know
Some tools can change your code, like rename_symbol and apply_code_action, so use preview mode and review the diff before letting them write to disk.
Install it with your AI
Add Roslyn CodeLens MCP server to your AI, no technical skills needed
You don't install anything by hand. You copy one prompt, paste it into an AI that can work on your computer, and it checks, installs and connects the server for you, asking you when it needs something.
Sign in to get the install prompt
Members get a ready-made prompt that lets the Claude desktop app check Roslyn CodeLens MCP server, install it and connect it for them, step by step. You don't need any technical skills: you copy, paste and answer a few questions. Your connected AI can also find and install any of the 4,066 MCP servers here for you.
Who it's for
This is most useful for .NET developers, tech leads, and teams who maintain C# codebases and want an AI assistant that truly understands their code.





