Sharp Lens MCP Server

A Model Context Protocol (MCP) server providing 92 AI-optimized tools for .NET/C semantic code analysis, navigation, refactoring, and code generation using Microsoft Roslyn. Its 40 documented tools cover type, code, method, flow. It runs locally over stdio via the published package.

People connecting coding agent tools to Claude, Cursor, VS Code, or another MCP client. The project is written in C#.

VERIFIED ACTIVE

LAST COMMIT 2026-08-16 · ★ 32 · #51 OF 194 MAINTAINED CODING AGENT · VERIFIED 2026-08-25

MIT · C# · how we verify → /methodology

01 · Install Sharp Lens

before you install - you'll need

Set DOTNET_SOLUTION_PATH before connecting.

Claude Code

claude mcp add pzalutski-pixel-sharplens-mcp -- npx -y sharplens-mcp

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "pzalutski-pixel-sharplens-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "sharplens-mcp"
      ]
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as local process (stdio) - runs on your machine with your user's permissions

license MIT - declared in the repository

npm package sharplens-mcp - unscoped; check the name against the project README before installing

registry namespace io.github.pzalutski-pixel is GitHub-verified and matches the repo owner

03 · What Sharp Lens can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

What you can build

With this server connected, an agent can find all subclasses, list attributes on a symbol, find types/members by attribute, and map a pasted stack trace to file/line/symbol, mangling undone.

Capability map

Tools grouped from the project's README - what Sharp Lens lets an agent do.

read & search

21 tools - e.g. Semantic info at position; All references; each classified read/write/invocation/cast/typeof/nameof/attribute; optional kind filter; Interface/abstract implementations

get_symbol_info · find_references · find_implementations · find_callers · get_call_graph · find_path_between…

Type

5 tools - e.g. Inheritance chain; All members by type name; Multiple types in one call

get_type_hierarchy · get_type_members · get_type_members_batch · get_external_type_info · check_type_compatibility

Method

3 tools - e.g. Detailed signature by name; All overloads of a method; Navigate to the base member / interface members a member implements

get_method_signature · get_method_overloads · get_super_method

Analyze

3 tools - e.g. Variable assignments and usage; Branching/reachability; What breaks if changed?

analyze_data_flow · analyze_control_flow · analyze_change_impact

Unused

2 tools - e.g. Compute dead-code removals + newly unused usings (generation-only); Dead code detection

remove_unused_code · find_unused_code

Definition

1 tool - e.g. Jump to symbol definition

go_to_definition

Semantic

1 tool - e.g. Multi-filter search (async, public, etc.)

semantic_query

Resolve

1 tool - e.g. Map a pasted stack trace to file/line/symbol, mangling undone

resolve_stack_trace

Latest releases

v1.6.3 · 2026-08-16

Patch release - fixes a silent partial-load blind spot in load_solution. · Fixed · load_solution no longer silently drops projects it can't load. When MSBuild can't resolve a ProjectReference (or a project fails to…

v1.6.2 · 2026-08-08

Adds find_path_between - point-to-point reachability over the call graph. · Added · find_path_between - can any source method reach any target method, and through what call chain? A bounded bidirectional search that…

v1.6.1 · 2026-08-06

Patch release - two bug fixes reported against 1.6.0. · Fixed · get_missing_members no longer reports an inherited abstract member as missing when an intermediate abstract base already overrides it. Satisfaction is…

04 · Who maintains Sharp Lens

SharpLens is maintained by pzalutski-pixel. We track 4 MCP servers from pzalutski-pixel - 4 actively maintained, 74 combined GitHub stars, oldest repo from Dec 2025. Full record: all servers from pzalutski-pixel.

  1. JavaLens 63 semantic Java analysis tools via Eclipse JDT: navigation, refactoring, code intelligence. ★ 37
  2. GodotLens Godot's own view of your GDScript project: navigation, diagnostics, engine API, scene checks ★ 5

05 · Facts

category
coding agent - ranked #51 of 194 actively-maintained coding agent servers as of 2026-08-25.
release cadence
4 releases in the last 90 days (latest 2026-08-16)
registry
io.github.pzalutski-pixel/sharplens (active, first published 2026-04-08 · 4 versions)
packages
npm:sharplens-mcp · nuget:SharpLensMcp

06 · Sharp Lens FAQ

Is Sharp Lens still maintained?

Yes - as of 2026-08-25, its last commit was 2026-08-16 and it shipped 4 releases in the last 90 days. We re-verify nightly.

What can Sharp Lens do?

With this server connected, an agent can find all subclasses, list attributes on a symbol, find types/members by attribute, and map a pasted stack trace to file/line/symbol, mangling undone.

How do I install Sharp Lens?

Run `npx -y sharplens-mcp`. The README documents one environment variable (DOTNET_SOLUTION_PATH) to set first. Set DOTNET_SOLUTION_PATH before connecting. You can also paste the ready-made client config above.

Does Sharp Lens run locally?

Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

07 · Alternatives to Sharp Lens

More coding agent MCP servers · Agentmap · Reachpad MCP · Raven · Tyrekick