mcpbeat Sign in

SharpLens MCP Server

local only

SharpLens runs on your own machine — the client starts it, so there is no endpoint to ping. 84 installs a week from npm. Last commit 17 Aug 2026.

67 semantic C#/.NET analysis tools via Roslyn: navigation, refactoring, codegen, audit.

Installs per day peak 54 · avg 15 · -32% w/w
a month agotoday
84
Installs / week
npm · sharplens-mcp
33
Stars
0 open issues
17 Aug 2026
Last commit
0 releases in 90 days
MIT
License
C#

What the code does

We read the source, 18 h ago · rules 3dff92dd89df

Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

File ships in the package but is absent from the source [пакет] bin/sharplens-mcp.js:1
этот файл ставится пользователю, но в репозитории его нет
Runs an external command src/RoslynService.ApiSurface.cs:456
        using var process = Process.Start(startInfo)

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

This code can reach further than it looks

We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add sharplens -- npx -y sharplens-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "sharplens": {
      "args": [
        "-y",
        "sharplens-mcp"
      ],
      "command": "npx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.sharplens]
command = "npx"
args = ["-y", "sharplens-mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "sharplens": {
      "args": [
        "-y",
        "sharplens-mcp"
      ],
      "command": "npx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "sharplens": {
      "args": [
        "-y",
        "sharplens-mcp"
      ],
      "command": "npx"
    }
  }
}

This one needs environment variables set before it will start: DOTNET_SOLUTION_PATH (Path to .sln or .slnx file to auto-load on startup), ROSLYN_LOG_LEVEL (Logging verbosity: Trace, Debug, Information, Warning, Error), ROSLYN_TIMEOUT_SECONDS (Timeout for long-running operations). The author declared them in the registry entry; get the values from the project itself.

Alternatives to SharpLens

same job, measured the same way
JavaLens
by pzalutski-pixel

63 semantic Java analysis tools via Eclipse JDT: navigation, refactoring, code intelligence.

204 installs/wk local only
Roslyn CodeLens
by marcelroozekrans

Roslyn MCP server: semantic .NET/C# intelligence - analysis, refactoring, tests, IL inspection.

90 installs/wk local only
Roslyn MCP
by darylmcd

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

local only
Gopls MCP
by xieyuschen

Semantic code analysis for Go using gopls - language-aware navigation, definitions, references

local only
Roz MCP
by andypgray

Roslyn-powered C# code navigation, blast-radius analysis, and verified edits for coding agents.

local only
Ckb
by simplyliz

Code intelligence MCP server — 80+ tools for navigation, impact analysis, and architecture

274 installs/wk local only
I
Ruchy MCP
by noahgift

MCP server for Ruchy: code analysis, scoring, linting, formatting, and transpilation tools

local only
sqry - Semantic Code Search
by verivusoss-releases

AST-based semantic code search: 33 tools, 35 languages, call tracing, impact analysis

local only

SharpLens — questions

Answers built from our own checks of this server.

Why is there no uptime for SharpLens?
SharpLens runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package sharplens-mcp was installed 84 times last week.
How do I connect SharpLens?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It runs locally, so the command pulls sharplens-mcp straight from npm; nothing to host, nothing to sign up for.
How many people use SharpLens?
The npm package sharplens-mcp was installed 84 times in the last week. Week over week that is -32%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is SharpLens open source?
Yes — it is published under the MIT licence, written in C# and 33 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.