Skip to content
Grok

roslyn mcp for Grok

io.github.darylmcd/roslyn-mcp

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

client:Grok transport:stdio runtime:nuget

Install roslyn mcp in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "roslyn-mcp": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "Darylmcd.RoslynMcp",
        "--yes"
      ],
      "env": {
        "ROSLYNMCP_SANCTIONED_ROOTS": "<ROSLYNMCP_SANCTIONED_ROOTS>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

roslyn mcp in other clients