MCPSharp vs filesystem
Side-by-side comparison to help you pick between these two MCP servers.
MCPSharp by afrise | filesystem by modelcontextprotocol | |
|---|---|---|
| Stars | ★ 369 | ★ 85,748 |
| 30d uses | — | — |
| Score | 47 | 77 |
| Official | — | ✓ |
| Categories | Developer ToolsAI / LLM Tools | File SystemDeveloper ToolsProductivity |
| Language | C# | TypeScript |
| Last commit | 7 mo ago | this month |
MCPSharp · Summary
MCPSharp is a .NET library for building MCP servers and clients with tools, resources, and prompts.
filesystem · Summary
A feature-rich MCP server for filesystem operations with dynamic directory access control.
MCPSharp · Use cases
- Building MCP-compliant APIs for AI assistants like Claude Desktop
- Exposing existing .NET code as MCP endpoints with minimal configuration
- Integrating with Microsoft.Extensions.AI and Semantic Kernel ecosystems
filesystem · Use cases
- Enable AI models to read and write project files during development
- Allow Claude or other MCP clients to browse and analyze codebases
- Provide secure sandboxed access to specific directories for content generation
MCPSharp · Install
Installation
dotnet add package MCPSharpQuick Start
using MCPSharp;
public class Calculator
{
[McpTool("add", "Adds two numbers")]
public static int Add([McpParameter(true)] int a, [McpParameter(true)] int b)
{
return a + b;
}
}
await MCPServer.StartAsync("CalculatorServer", "1.0.0");Claude Desktop Configuration
Add to claude_desktop_config.json:
{
"mcpServers": {
"mcpsharp-example": {
"command": "dotnet",
"args": ["run", "--project", "/path/to/your/project.csproj"],
"env": {}
}
}
}filesystem · Install
Installation
Using NPX
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/allowed/directory"
]
}
}
}Using Docker
{
"mcpServers": {
"filesystem": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--mount", "type=bind,src=/path/to/allowed/dir,dst=/projects/allowed/dir",
"mcp/filesystem",
"/projects"
]
}
}
}VS Code Extension
Click the installation buttons in the README to install directly in VS Code.