Roslyn CodeLens MCP Server

Roslyn-based MCP server providing semantic code intelligence for .NET codebases.

Remote serverstreamable-http

What is the Roslyn CodeLens MCP Server?

Roslyn-based MCP server providing semantic code intelligence for .NET codebases.

What you get

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.

  • find_implementations — — Find all classes/structs implementing an interface or extending a class
  • find_callers — — Find every call site for a method, property, or constructor
  • find_event_subscribers — — Every += / -= site for an event symbol, with resolved handler and subscribe/unsubscribe tag
  • find_tests_for_symbol — — List xUnit/NUnit/MSTest methods that exercise a production symbol; opt-in transitive walk through helpers
  • get_test_summary — — Per-project inventory of test methods with framework, attribute kind, data-row count, location, and production symbols referenced
  • find_uncovered_symbols — — Public methods and properties no test transitively reaches; sorted by cyclomatic complexity for prioritization

Configuration and credentials

  • .NET 10 SDK - A .NET solution with compilable projects

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Roslyn CodeLens MCP Server

{
  "mcpServers": {
    "roslyn-codelens": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "roslyn-codelens-mcp"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • .NET 10 SDK - A .NET solution with compilable projects

Frequently asked questions

Roslyn-based MCP server providing semantic code intelligence for .NET codebases. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.