Skip to content
MCP server

Roslyn Workbench MCP

Compiler-aware C# navigation, Roslyn code fixes and reviewable edits for agents

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
Windows, Linux, macOS
Runs
Locally
Version
1.2.0
Listing updated
3 days ago

About Roslyn Workbench MCP

Roslyn Workbench MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Roslyn Workbench runs locally and gives a coding agent the C# fixes and refactorings Visual Studio offers, powered by the same .NET Compiler Platform. It says it sits over more than 230 built-in Roslyn code fix and refactoring providers, and the README's reference catalogue lists 57 tool definitions across navigation, analysis, Code Actions and workspace management. The live set depends on operational mode and plugins.

Edits go through transactions: stage the change, inspect the diff, then commit or roll back, with preview, history, conflict detection and crash recovery. Four modes control risk: inspection-only (the default, no mutation tools), transactional, approval-required and autonomous-trusted. Actions needing dialogs or package installation are excluded, so it is not full Visual Studio parity.

It installs from NuGet as a .NET tool requiring a .NET 10 SDK. Windows x64, Linux x64 and WSL2 are supported; macOS is best effort. An optional skill guides agents through its workflow.

Install

Run in a terminal

claude mcp add roslyn-workbench-mcp -- dnx Lantean.Roslyn.Workbench.Mcp --yes

Add to claude_desktop_config.json

{
  "mcpServers": {
    "roslyn-workbench-mcp": {
      "command": "dnx",
      "args": [
        "Lantean.Roslyn.Workbench.Mcp",
        "--yes"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "roslyn-workbench-mcp": {
      "command": "dnx",
      "args": [
        "Lantean.Roslyn.Workbench.Mcp",
        "--yes"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "roslyn-workbench-mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "Lantean.Roslyn.Workbench.Mcp",
        "--yes"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "roslyn-workbench-mcp": {
      "command": "dnx",
      "args": [
        "Lantean.Roslyn.Workbench.Mcp",
        "--yes"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "roslyn-workbench-mcp": {
      "command": "dnx",
      "args": [
        "Lantean.Roslyn.Workbench.Mcp",
        "--yes"
      ]
    }
  }
}

What it does

Roslyn Code Actions
Discovers and applies compiler-generated fixes and refactorings.
Semantic navigation
Definitions, references, implementations, callers and type hierarchies.
Staged transactions
Preview, commit or roll back changes with conflict detection.
Operational modes
Inspection-only by default; mutation is opt-in.
Fix All
Prepares supported fixes across a document, project or solution.
Bounded responses
Avoids loading a whole solution into the chat.

Good for

  • Extract a method or inline a variable with Roslyn
  • Find all references to a symbol using compiler semantics
  • Apply an analyzer's Fix All across a project
  • Review a refactoring diff before it touches files

Pricing

Open source

Open-source .NET tool on NuGet

Prices change. Check lantean-code.github.io before you buy.

Roslyn Workbench MCP FAQ

Does it change files by default?

No. Inspection-only is the default and exposes no mutation tools.

What does it need?

A .NET 10 SDK; installed as a NuGet .NET tool.

Which platforms work?

Windows x64, Linux x64 and WSL2; macOS is best effort.

Does it run in the cloud?

No. It runs locally over stdio on your machine.

Is Roslyn Workbench MCP free?

Yes. Roslyn Workbench MCP is open source, so you can use and self-host it for free.

How do I add Roslyn Workbench MCP to Claude Code?

Run this command in your terminal: claude mcp add roslyn-workbench-mcp -- dnx Lantean.Roslyn.Workbench.Mcp --yes

What are the best alternatives to Roslyn Workbench MCP?

The closest alternatives to Roslyn Workbench MCP are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to Roslyn Workbench MCP

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools