Roslyn MCP Server

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

Local serverstdioPython

What is the Roslyn MCP Server?

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

What it actually does

Local-first MCP (Model Context Protocol) server for semantic C# analysis, navigation, validation, and refactoring on real .sln / .slnx / .csproj workspaces. It uses Roslyn and MSBuildWorkspace, runs over stdio, and does not require Visual Studio.

  • Loads real C# solutions and projects with session-scoped workspaceIds
  • Exposes semantic navigation, diagnostics, build/test helpers, and preview/apply refactoring workflows over MCP
  • Ships as a .NET global tool, a Claude Code plugin, and a source-buildable stdio host
  • Publishes the authoritative live surface through server_info and roslyn://server/catalog

Configuration

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
roslyn//server/catalog for the machine-readable contract

Configuration

Example prompts to try

  • “Use Roslyn to Updates.”
  • “Use Roslyn to roslyn.”
  • “Use Roslyn to Client.”

Frequently asked questions

Local-first MCP server for semantic C# analysis & refactoring via Roslyn & MSBuildWorkspace. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.