MCP Catalogs
首页

MCPSharp vs everything

并排对比,帮你在这两个 MCP server 之间做选择。

MCPSharp
by afrise
everything
by modelcontextprotocol
Stars★ 369★ 85,748
30天用量
综合分4777
官方
分类
开发者工具AI / LLM 工具
开发者工具AI / LLM 工具其它
实现语言C#TypeScript
最近提交7 个月前本月

MCPSharp · 概述

MCPSharp 是一个用于构建 MCP 服务器和客户端的 .NET 库。

everything · 概述

官方 MCP 测试服务器,展示协议全部功能,供客户端开发者使用。

MCPSharp · 使用场景

  • 为 Claude Desktop 等 AI 助手构建兼容 MCP 的 API
  • 将现有 .NET 代码作为 MCP 端点暴露,只需最少的配置
  • 与 Microsoft.Extensions.AI 和 Semantic Kernel 生态系统集成

everything · 使用场景

  • 测试 MCP 客户端实现是否支持所有协议功能
  • 通过参考服务器学习 MCP 协议能力
  • 验证客户端对不同传输方式的兼容性

MCPSharp · 安装

安装

dotnet add package MCPSharp

快速开始

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 配置

添加到 claude_desktop_config.json

{
  "mcpServers": {
    "mcpsharp-example": {
      "command": "dotnet",
      "args": ["run", "--project", "/path/to/your/project.csproj"],
      "env": {}
    }
  }
}

everything · 安装

NPX(推荐)

{
  "mcpServers": {
    "everything": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-everything"]
    }
  }
}

Windows 用户请使用 cmd /c

{
  "mcpServers": {
    "everything": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "@modelcontextprotocol/server-everything"]
    }
  }
}

Docker

{
  "mcpServers": {
    "everything": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "mcp/everything"]
    }
  }
}

全局安装

npm install -g @modelcontextprotocol/server-everything@latest
npx @modelcontextprotocol/server-everything
对比内容由 README + GitHub 公开数据自动生成,定期更新。