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 CodeLens MCP server is a hosted integration for AI assistants that speak the Model Context Protocol. 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

Setting it up

Being a remote server, there is no local install. You register the endpoint with your client, authorise it once, and the tools appear.

Configuration and credentials

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

Before you rely on it

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the roslyn codelens mcp server does with a few real requests.

Choosing this one

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. It is maintained by MarcelRoozekrans; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

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

It connects Roslyn CodeLens to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Roslyn CodeLens directly.