Skip to content
MCP server
Registry

claude-roslyn-lsp MCP Server

C# semantic rename, code actions, fix-all, formatting and diagnostics via Microsoft's Roslyn server

claude-roslyn-lsp scores 66 (Good), licensed MIT and written in C#. It installs as a local process. It declares 10 tools. Filed under Developer tools. GitHub shows 1 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by lahmaMITC#1 stars
Trust score
66Good
Trust score 66 of 100, Good

Good trust

66 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 66 comes from

22 + 20 + 1 + 10 + 10 + 3 = 66. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity1 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 1 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security10 / 10

Not archived, a secure install path, a pinned version.

Security: 10 of 10 points.
Docs3 / 10

A real summary, a README with depth, listed tools.

Docs: 3 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "lahma-claude-roslyn-lsp": {      "command": "dnx",      "args": [        "claude-roslyn-lsp"      ],      "env": {        "CLAUDE_ROSLYN_LSP_SOLUTION": "",        "CLAUDE_ROSLYN_LSP_ROSLYN_PATH": "",        "CLAUDE_ROSLYN_LSP_ROSLYN_VERSION": "",        "CLAUDE_ROSLYN_LSP_ROSLYN_ARGS": "",        "CLAUDE_ROSLYN_LSP_CACHE_DIR": "",        "CLAUDE_ROSLYN_LSP_HOME": "",        "CLAUDE_ROSLYN_LSP_OFFLINE": "",        "CLAUDE_ROSLYN_LSP_TRANSPORT": "",        "CLAUDE_ROSLYN_LSP_READY_TIMEOUT_SECONDS": "",        "CLAUDE_ROSLYN_LSP_DIAGNOSTICS": "",        "CLAUDE_ROSLYN_LSP_DIAGNOSTIC_MIN_SEVERITY": "",        "CLAUDE_ROSLYN_LSP_WORKSPACE_DIAGNOSTICS": "",        "CLAUDE_ROSLYN_LSP_FILE_WATCHER": "",        "CLAUDE_ROSLYN_LSP_SHARE": "",        "CLAUDE_ROSLYN_LSP_SKILLS": "",        "CLAUDE_ROSLYN_LSP_GC": "",        "CLAUDE_ROSLYN_LSP_GC_CONSERVE": "",        "CLAUDE_ROSLYN_LSP_IDLE_RECYCLE_MINUTES": "",        "CLAUDE_ROSLYN_LSP_RECYCLE_GROWTH_FACTOR": "",        "CLAUDE_ROSLYN_LSP_IDLE_SHUTDOWN_MINUTES": "",        "CLAUDE_ROSLYN_LSP_LOG_LEVEL": "",        "CLAUDE_ROSLYN_LSP_ROSLYN_LOG_LEVEL": "",        "CLAUDE_ROSLYN_LSP_OPTIONS": ""      }    }  }}

Environment variables

