Enterprise DNA
M MCP Servers Developer low

pzalutski-pixel/sharplens-mcp

by Various

Roslyn-powered MCP server for AI-driven C# semantic analysis, refactoring, and code generation

P

MCP

pzalutski-pixel/sharplens-mcp

Added 1 June 2026

#ai #claude-code #code-analysis #csharp #dotnet #mcp #roslyn #semantic-analysis

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_PATH
  • SHARPLENS_ABSOLUTE_PATHS
  • SHARPLENS_LOG_LEVEL
  • SHARPLENS_TIMEOUT_SECONDS
  • SHARPLENS_MAX_DIAGNOSTICS
  • SHARPLENS_ENABLE_SEMANTIC_CACHE
  • get_symbol_info
  • go_to_definition
  • find_references
  • find_implementations
  • find_callers
  • get_call_graph
  • get_type_hierarchy
  • search_symbols
  • semantic_query
  • get_type_members
  • get_type_members_batch
  • get_method_signature
  • get_derived_types
  • get_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
Free 27-page guide

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.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks