MCP Catalogs
Home

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
Score4777
Official
Categories
Developer ToolsAI / LLM Tools
File SystemDeveloper ToolsProductivity
LanguageC#TypeScript
Last commit7 mo agothis 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 MCPSharp

Quick 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.

Comparison generated from public README + GitHub signals. Last updated automatically.