Roslyn Workbench
FreeNot checkedA local MCP server for Roslyn-powered C# code analysis and safe, transactional refactoring.
About
A local MCP server for Roslyn-powered C# code analysis and safe, transactional refactoring.
README
[!WARNING] Roslyn Workbench is in beta. Tool contracts, configuration and persisted state may change between releases. Review the release notes before upgrading.
Roslyn Workbench is a local stdio MCP server for Roslyn-powered C# code analysis and safe, transactional refactoring.
It provides persistent multi-workspace sessions, semantic queries for symbols and code structure, bounded agent-facing results, and source changes staged through transactions with preview, history, rollback, conflict detection and crash recovery. Code Actions use the same transaction boundary. Nothing writes source files until an explicit transaction-commit call.
Install
Roslyn Workbench is distributed as the Lantean.Roslyn.Workbench.Mcp .NET tool and requires a supported .NET 10 SDK. The 0.1.0 beta is distributed through NuGet.org. Other engineering prereleases may use GitHub Packages; consult the notes for the selected release.
For a package published to NuGet.org:
dotnet tool install --global Lantean.Roslyn.Workbench.Mcp --prerelease
See the documentation site for installation and MCP client configuration.
Configure any MCP client capable of launching a local stdio process to run:
{
"command": "roslyn-workbench-mcp",
"args": ["--state-directory", "/absolute/path/to/roslyn-workbench-state"]
}
Supported environments
Beta support covers Windows x64, Linux x64 and WSL2 x64. macOS x64 and ARM64 are best effort until hosted validation exists. Windows ARM64 and Linux ARM64 are not currently supported release targets. The server can be used by any MCP client that supports local stdio servers; optional capabilities such as elicitation depend on the client and its policy.
Improve agent tool selection
Connecting Roslyn Workbench makes its tools available, but an MCP client may not select them automatically when ordinary file and text-search tools can also attempt the task. Short repository instructions can tell an agent when compiler-aware tooling is the better choice without forcing it into every C# workflow.
Add this basic instruction to the user-level guidance used by your agent, or to repository guidance when it should apply only to a particular codebase:
## Roslyn Workbench
When Roslyn Workbench MCP is available, consider using it for C# work that benefits from compiler semantics, including precise symbol navigation, references, diagnostics, code structure, Code Actions, change-impact analysis and transactional source changes. Its semantic tools are particularly useful when symbol identity or compiler interpretation matters, while the repository's normal tools and commands remain suitable for builds, tests, package management, documentation and non-semantic file operations. Transaction previews and structured next actions can help keep source changes safe and easy to review.
The documentation site explains user-level and repository-level setup for Codex, GitHub Copilot, Claude Code and other MCP clients. User-level guidance avoids repeating the instruction when Roslyn Workbench is available across repositories, while repository guidance can provide a more specific layer for an individual codebase.
Trust and transaction safety
Open only workspaces you trust. Loading a workspace evaluates MSBuild project logic and later operations can load project analyzers with the Host process's operating-system permissions. Third-party plugins also execute as trusted in-process code and are not sandboxed.
A typical safe workflow is:
- Inspect
server-statusand open a trusted solution, solution filter or project withworkspace-open. - Use query tools to inspect the loaded workspace.
- Check
workspace-status, then begin a transaction withtransaction-start. - Stage a mutation or Code Action and inspect it with
transaction-preview. - Commit the reviewed transaction or discard it with
transaction-rollback.
The live MCP tools/list response is authoritative for the tools and schemas exposed by a running instance. The documentation site provides the richer versioned tool reference and agent guide.
Beta limitations
The existing plugin runtime remains available to source consumers, but the Plugins NuGet package, supported plugin-authoring documentation and curated plugin repository will not be published until v1 preparation. External pull requests are also not accepted before v1; Issues, Discussions, private security reports and other feedback remain welcome.
Support and project links
- Support and feedback routes
- Security reporting
- Contribution policy
- Code of Conduct
- Documentation
- Releases
- GitHub Packages
- NuGet package
Thanks
Roslyn Workbench MCP is made possible by the .NET Compiler Platform. Thank you to the Roslyn team for building and maintaining the compiler tooling that powers its semantic analysis and refactoring capabilities.
Thank you to Sentry for supporting the project with an open-source licence for its opt-in error-reporting service.
Roslyn Workbench MCP is licensed under the MIT License.
Installing Roslyn Workbench
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/lantean-code/roslyn-workbench-mcpFAQ
Is Roslyn Workbench MCP free?
Yes, Roslyn Workbench MCP is free — one-click install via Unyly at no cost.
Does Roslyn Workbench need an API key?
No, Roslyn Workbench runs without API keys or environment variables.
Is Roslyn Workbench hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Roslyn Workbench in Claude Desktop, Claude Code or Cursor?
Open Roslyn Workbench on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectAmap Maps Mcp Server
MCP server for using the AMap Maps API
by duxiaohuiSupabase
Database, auth and storage
by SupabaseEverything
Reference / test server with prompts, resources, and tools.
Git
Tools to read, search, and manipulate Git repositories.
Sequential Thinking
Dynamic and reflective problem-solving through thought sequences.
Time
Time and timezone conversion capabilities.
Compare Roslyn Workbench with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
