What it does
RoselineMCP is an MCP server that wraps the Roslyn compiler platform for C# code. It answers structural questions such as where a symbol is used, what implements an interface, who calls a method and what a file contains, and it makes member-level edits returned as unified diffs instead of whole-file rewrites. It also runs diagnostics across a solution using Roslyn and Roslynator analyzers, with automated fixes and reviewable patches. The navigation and diagnostic tools never write to disk, while the three write tools require an explicit previewOnly: false.
It suits AI coding agents such as Claude, Cursor or GitHub Copilot working on a C# solution, where navigating by structure is preferred over re-reading whole source files. The publisher reports a median 85% reduction in tokens per task for its read-only navigation tools, measured on its own source with a benchmark that can be run against another solution.
Running it requires the .NET 10 SDK when launched through dnx, the NuGet global tool or a build from source. Docker can be used instead, with the -i flag needed for stdio transport. Client configuration is added to the MCP settings of the chosen client. A compile guard, a PostToolUse hook that checks the compiler's result after file writes, is opt-in.
Limitations and requirements
Requires the .NET 10 SDK for the dnx launcher, the NuGet global tool and building from source. The Docker option requires Docker Desktop or Docker Engine. The three write tools modify files only when previewOnly is set to false. The compile guard is opt-in. The publisher states that client configuration snippets are documented but not independently verified for every MCP client.
Safety
Our team has not reviewed this resource. Only automated rules checked it; resources with high-risk signals are not published. These are signals, not a guarantee that installing it is safe. Try it in a sandbox project first.
- Runs code or changes an assistant's behaviour
Sources
- Official MCP Registry first seen 13 Nov 2026 · last seen 16 Nov 2026 · its page on the source
RoselineMCP
MCP server for C# code analysis and automated fixing using Roslyn analyzers and code fix providers.
v4.0.1As shown on registry.modelcontextprotocol.io when we last read it