# SharpLens

> SharpLens is an open-source MCP server. 67 semantic C#/.NET analysis tools via Roslyn: navigation, refactoring, codegen, audit. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/pzalutski-pixel/sharplens-mcp
- **MCP Registry name:** io.github.pzalutski-pixel/sharplens
- **Listing updated:** 2026-11-13

## About

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

## Install

### Claude Code (Terminal)

```sh
claude mcp add sharplens -- npx -y sharplens-mcp
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "sharplens": {
      "command": "npx",
      "args": [
        "-y",
        "sharplens-mcp"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "sharplens": {
      "command": "npx",
      "args": [
        "-y",
        "sharplens-mcp"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "sharplens": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "sharplens-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "sharplens": {
      "command": "npx",
      "args": [
        "-y",
        "sharplens-mcp"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "sharplens": {
      "command": "npx",
      "args": [
        "-y",
        "sharplens-mcp"
      ]
    }
  }
}
```

## FAQ

### Is SharpLens free?

Yes. SharpLens is open source, so you can use and self-host it for free.

### How do I add SharpLens to Claude Code?

Run this command in your terminal: claude mcp add sharplens -- npx -y sharplens-mcp

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/sharplens
