MCP server
SharpLens
67 semantic C#/.NET analysis tools via Roslyn: navigation, refactoring, codegen, audit.
Runs locallyStatus and history
- Pricing
- Open source
- Runs
- Locally
- Version
- 1.5.3
- Listing updated
- 5 days ago
About SharpLens
SharpLens is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Install
Run in a terminal
claude mcp add sharplens -- npx -y sharplens-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"sharplens": {
"command": "npx",
"args": [
"-y",
"sharplens-mcp"
]
}
}
}Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"sharplens": {
"command": "npx",
"args": [
"-y",
"sharplens-mcp"
]
}
}
}Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:
Add to .vscode/mcp.json
{
"servers": {
"sharplens": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"sharplens-mcp"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"sharplens": {
"command": "npx",
"args": [
"-y",
"sharplens-mcp"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"sharplens": {
"command": "npx",
"args": [
"-y",
"sharplens-mcp"
]
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
DOTNET_SOLUTION_PATHPath to .sln or .slnx file to auto-load on startupROSLYN_LOG_LEVELLogging verbosity: Trace, Debug, Information, Warning, ErrorROSLYN_TIMEOUT_SECONDSTimeout for long-running operationsDOTNET_SOLUTION_PATHPath to .sln or .slnx file to auto-load on startupROSLYN_LOG_LEVELLogging verbosity: Trace, Debug, Information, Warning, ErrorROSLYN_TIMEOUT_SECONDSTimeout for long-running operations
Pricing
Open source
SharpLens 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.