> ## Documentation Index
> Fetch the complete documentation index at: https://mcp.developerdoc.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 示例服务器

> 示例服务器和实现列表

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

## 参考实现

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

### 当前参考服务器

* **[Everything](https://github.com/modelcontextprotocol/servers/tree/main/src/everything)** - 包含 prompts、resources 和 tools 的参考/测试服务器。
* **[Fetch](https://github.com/modelcontextprotocol/servers/tree/main/src/fetch)** - Web 内容抓取和转换，便于 LLM 高效使用。
* **[Filesystem](https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem)** - 带可配置访问控制的安全文件操作。
* **[Git](https://github.com/modelcontextprotocol/servers/tree/main/src/git)** - 用于读取、搜索和操作 Git 仓库的工具。
* **[Memory](https://github.com/modelcontextprotocol/servers/tree/main/src/memory)** - 基于知识图谱的持久记忆系统。
* **[Sequential Thinking](https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking)** - 通过思考序列进行动态、反思式问题解决。
* **[Time](https://github.com/modelcontextprotocol/servers/tree/main/src/time)** - 时间和时区转换能力。

### 其他示例服务器（已归档）

访问 [servers-archived repository](https://github.com/modelcontextprotocol/servers-archived)，可以查看已归档且不再积极维护的示例服务器。

这些内容仅作为历史参考。

## 官方集成

访问 [MCP Servers Repository 的 Official Integrations 部分](https://github.com/modelcontextprotocol/servers?tab=readme-ov-file#%EF%B8%8F-official-integrations)，可以查看由各公司为其平台维护的 MCP 服务器列表。

## 社区实现

访问 [MCP Servers Repository 的 Community 部分](https://github.com/modelcontextprotocol/servers?tab=readme-ov-file#-community-servers)，可以查看社区成员维护的 MCP 服务器列表。

## Getting started

### 使用参考服务器

基于 TypeScript 的服务器可以直接使用 `npx`：

```bash theme={null}
npx -y @modelcontextprotocol/server-memory
```

基于 Python 的服务器可以使用 `uvx`（推荐）或 `pip`：

```bash theme={null}
# Using uvx
uvx mcp-server-git

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

### 配置 Claude

要在 Claude 中使用 MCP 服务器，请将其添加到配置中：

```json theme={null}
{
  "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 部分](https://github.com/modelcontextprotocol/servers?tab=readme-ov-file#-resources)，可以查看与 MCP 相关的其他资源和项目集合。

访问 [GitHub Discussions](https://github.com/orgs/modelcontextprotocol/discussions) 与 MCP 社区交流。
