Sharptools
A suite of MCP tools for AIs to analyze and modify C# solutions with high signal, Roslyn powered context.
What is Sharptools?
Sharptools is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to suite of mcp tools for ais to analyze and modify c# solutions with high signal, roslyn powered context.
A suite of MCP tools for AIs to analyze and modify C# solutions with high signal, Roslyn powered context.
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A suite of MCP tools for AIs to analyze and modify C# soluti
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx sharptoolsmcpConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Sharptools
SharpTools MCP provides AI assistants with deep, Roslyn-powered understanding of C# solutions — enabling semantic code analysis, precise symbol navigation, and safe code modification without relying on text search or file diffs. It exposes tools for loading solutions, inspecting members and types, finding all references to a symbol, analyzing cyclomatic complexity, and performing structured edits like renaming symbols, moving members, and managing using directives. .NET developers use it to give their AI assistant the same rich code intelligence that an IDE provides, making refactoring and architecture analysis far more accurate.
Prerequisites
- .NET 8 SDK or later installed (dotnet command must be on your PATH)
- The .NET SDK version matching your target solution (e.g. .NET 6/7/8 depending on your project's TargetFramework)
- The SharpTools repository cloned and built locally
- An MCP-compatible client such as Claude Desktop, VS Code Copilot, or Claude Code
Clone the SharpToolsMCP repository
Clone the repository to your local machine. SharpTools does not publish a pre-built binary so you must build it from source.
git clone https://github.com/kooshi/SharpToolsMCP.git
cd SharpToolsMCPBuild the solution
Build the entire SharpTools solution using the dotnet CLI. This compiles both the SSE server and the stdio server binaries.
dotnet build SharpTools.slnConfigure as a stdio MCP server
Add SharpTools to your MCP client configuration using the stdio server binary. Replace /path/to/SharpTools.StdioServer with the actual path to the built binary in your repository's output directory.
{
"mcpServers": {
"SharpTools": {
"type": "stdio",
"command": "/path/to/SharpTools.StdioServer",
"args": [
"--log-directory", "/var/log/sharptools/",
"--log-level", "Information",
"--load-solution", "/path/to/YourSolution.sln"
]
}
}
}Alternative: run as SSE server
For clients that support SSE transport, run the SSE server on a local port. This is useful for web-based MCP clients or when you want to share the server across multiple client connections.
cd SharpTools.SseServer
dotnet run -- --port 3005 --log-file ./logs/mcp-sse-server.log --log-level Debug --load-solution /path/to/YourSolution.slnLoad a solution and start analyzing
If you did not pass --load-solution at startup, use the LoadSolution tool from your MCP client to load a .sln file. Then use GetMembers, ViewDefinition, FindReferences, and other tools to explore your codebase.
Sharptools Examples
Client configuration
VS Code Copilot / Claude Desktop stdio configuration pointing to the built SharpTools.StdioServer binary with a solution pre-loaded.
{
"mcpServers": {
"SharpTools": {
"type": "stdio",
"command": "/Users/you/SharpToolsMCP/SharpTools.StdioServer/bin/Debug/net8.0/SharpTools.StdioServer",
"args": [
"--log-directory", "/tmp/sharptools-logs/",
"--log-level", "Information",
"--load-solution", "/Users/you/projects/MyApp/MyApp.sln"
]
}
}
}Prompts to try
Example prompts that leverage SharpTools' Roslyn-powered code intelligence.
- "Load my solution and list all public classes in the Domain namespace"
- "Find all references to the UserService.CreateUser method"
- "Show me the definition of the IOrderRepository interface"
- "Analyze the cyclomatic complexity of the PaymentProcessor class"
- "Rename the method CalculateTotal to ComputeOrderTotal across the solution"
- "List all classes that implement INotificationHandler"Troubleshooting Sharptools
dotnet build fails with SDK not found or version mismatch
Ensure you have .NET 8 SDK installed: run dotnet --list-sdks. If your solution targets a different framework (e.g. .NET 6), install that SDK as well. The global.json in the repository may pin a specific SDK version.
LoadSolution returns errors about missing project references
Run dotnet restore on your solution before loading it in SharpTools. Missing NuGet packages will cause Roslyn to report errors. Also ensure all project references in the .sln file point to valid .csproj files on disk.
SSE server is unreachable at the configured port
Check that no firewall or another process is blocking the port. Verify the server started successfully by checking the log file at the path you specified with --log-file. You can also try a different port with --port.
Frequently Asked Questions about Sharptools
What is Sharptools?
Sharptools is a Model Context Protocol (MCP) server that suite of mcp tools for ais to analyze and modify c# solutions with high signal, roslyn powered context. It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Sharptools?
Follow the installation instructions on the Sharptools GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Sharptools?
Sharptools works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Sharptools free to use?
Yes, Sharptools is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Sharptools Alternatives — Similar Developer Tools Servers
Looking for alternatives to Sharptools? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Sharptools in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Sharptools?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.