MCP server for C# code analysis and automated fixing using Roslyn analyzers and code fix providers.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
Expose Roslyn code analysis as an MCP server so AI assistants can analyze and fix C# quality issues directly.
C# codebases accumulate quality issues silently -- inconsistent naming, missing nullable annotations, unused usings, suboptimal patterns. Manual code reviews catch some, but Roslyn analyzers can catch them all automatically. The problem: setting up and running analyzers across large codebases is tedious, and the results are not easily actionable from an AI assistant workflow.
RoselineMCP exposes Roslyn analysis as an MCP server so AI assistants can analyze and fix C# code quality issues directly. Connect it to Claude Desktop or any MCP-compatible client and get comprehensive diagnostics, automated fixes, and reviewable patches -- all without leaving your AI workflow.
dotnet tool install command| Layer | Technology |
|---|---|
| Runtime | .NET 10.0 |
| Compiler Platform | Roslyn (Microsoft.CodeAnalysis) 5.3.0 |
| Analyzers | Roslynator 4.15.0 |
| MCP SDK | ModelContextProtocol 1.1.0 |
| Diff Engine | DiffPlex 1.9.0 |
| Build System | MSBuild 18.4.0 |
| Hosting | Microsoft.Extensions.Hosting 10.0.5 |
Option 1 -- NuGet Global Tool (recommended)
Requires .NET 10.0 SDK or later.
After installation, the roseline-mcp command is available globally.
Add to your Claude Desktop configuration file (claude_desktop_config.json):
Config file location:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json- Windows:
%APPDATA%\Claude\claude_desktop_config.json
Option 2 -- Docker
No SDK required. Works on any platform with Docker installed.
Note: The
-iflag is required for stdio transport. The--rmflag removes the container after the session ends.
Option 3 -- Build from Source
Analyzes an entire C# solution for diagnostics.
Gets detailed diagnostics for a specific project.
Applies automated code fixes for specified diagnostics.
Generates a unified diff between two text versions.
RoselineMCP includes support for:
Response:
Response includes a unified diff patch showing all changes that would be applied.
ROSELINE_LOG_LEVEL: Set logging level (Debug, Information, Warning, Error)ASPNETCORE_ENVIRONMENT: Set environment (Development, Production)Configure logging and other settings:
RoselineMCP uses stdio transport β this is an intentional design decision. The server runs as a local process launched by the MCP client (Claude Desktop, AI agents), communicates over stdin/stdout, and exits when the client disconnects. This makes it perfectly suited for distribution as a NuGet global tool (dotnet tool install -g RoselineMCP) or Docker image β no port binding, no HTTP server, no infrastructure to manage.
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/roselinemcp)<a href="https://allmcps.com/mcp/roselinemcp"><img src="https://allmcps.com/api/badge/roselinemcp?style=directory" alt="RoselineMCP on AllMCPs" /></a>