Skip to main content
本页展示多个 Model Context Protocol(MCP)服务器示例,用来说明协议的能力和灵活性。这些服务器让大型语言模型(LLM)可以安全访问工具和数据源。

参考实现

这些官方参考服务器展示了 MCP 核心功能和 SDK 用法:

当前参考服务器

  • Everything - 包含 prompts、resources 和 tools 的参考/测试服务器。
  • Fetch - Web 内容抓取和转换,便于 LLM 高效使用。
  • Filesystem - 带可配置访问控制的安全文件操作。
  • Git - 用于读取、搜索和操作 Git 仓库的工具。
  • Memory - 基于知识图谱的持久记忆系统。
  • Sequential Thinking - 通过思考序列进行动态、反思式问题解决。
  • Time - 时间和时区转换能力。

其他示例服务器(已归档)

访问 servers-archived repository,可以查看已归档且不再积极维护的示例服务器。 这些内容仅作为历史参考。

官方集成

访问 MCP Servers Repository 的 Official Integrations 部分,可以查看由各公司为其平台维护的 MCP 服务器列表。

社区实现

访问 MCP Servers Repository 的 Community 部分,可以查看社区成员维护的 MCP 服务器列表。

Getting started

使用参考服务器

基于 TypeScript 的服务器可以直接使用 npx
npx -y @modelcontextprotocol/server-memory
基于 Python 的服务器可以使用 uvx(推荐)或 pip
# Using uvx
uvx mcp-server-git

# Using pip
pip install mcp-server-git
python -m mcp_server_git

配置 Claude

要在 Claude 中使用 MCP 服务器,请将其添加到配置中:
{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-memory"]
    },
    "filesystem": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-filesystem",
        "/path/to/allowed/files"
      ]
    },
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
      }
    }
  }
}

更多资源

访问 MCP Servers Repository 的 Resources 部分,可以查看与 MCP 相关的其他资源和项目集合。 访问 GitHub Discussions 与 MCP 社区交流。