RoslynMCP MCP Server

A C# MCP (Model Context Protocol) server that integrates with Microsoft's Roslyn compiler platform to provide Claude Desktop with code analysis and

Local serverstdio

What is the RoslynMCP MCP Server?

A C MCP (Model Context Protocol) server that integrates with Microsoft's Roslyn compiler platform to provide Claude Desktop with code analysis and navigation

What it actually does

  • Wildcard Symbol Search — - Find classes, methods, and properties using pattern matching (Service, GetUser, etc.)
  • Reference Tracking — - Locate all usages of symbols across entire solutions
  • Symbol Information — - Get detailed information about types, methods, properties, and more
  • Dependency Analysis — - Analyze project dependencies and namespace usage patterns
  • Code Complexity Analysis — - Identify high-complexity methods using cyclomatic complexity metrics
  • Performance Optimized — - Multi-level caching and incremental analysis for large codebases

Configuration

  • .NET 8.0 SDK or later - Visual Studio 2022 or VS Code (recommended for development) - Claude Desktop application

More MCP options

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

Maintainer setup documentation.

How to install the RoslynMCP MCP Server

{
  "mcpServers": {
    "roslyn-code-navigator": {
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "/path/to/RoslynMCP/RoslynMcpServer"
      ],
      "env": {
        "DOTNET_ENVIRONMENT": "Production",
        "LOG_LEVEL": "Information"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

  • .NET 8.0 SDK or later - Visual Studio 2022 or VS Code (recommended for development) - Claude Desktop application
VariableDescriptionRequired
DOTNET_ENVIRONMENTDeclared in the maintainer’s client configuration.Check documentation
LOG_LEVELDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use RoslynMCP to Windows.”

Frequently asked questions

A C# MCP (Model Context Protocol) server that integrates with Microsoft's Roslyn compiler platform to provide Claude Desktop with code analysis and navigation Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.