SharpLens
Rank #3,134io.github.pzalutski-pixel/sharplens
62 semantic C#/.NET analysis tools via Roslyn: navigation, refactoring, code generation.
SharpLens is a Model Context Protocol (MCP) server published by pzalutski-pixel. It ranks #3,134 of 115,460 servers tracked on MCP Toplist, and its repository has 32 GitHub stars. SharpLens is listed across 3 registries — Official MCP, PulseMCP and Glama, with 3 tracked versions. It was first listed on Dec 27, 2025 and most recently updated on Apr 16, 2026.
Ranks ahead of 112,326 of 115,460 servers on MCP Toplist.
Use SharpLens
No credentials or required configuration declared — add it to your MCP client and go.
claude mcp add sharplens -e "DOTNET_SOLUTION_PATH=<your DOTNET_SOLUTION_PATH>" -e "ROSLYN_LOG_LEVEL=<your ROSLYN_LOG_LEVEL>" -e "ROSLYN_TIMEOUT_SECONDS=<your ROSLYN_TIMEOUT_SECONDS>" -- npx -y sharplens-mcpReplace each placeholder with your own value before saving.
claude mcp add sharplens -e "DOTNET_SOLUTION_PATH=<your DOTNET_SOLUTION_PATH>" -e "ROSLYN_LOG_LEVEL=<your ROSLYN_LOG_LEVEL>" -e "ROSLYN_TIMEOUT_SECONDS=<your ROSLYN_TIMEOUT_SECONDS>" -- dnx SharpLensMcpReplace each placeholder with your own value before saving.
[mcp_servers.sharplens]
command = "npx"
args = ["-y", "sharplens-mcp"]
[mcp_servers.sharplens.env]
DOTNET_SOLUTION_PATH = "<your DOTNET_SOLUTION_PATH>"
ROSLYN_LOG_LEVEL = "<your ROSLYN_LOG_LEVEL>"
ROSLYN_TIMEOUT_SECONDS = "<your ROSLYN_TIMEOUT_SECONDS>"Add to ~/.codex/config.toml. Replace each placeholder with your own value before saving.
[mcp_servers.sharplens]
command = "dnx"
args = ["SharpLensMcp"]
[mcp_servers.sharplens.env]
DOTNET_SOLUTION_PATH = "<your DOTNET_SOLUTION_PATH>"
ROSLYN_LOG_LEVEL = "<your ROSLYN_LOG_LEVEL>"
ROSLYN_TIMEOUT_SECONDS = "<your ROSLYN_TIMEOUT_SECONDS>"Add to ~/.codex/config.toml. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"sharplens": {
"command": "npx",
"args": [
"-y",
"sharplens-mcp"
],
"env": {
"DOTNET_SOLUTION_PATH": "<your DOTNET_SOLUTION_PATH>",
"ROSLYN_LOG_LEVEL": "<your ROSLYN_LOG_LEVEL>",
"ROSLYN_TIMEOUT_SECONDS": "<your ROSLYN_TIMEOUT_SECONDS>"
}
}
}
}Add to claude_desktop_config.json (Settings → Developer → Edit Config). Replace each placeholder with your own value before saving.
{
"mcpServers": {
"sharplens": {
"command": "dnx",
"args": [
"SharpLensMcp"
],
"env": {
"DOTNET_SOLUTION_PATH": "<your DOTNET_SOLUTION_PATH>",
"ROSLYN_LOG_LEVEL": "<your ROSLYN_LOG_LEVEL>",
"ROSLYN_TIMEOUT_SECONDS": "<your ROSLYN_TIMEOUT_SECONDS>"
}
}
}
}Add to claude_desktop_config.json (Settings → Developer → Edit Config). Replace each placeholder with your own value before saving.
{
"mcpServers": {
"sharplens": {
"command": "npx",
"args": [
"-y",
"sharplens-mcp"
],
"env": {
"DOTNET_SOLUTION_PATH": "<your DOTNET_SOLUTION_PATH>",
"ROSLYN_LOG_LEVEL": "<your ROSLYN_LOG_LEVEL>",
"ROSLYN_TIMEOUT_SECONDS": "<your ROSLYN_TIMEOUT_SECONDS>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project). Replace each placeholder with your own value before saving.
{
"mcpServers": {
"sharplens": {
"command": "dnx",
"args": [
"SharpLensMcp"
],
"env": {
"DOTNET_SOLUTION_PATH": "<your DOTNET_SOLUTION_PATH>",
"ROSLYN_LOG_LEVEL": "<your ROSLYN_LOG_LEVEL>",
"ROSLYN_TIMEOUT_SECONDS": "<your ROSLYN_TIMEOUT_SECONDS>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (per project). Replace each placeholder with your own value before saving.
{
"servers": {
"sharplens": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"sharplens-mcp"
],
"env": {
"DOTNET_SOLUTION_PATH": "<your DOTNET_SOLUTION_PATH>",
"ROSLYN_LOG_LEVEL": "<your ROSLYN_LOG_LEVEL>",
"ROSLYN_TIMEOUT_SECONDS": "<your ROSLYN_TIMEOUT_SECONDS>"
}
}
}
}Save as .vscode/mcp.json in your workspace. Replace each placeholder with your own value before saving.
{
"servers": {
"sharplens": {
"type": "stdio",
"command": "dnx",
"args": [
"SharpLensMcp"
],
"env": {
"DOTNET_SOLUTION_PATH": "<your DOTNET_SOLUTION_PATH>",
"ROSLYN_LOG_LEVEL": "<your ROSLYN_LOG_LEVEL>",
"ROSLYN_TIMEOUT_SECONDS": "<your ROSLYN_TIMEOUT_SECONDS>"
}
}
}
}Save as .vscode/mcp.json in your workspace. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"sharplens": {
"command": "npx",
"args": [
"-y",
"sharplens-mcp"
],
"env": {
"DOTNET_SOLUTION_PATH": "<your DOTNET_SOLUTION_PATH>",
"ROSLYN_LOG_LEVEL": "<your ROSLYN_LOG_LEVEL>",
"ROSLYN_TIMEOUT_SECONDS": "<your ROSLYN_TIMEOUT_SECONDS>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"sharplens": {
"command": "dnx",
"args": [
"SharpLensMcp"
],
"env": {
"DOTNET_SOLUTION_PATH": "<your DOTNET_SOLUTION_PATH>",
"ROSLYN_LOG_LEVEL": "<your ROSLYN_LOG_LEVEL>",
"ROSLYN_TIMEOUT_SECONDS": "<your ROSLYN_TIMEOUT_SECONDS>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json. Replace each placeholder with your own value before saving.
{
"mcpServers": {
"sharplens": {
"command": "npx",
"args": [
"-y",
"sharplens-mcp"
],
"env": {
"DOTNET_SOLUTION_PATH": "<your DOTNET_SOLUTION_PATH>",
"ROSLYN_LOG_LEVEL": "<your ROSLYN_LOG_LEVEL>",
"ROSLYN_TIMEOUT_SECONDS": "<your ROSLYN_TIMEOUT_SECONDS>"
}
}
}
}Replace each placeholder with your own value before saving.
{
"mcpServers": {
"sharplens": {
"command": "dnx",
"args": [
"SharpLensMcp"
],
"env": {
"DOTNET_SOLUTION_PATH": "<your DOTNET_SOLUTION_PATH>",
"ROSLYN_LOG_LEVEL": "<your ROSLYN_LOG_LEVEL>",
"ROSLYN_TIMEOUT_SECONDS": "<your ROSLYN_TIMEOUT_SECONDS>"
}
}
}
}Replace each placeholder with your own value before saving.
Show your rank
Maintain this server? Add the live rank badge to your README — it updates automatically as the leaderboard changes.
[](https://mcptoplist.com/server/io.github.pzalutski-pixel%2Fsharplens)<a href="https://mcptoplist.com/server/io.github.pzalutski-pixel%2Fsharplens"><img src="https://mcptoplist.com/badge/io.github.pzalutski-pixel%2Fsharplens.svg" alt="MCP Toplist: Top 5% of 115,460" /></a>Variants: append ?metric=score or ?metric=stars to the image URL.
Listed on 1 registry (2 delisted)
pzalutski-pixel
Other servers by pzalutski-pixel
View all pzalutski-pixel servers →Available versions (3)
| Version | Published |
|---|---|
| 1.5.1 | Apr 16, 2026 |
| 1.5.0 | Apr 8, 2026 |
| 1.4.2 | Apr 8, 2026 |
Frequently asked questions
- Who maintains SharpLens?
- SharpLens is maintained by pzalutski-pixel, which publishes 4 MCP servers (14 total versions) tracked on MCP Toplist.
- Is SharpLens listed on the Official MCP Registry?
- Yes — SharpLens is listed on the Official MCP Registry, alongside PulseMCP and Glama.
- How many versions does SharpLens have?
- MCP Toplist tracks 3 versions of SharpLens, most recently published on Apr 16, 2026.
- Where can I find the source code for SharpLens?
- The source code for SharpLens is hosted at github.com/pzalutski-pixel/sharplens-mcp.