AcademyMCP serversDevelopment

SharpLens MCP

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

  • Recommendedour rating
  • 36gitHub stars
  • MITlicence
  • 3 months 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...

Custom AI agents

Want this running in your company?

We build AI agents like this around your own processes, connect them to your tools and data, and keep them running. The same team builds and runs them.

  • Free 20-minute call to look at your use case
  • Connected to your systems, with the right permissions
  • Built and run by the same team, in English or Spanish

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.