NameRequiredNotes
CLAUDE_ROSLYN_LSP_SOLUTIONOptionalPath to the .slnx, .sln or .csproj to load. Optional: the adapter discovers one from the working directory, honouring .vscode/settings.json's dotnet.defaultSolution. Set it in a monorepo, where discovery picks a solution that is often not the one being worked in. A path that does not exist is a startup failure rather than a fall back to discovery.
CLAUDE_ROSLYN_LSP_ROSLYN_PATHOptionalDirectory holding an already-installed Microsoft.CodeAnalysis.LanguageServer.dll, used instead of downloading one. Optional; set it to run air-gapped or against a locally built server. Its version is not checked. Alias: CLAUDE_ROSLYN_LSP_SERVER_PATH.
CLAUDE_ROSLYN_LSP_ROSLYN_VERSIONOptionalOverrides the pinned roslyn-language-server version the adapter downloads from nuget.org. Optional; the pin is the only version this release is tested against, an override has no hash to verify against, and doctor reports it as unverified. Alias: CLAUDE_ROSLYN_LSP_SERVER_VERSION.
CLAUDE_ROSLYN_LSP_ROSLYN_ARGSOptionalExtra arguments for the Roslyn child process, split on whitespace with no quoting. Development only: it exists so the smoke test can point the launcher at this binary's own scripted backend.
CLAUDE_ROSLYN_LSP_CACHE_DIROptionalWhere downloaded Roslyn servers are extracted. Optional; defaults to a directory under the adapter's home. Moves the payloads only - logs and staged downloads stay under the home.
CLAUDE_ROSLYN_LSP_HOMEOptionalThe adapter's per-user state directory: downloads, logs and lock files. Optional; unset, it falls back to CLAUDE_PLUGIN_DATA and then to the platform cache location (%LOCALAPPDATA%, ~/Library/Caches, $XDG_CACHE_HOME or ~/.cache). Around 140 MB extracted per Roslyn version per platform, so it belongs on a disk with room and outside a roaming profile.
CLAUDE_ROSLYN_LSP_OFFLINEOptionalSet to 1 to refuse to download a Roslyn server. A missing cache entry becomes an immediate, explained failure instead of a 70 MB fetch. Accepts 1/true/yes/on and 0/false/no/off; default 0.
CLAUDE_ROSLYN_LSP_TRANSPORTOptionalHow the adapter talks to the Roslyn child process: pipe (default) or stdio. The named pipe is preferred because Roslyn writes a startup banner to its own stdout, which under stdio shares a stream with the protocol.
CLAUDE_ROSLYN_LSP_READY_TIMEOUT_SECONDSOptionalHow long a call waits for the workspace to finish loading before it is answered anyway, 1-3600, default 120. Tools report status "loading" rather than hanging while they wait.
CLAUDE_ROSLYN_LSP_DIAGNOSTICSOptionalThe pull-to-push diagnostics bridge, on by default. Applies to the lsp verb only: an MCP client asks for diagnostics with getDiagnostics instead. Accepts 1/true/yes/on and 0/false/no/off.
CLAUDE_ROSLYN_LSP_DIAGNOSTIC_MIN_SEVERITYOptionalThe severity floor applied before diagnostics are pushed to an LSP client: error, warning (default), information or hint. The MCP getDiagnostics tool takes its own minSeverity argument instead.
CLAUDE_ROSLYN_LSP_WORKSPACE_DIAGNOSTICSOptionalOpt-in workspace-wide diagnostics for files that are not open, for the lsp verb. Off unless set, because it needs a full-solution compiler scope, which is what makes a large solution slow.
CLAUDE_ROSLYN_LSP_FILE_WATCHEROptionalThe file-watch bridge, on by default. Without it a file created by a shell command or by git never joins its project and every later answer is silently stale. Accepts 1/true/yes/on and 0/false/no/off.
CLAUDE_ROSLYN_LSP_SHAREOptionalWhether the lsp and mcp servers share one Roslyn per solution, on by default. Off makes each of them launch a Roslyn of its own, which loads the solution twice and pays for it twice in memory. getWorkspaceStatus reports engine: owned or attached, so which of the two happened is never a guess.
CLAUDE_ROSLYN_LSP_SKILLSOptionalWhether the mcp server serves its C# workflow skill (claude-roslyn-lsp) over the MCP Skills extension, on by default, for clients that load skills from MCP servers. Turn it off where the same skill is already installed another way, so a client does not list it twice. Accepts 1/true/yes/on and 0/false/no/off.
CLAUDE_ROSLYN_LSP_GCOptionalWhich garbage collector the Roslyn child runs with: workstation (the default) or server. Workstation peaks at about 577 MB on a 239-project solution where server peaks at about 2 GB, and costs about 8 seconds of load time. An explicit DOTNET_gcServer in the environment wins over this.
CLAUDE_ROSLYN_LSP_GC_CONSERVEOptionalThe DOTNET_GCConserveMemory level, 0-9, the Roslyn child runs with: it caps how far the child's heap may grow past its live data, so less free space stays committed after a compacting collection. Default 7; 0 sets nothing. An explicit DOTNET_GCConserveMemory in the environment wins over this.
CLAUDE_ROSLYN_LSP_IDLE_RECYCLE_MINUTESOptionalHow long the session has to be idle before a Roslyn child that has grown past its threshold is stopped to give its memory back; the next call relaunches it and waits for the reload. Default 20; 0 switches the recycle off.
CLAUDE_ROSLYN_LSP_RECYCLE_GROWTH_FACTOROptionalHow far past its post-load baseline the Roslyn child has to have grown before an idle recycle is worth a reload: the threshold is the larger of baseline times this factor and baseline plus 512 MB. A decimal, 1.2-20, default 2.
CLAUDE_ROSLYN_LSP_IDLE_SHUTDOWN_MINUTESOptionalStop the Roslyn child after this many idle minutes whatever its size; the next call relaunches it. Default 0, which is off, because every relaunch costs a full solution load.
CLAUDE_ROSLYN_LSP_LOG_LEVELOptionalTrace, Debug, Information, Warning, Error, Critical or None (default Information). Logs go to stderr only - stdout is the JSON-RPC channel.
CLAUDE_ROSLYN_LSP_ROSLYN_LOG_LEVELOptionalThe level handed to the Roslyn child process, default Warning. Its Information level is about twenty lines of narration per start, all of it on this adapter's stderr.
CLAUDE_ROSLYN_LSP_OPTIONSOptionalA JSON object merged into the answers the adapter gives Roslyn's workspace/configuration requests, for the sections the defaults get wrong for your repository. A syntax error is a logged warning, never a startup failure.

