mcpbeat Sign in

Roslyn CodeLens MCP Server

local only

Roslyn CodeLens runs on your own machine — the client starts it, so there is no endpoint to ping. 156 installs a week from npm. Last commit 1 Nov 2026.

Roslyn MCP server: semantic .NET/C# intelligence - analysis, refactoring, tests, IL inspection.

Installs per day peak 172 · avg 21 · -19% w/w
a month agotoday
156
Installs / week
npm · roslyn-codelens-mcp
70
Stars
1 open issue
1 Nov 2026
Last commit
5 releases in 90 days
MIT
License
C#

What the code does

We read the source, 22 h ago · rules 995398eba69f

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

  const candidate = path.join(dir, name);
In the project's build, not in the package

Found in continuous integration, deployment or infrastructure files, or in a neighbouring package of the same monorepo. None of this is installed when you add the server: it describes how the project is built and released. We list it because a leaked key in a build pipeline is still a real problem, but it is not something this server does on your machine.

CI pipeline leaks secrets outward .github/workflows/release-please.yml:72
        run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add roslyn-codelens -- npx -y roslyn-codelens-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "roslyn-codelens": {
      "command": "npx",
      "args": [
        "-y",
        "roslyn-codelens-mcp"
      ]
    }
  }
}
~/.codex/config.toml
[mcp_servers.roslyn-codelens]
command = "npx"
args = ["-y", "roslyn-codelens-mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "roslyn-codelens": {
      "command": "npx",
      "args": [
        "-y",
        "roslyn-codelens-mcp"
      ]
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "roslyn-codelens": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "roslyn-codelens-mcp"
      ]
    }
  }
}

Alternatives to Roslyn CodeLens

same job, measured the same way
SharpLens
by pzalutski-pixel

67 semantic C#/.NET analysis tools via Roslyn: navigation, refactoring, codegen, audit.

97 installs/wk local only
JavaLens
by pzalutski-pixel

75 semantic Java analysis tools via Eclipse JDT: navigation, refactoring, code intelligence.

270 installs/wk local only
Roslyn MCP
by darylmcd

Local-first MCP server for semantic C# analysis & refactoring via Roslyn & MSBuildWorkspace.

local only
Flyto Indexer
by flytohub

Code intelligence MCP server — impact analysis, semantic search, dependency graphs

350 installs/wk local only
Flyto Indexer
by chesterhsu

Code intelligence MCP server: impact analysis, dependency graphs, dead code detection.

local only
Ckb
by simplyliz

Code intelligence MCP server — 80+ tools for navigation, impact analysis, and architecture

78 installs/wk local only
K
Kai
by kailayerhq

Semantic code intelligence — call graphs, dependencies, impact analysis, and test coverage.

217 installs/wk local only
Godotiq
by salvo10f

Intelligent MCP server for Godot 4. Spatial intelligence, code analysis, 35 tools.

224 installs/wk local only

Roslyn CodeLens — questions

Answers built from our own checks of this server.

Why is there no uptime for Roslyn CodeLens?
Roslyn CodeLens runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package roslyn-codelens-mcp was installed 156 times last week.
How do I connect Roslyn CodeLens?
Copy the ready config from this page. We generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each in the form that client actually reads. It runs locally, so the command pulls roslyn-codelens-mcp straight from npm; nothing to host, nothing to sign up for.
How many people use Roslyn CodeLens?
The npm package roslyn-codelens-mcp was installed 156 times in the last week. Week over week that is -19%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Roslyn CodeLens open source?
Yes — it is published under the MIT licence, written in C#, 70 stars on GitHub and 1 open issue. The source link is on this page, so you can read exactly what it does with your data before you connect it.