A C# MCP (Model Context Protocol) server that integrates with Microsoft's Roslyn compiler platform to provide Claude Desktop with code analysis and
A C# MCP (Model Context Protocol) server that integrates with Microsoft's Roslyn compiler platform to provide Claude Desktop with code analysis and navigation capabilities for C# codebases. Exposed over MCP by the roslynmcp mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.
@modelcontextprotocol/inspector on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.
Everything the assistant can do here goes through one of these:
Windows — Run the PowerShell setup script: powershell .\setup.ps1You will need 2 environment variables: DOTNET_ENVIRONMENT, LOG_LEVEL. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. RoslynMCP's toolset — Windows — is a fair guide to whether it matches your workflow. It is maintained by carquiza; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| Windows | Run the PowerShell setup script: powershell .\setup.ps1 |
{
"mcpServers": {
"roslynmcp": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/inspector"],
"env": {
"DOTNET_ENVIRONMENT": "your-value",
"LOG_LEVEL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| DOTNET_ENVIRONMENT | Configuration value read at startup. | Optional |
| LOG_LEVEL | Configuration value read at startup. | Optional |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.