Tools10Tool docs quality grade B

All capabilities
  • Applies one of them, optionally across the document, the project or the whole solution.

  • Every semantic reference across the solution, the source line beside each one, a per-file summary, de-duplicated across target frameworks, paged.

  • Roslyn's own fix-all for one diagnostic id (IDE0005, CA1822, …) across a file, a project or the solution.

  • Formats with Roslyn, honouring .editorconfig, optionally organising usings. Never shells out to dotnet format, and applies endofline and insertfinalnewline as it does.

  • The quick fixes and refactorings Roslyn offers at a position: the lightbulb list, each with a short stable id, the diagnostic ids it addresses, and the scopes its fix-all accepts.

  • Compiler errors and warnings — and, on request, IDE and CA analyzer diagnostics — for a file, a project or the whole solution. About a second for a file; the first solution-wide pass compiles every project and costs a minute or more.

  • Lists a type's members and their signatures without reading the file — including for a type that comes from a NuGet package rather than the checkout.

  • Which solution is open, how far it has loaded, load errors, the projects and their target frameworks, the Roslyn build in use, and the language server's process id and working set. The tool every loading note points at.

  • A solution-wide semantic rename: overrides, interface implementations, other projects. Not a search and replace, and not a file rename.

  • Finds where a symbol is declared, semantically, with its hover signature and a 1-based position you can hand straight to an LSP tool. Ambiguity returns every candidate rather than a guess.

About

C# semantic rename, code actions, fix-all, formatting and diagnostics via Microsoft's Roslyn server

Frequently asked questions

What is claude-roslyn-lsp MCP Server?

C# semantic rename, code actions, fix-all, formatting and diagnostics via Microsoft's Roslyn server

How do I install claude-roslyn-lsp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. claude-roslyn-lsp MCP Server runs locally from the NuGet package claude-roslyn-lsp with the command dnx claude-roslyn-lsp.

Is claude-roslyn-lsp MCP Server free and open source?

Yes. claude-roslyn-lsp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does claude-roslyn-lsp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for claude-roslyn-lsp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does claude-roslyn-lsp MCP Server provide?

claude-roslyn-lsp MCP Server provides 10 tools, including applyCodeAction, findReferences, fixDiagnostics, and formatCode. See the full tool list for descriptions and parameters.

How is claude-roslyn-lsp MCP Server's trust score calculated?

claude-roslyn-lsp MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server