AcademyMCP serversDevelopment

SharpLens MCP

Developers and engineering teams working on .NET solutions who use AI coding agents.

  • Recommendedour rating
  • 36gitHub stars
  • MITlicence
  • 56 days agolast update
claude mcp add sharplens -e DOTNET_SOLUTION_PATH=/path/to/your/Solution.sln (or .slnx) -- npx -y sharplens-mcp
README.md

Loading the file...

What it does

An MCP server for C# and .NET projects that uses Microsoft Roslyn to analyze code semantically. It offers tools for navigation, finding usages, refactoring and code generation, so an AI agent works from compiler-level facts instead of guessing from the source text. It installs as a .NET tool or runs through npx.

Use cases

  1. 01Find every usage of a method before changing it
  2. 02Let an agent navigate a large C# solution
  3. 03Plan refactorings with compiler-level accuracy

Questions about
SharpLens MCP.

What is SharpLens MCP used for?

Developers and engineering teams working on .NET solutions who use AI coding agents. An MCP server for C# and .NET projects that uses Microsoft Roslyn to analyze code semantically. It offers tools for navigation, finding usages, refactoring and code generation, so an AI agent works from compiler-level facts instead of guessing from the source text. It installs as a .NET tool or runs through npx.

How do I install SharpLens MCP?

Run this in your terminal: claude mcp add sharplens -e DOTNET_SOLUTION_PATH=/path/to/your/Solution.sln (or .slnx) -- npx -y sharplens-mcp

Is SharpLens MCP open source?

Yes. The code is on GitHub (pzalutski-pixel/sharplens-mcp) under the MIT licence.

Is SharpLens MCP safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.