Skip to main content

Roslyn MCP

io.github.darylmcd/roslyn-mcp

v5.1.1Updated Nov 14, 2026stdio · NuGet

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

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add roslyn-mcp -- dnx [email protected] --yes

Configuration

1 setting.

  • ROSLYNMCP_SANCTIONED_ROOTS
    Env var· 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.

Listed in the official MCP Registry since Nov 14, 2026. Mirrored daily; last checked Nov 26, 2026.