pzalutski-pixel/sharplens-mcp
by Various
Roslyn-powered MCP server for AI-driven C# semantic analysis, refactoring, and code generation
MCP
pzalutski-pixel/sharplens-mcp
Added 1 June 2026
Overview
A Roslyn-powered MCP server for semantic analysis, refactoring, and code generation in C#. It exposes compiler capabilities through the Model Context Protocol for AI-driven interactions. The project is currently early stage with 17 stars on GitHub.
Best for
Best for
C# developers exploring AI-assisted code analysis and refactoring
Use cases
- Perform semantic analysis on C# codebases
- Automate refactoring tasks via AI agents
- Generate C# code snippets based on project context
How to use
Install
npx -y sharplens-mcp Tools exposed
DOTNET_SOLUTION_PATHSHARPLENS_ABSOLUTE_PATHSSHARPLENS_LOG_LEVELSHARPLENS_TIMEOUT_SECONDSSHARPLENS_MAX_DIAGNOSTICSSHARPLENS_ENABLE_SEMANTIC_CACHEget_symbol_infogo_to_definitionfind_referencesfind_implementationsfind_callersget_call_graphget_type_hierarchysearch_symbolssemantic_queryget_type_membersget_type_members_batchget_method_signatureget_derived_typesget_base_types
Tested with
Claude Code
Notes
A Roslyn-powered MCP server for semantic analysis, refactoring, and code generation in C#. It exposes compiler capabilities through the Model Context Protocol for AI-driven interactions. The project is currently early stage with 17 stars on GitHub.
17 stars on GitHub. Last updated 2026-05-20. Licensed MIT.
Use cases
- Perform semantic analysis on C# codebases
- Automate refactoring tasks via AI agents
- Generate C# code snippets based on project context
Pros
- Leverages Roslyn for accurate C# parsing and analysis
- Integrates with AI coding tools through the MCP standard
- Focused specifically on C# language services
Cons
- Small community (17 stars) limits support and examples
- Requires familiarity with both MCP and Roslyn to set up
- Documentation may be sparse due to early stage
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Leverages Roslyn for accurate C# parsing and analysis
- Integrates with AI coding tools through the MCP standard
- Focused specifically on C# language services
Cons
- Small community (17 stars) limits support and examples
- Requires familiarity with both MCP and Roslyn to set up
- Documentation may be sparse due to early stage
Pairs with
Other entries in the index that connect to this one. Click through to see the chain.
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.