roslyn-mcp MCP Server
Local-first MCP server for semantic C# analysis & refactoring via Roslyn & MSBuildWorkspace.
roslyn-mcp scores 68 (Good), licensed MIT and written in C#. It installs as a local process. It declares 1 tool. Filed under Developer tools. GitHub shows 2 stars. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
68 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade B
71/100 for listing completeness. Lost points: 1 of 1 tools barely described, short summary.
How quality is graded
Where the 68 comes from
22 + 20 + 2 + 10 + 4 + 10 = 68. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 2 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 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.
{ "mcpServers": { "darylmcd-roslyn-backed-mcp": { "command": "dnx", "args": [ "Darylmcd.RoslynMcp" ], "env": { "ROSLYNMCP_SANCTIONED_ROOTS": "" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
ROSLYNMCP_SANCTIONED_ROOTS | Optional | Server-owned filesystem boundary for path validation and solution discovery. Path-separator-delimited (';' on Windows, ':' on macOS/Linux). '.' scopes the server to its working directory. An empty value fails closed: every path-taking tool rejects its input. |
Tools1Tool docs quality grade F
All capabilitiesserver_infotoola human-readable summary
About
Roslyn-Backed MCP Server
Local-first MCP (Model Context Protocol) server for semantic C# analysis, navigation, validation, and refactoring on real .sln / .slnx / .csproj workspaces. It uses Roslyn and MSBuildWorkspace, runs over stdio, and does not require Visual Studio. Refactoring tools follow a preview → apply discipline: previews return short-lived tokens, so agents can dry-run multi-file edits before mutating the workspace. It ships as a .NET global tool, a Claude Code plugin, and a source-buildable stdio host.
Correct package ID:
Darylmcd.RoslynMcp· CLI:roslynmcp· Plugin:roslyn-mcp@roslyn-mcp-marketplace
Quick Start
Prerequisite: the .NET 10 SDK.
Option A — Install As A Global Tool
dotnet tool install -g Darylmcd.RoslynMcp
Update later with dotnet tool update -g Darylmcd.RoslynMcp.
Configure a filesystem boundary before first use. The global tool ships a binary, not a config, and an unset boundary is fail-closed: every path-taking tool rejects its input. Set
ROSLYNMCP_SANCTIONED_ROOTSin your MCP client config (for example a project-scope.mcp.json):{ "mcpServers": { "roslyn": { "type": "stdio", "command": "roslynmcp", "env": { "ROSLYNMCP_SANCTIONED_ROOTS": "." } } } }
.resolves against the server process's working directory, which your MCP client chooses; use an absolute path to pin the boundary. See Setup.
Option B — Zero-Install Via dnx (.NET 10)
dnx resolves the package from NuGet on demand, without installing a global shim: run dnx Darylmcd.RoslynMcp. Pin a version for reproducible setups with Darylmcd.RoslynMcp@<version>. Configure the same ROSLYNMCP_SANCTIONED_ROOTS boundary as above; copy-paste configs live in docs/mcp-json-examples/, and details are in Setup.
Option C — Claude Code Plugin
/plugin marketplace add darylmcd/Roslyn-Backed-MCP
/plugin install roslyn-mcp@roslyn-mcp-marketplace
The plugin bundles 32 skills and advisory reminder hooks, then launches the exact release-matched Darylmcd.RoslynMcp package through dnx; it does not require a global roslynmcp shim. The first launch requires NuGet access unless the package is already cached. The plugin's bundled "." boundary resolves to the session's working directory, so start Claude Code inside the repo you want to analyze; see Setup for the other supported overrides.
Per-Client Config
The JSON shape is the same across MCP clients (VS Code uses a top-level "servers" key); only the config file path differs. See the compatibility matrix for per-client paths and a health-check prompt, and docs/mcp-json-examples/ for copy-ready snippets.
Live Surface
The current release exposes 171 tools (110 stable / 61 experimental), 14 resources (9 stable / 5 experimental), and 20 prompts (all experimental).
Use the running server for the authoritative live catalog and support tiers:
server_infofor a human-readable summaryroslyn://server/catalogfor the machine-readable contractroslyn://server/resource-templatesfor resource URI templates
Stable families include workspace/session management, semantic navigation, diagnostics, build/test helpers, and preview/apply refactoring flows. Experimental families include broader project mutation, scaffolding, orchestration, multi-file edit helpers, and prompts. Set ROSLYNMCP_TOOL_TIERS=stable to register only the closed stable workflow (currently 91 callable tools) for clients that eagerly load tool definitions.
Configuration And Security
All operational settings are optional ROSLYNMCP_* environment variables with compiled-in defaults; the common ones are in docs/setup.md and the complete reference is ai_docs/references/environment-variables.md. The exception is ROSLYNMCP_SANCTIONED_ROOTS, which you must set (see above).
Loading a solution or project executes MSBuild evaluation: only load repositories you trust, or run the server in a sandbox. The filesystem boundary (ROSLYNMCP_SANCTIONED_ROOTS) is server-owned and client-advertised MCP Roots are ignored (run one server process per trust context for per-workspace isolation). See docs/setup.md and SECURITY.md for the disclosure policy. Upgrading from 2.x? Read the migration notes first. Upgrading from 4.x? See the 5.0 contract and the [5.0.0] migration notes in CHANGELOG.md.
Docs
- docs/README.md — index of everything under
docs/ - docs/setup.md — packaging, install options, configuration, security model, plugin install, CI artifacts
- docs/compatibility.md — MCP client compatibility matrix and health check
- docs/stdio-client-integration.md — custom MCP client integration
- docs/product-contract.md — stable vs experimental surface contract
- docs/release-policy.md — release gates and compatibility rules
- CONTRIBUTING.md — build from source, tests, and filing surface-test findings
- AGENTS.md — bootstrap entry point for AI agents working in this repo
- ai_docs/README.md — canonical AI-doc routing index
Support
- Bugs and feature requests: GitHub Issues
- Contribution guidelines: CONTRIBUTING.md
- Security disclosures: SECURITY.md
Frequently asked questions
What is roslyn-mcp MCP Server?
Local-first MCP server for semantic C# analysis & refactoring via Roslyn & MSBuildWorkspace.
How do I install roslyn-mcp 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. roslyn-mcp MCP Server runs locally from the NuGet package Darylmcd.RoslynMcp with the command dnx Darylmcd.RoslynMcp.
Is roslyn-mcp MCP Server free and open source?
Yes. roslyn-mcp 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 roslyn-mcp MCP Server support remote (HTTP) connections?
No remote endpoint is listed for roslyn-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.
What tools does roslyn-mcp MCP Server provide?
roslyn-mcp MCP Server provides 1 tool: server_info. See the full tool list for descriptions and parameters.
How is roslyn-mcp MCP Server's trust score calculated?
roslyn-mcp MCP Server scores 68 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
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.