67 semantic C#/.NET analysis tools via Roslyn: navigation, refactoring, codegen, audit.
Connect Runs on your machine
claude mcp add sharplens -e DOTNET_SOLUTION_PATH=<DOTNET_SOLUTION_PATH> -e ROSLYN_LOG_LEVEL=<ROSLYN_LOG_LEVEL> -e ROSLYN_TIMEOUT_SECONDS=<ROSLYN_TIMEOUT_SECONDS> -- npx -y [email protected]
{
"mcpServers": {
"sharplens": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"DOTNET_SOLUTION_PATH": "<DOTNET_SOLUTION_PATH>",
"ROSLYN_LOG_LEVEL": "<ROSLYN_LOG_LEVEL>",
"ROSLYN_TIMEOUT_SECONDS": "<ROSLYN_TIMEOUT_SECONDS>"
}
}
}
}
{
"mcpServers": {
"sharplens": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"DOTNET_SOLUTION_PATH": "<DOTNET_SOLUTION_PATH>",
"ROSLYN_LOG_LEVEL": "<ROSLYN_LOG_LEVEL>",
"ROSLYN_TIMEOUT_SECONDS": "<ROSLYN_TIMEOUT_SECONDS>"
}
}
}
}
{
"servers": {
"sharplens": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"DOTNET_SOLUTION_PATH": "<DOTNET_SOLUTION_PATH>",
"ROSLYN_LOG_LEVEL": "<ROSLYN_LOG_LEVEL>",
"ROSLYN_TIMEOUT_SECONDS": "<ROSLYN_TIMEOUT_SECONDS>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
DOTNET_SOLUTION_PATHOptional | Path to .sln or .slnx file to auto-load on startup |
ROSLYN_LOG_LEVELOptional | Logging verbosity: Trace, Debug, Information, Warning, Error |
ROSLYN_TIMEOUT_SECONDSOptional | Timeout for long-running operations |
Details
| Package | [email protected] (NPM, stdio) |
| Package | [email protected] (NUGET, stdio) |
| First published | 20 May 2026 |
| Last updated | 20 May 2026 |
| Registry name | io.github.pzalutski-pixel/sharplens |
More other servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
