C# Class Analyzer MCP server
io.github.undy-mosq/CSharpAnalyserMcp·v1.0.4·1 starsA read-only MCP server that lets an AI assistant browse any C# solution through Roslyn.
not scanned yet
1 stars
Reviews
Write oneNobody has reviewed C# Class Analyzer MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
C# Class Analyzer MCP tools
No tool declarations could be read from the package source. They show once the server is installed.
How C# Class Analyzer MCP compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 88/100
- higher than 75% of 48,255 servers
- GitHub stars
- 1
- more than 65% of 28,688 servers
Release history: 3 versions in the registry since 2026-09-30, latest 2026-10-23, typically one every 19 days.
Install C# Class Analyzer MCP in Claude Code, Cursor or VS Code
The registry entry has no remote endpoint or installable package.
What the publisher says
From the C# Class Analyzer MCP repository's README, as published. We do not edit it. Read it on GitHub
English | 简体中文
CSharpAnalyserMcp
A read-only Model Context Protocol (MCP) server that lets an AI assistant browse any C# solution through Roslyn.
The server loads a solution with MSBuildWorkspace into a cached Roslyn snapshot and then answers structured queries about it: where each type is declared, its XML documentation, and a method's signature, documentation, source location and body. An agent can therefore pull in the exact slice of source it needs instead of reading whole files into its context window.
- Transport: stdio (StdioServerTransport), protocol traffic on stdout only; all logs go to stderr.
- Solution path is passed on the command line (--workspace ); the solution is loaded before the MCP handshake, so a bad path fails fast with a message on stderr and a non-zero exit code.
- Tools declare structured output (UseStructuredContent), so results arrive as MCP structuredContent with camelCase JSON fields.
- Distribution: published to NuGet as the .NET tool CSharpAnalyserMcp (command csharp-analyser-mcp) and listed in the official MCP Registry as io.github.undy-mosq/CSharpAnalyserMcp.
Installation
NuGet .NET tool (recommended)
dotnet tool install --global CSharpAnalyserMcp
csharp-analyser-mcp --workspace D:\MyProject\MySolution.sln
# upgrade / remove
dotnet tool update --global CSharpAnalyserMcp
dotnet tool uninstall --global CSharpAnalyserMcpInstall it globally: a --local install only writes a manifest entry, so csharp-analyser-mcp never lands on PATH and MCP clients cannot start it.
On demand with dnx (nothing to install, .NET SDK 10+)
# "--" separates dnx options from the arguments forwarded to the server
dnx CSharpAnalyserMcp --yes -- --workspace D:\MyProject\MySolution.slnFrom source
git clone https://github.com/undy-mosq/CSharpAnalyserMcp
dotnet build CSharpAnalyserMcp\CSharpAnalyserMcp.csproj
dotnet run --project CSharpAnalyserMcp -- --workspace D:\MyProject\MySolution.slnRequirements
Client configuration
The server is started with a single argument, --workspace, pointing at the solution file.
Installed .NET tool
The global tool shim lives in %USERPROFILE%\.dotnet\tools. MCP clients spawn the process themselves and only see the PATH they inherited, so point the configuration at the shim by absolute path (expand %USERPROFILE%, e.g. C:\Users\you\.dotnet\tools\csharp-analyser-mcp.exe):
Claude Desktop (claudedesktopconfig.json):
{
"mcpServers": {
"csharp-analyser": {
"command": "C:\\Users\\you\\.dotnet\\tools\\csharp-analyser-mcp.exe",
"args": ["--workspace", "D:\\MyProject\\MySolution.sln"]
}
}
}VS Code (.vscode/mcp.json):
{
"servers": {
"csharp-analyser": {
"type": "stdio",
"command": "C:\\Users\\you\\.dotnet\\tools\\csharp-analyser-mcp.exe",
"args": ["--workspace", "D:\\MyProject\\MySolution.sln"]
}
}
}The bare command name ("command": "csharp-analyser-mcp") works only when that directory is already on the client's PATH; a client started before the tool was installed keeps the old environment, so restart it after changing PATH.
On demand with dnx (nothing installed)
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
C# Class Analyzer MCP: common questions
- Is C# Class Analyzer MCP server safe?
- Yes, by our scan: it is graded A (88/100). Read the C# Class Analyzer MCP safety report
- Does C# Class Analyzer MCP need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is C# Class Analyzer MCP maintained?
- The last commit was 35 days ago (2026-09-30). The latest release is v1.0.4.
- How does C# Class Analyzer MCP compare with other MCP servers?
- safety score 88/100 (higher than 75% of 48,255 servers); github stars 1 (more than 65% of 28,688 servers). Full comparison.