From a79fcaec141803c6fafb7a1f042fd3d83b01beb6 Mon Sep 17 00:00:00 2001 From: kathy-baixue Date: Wed, 9 Apr 2025 19:33:31 +0800 Subject: [PATCH] Update example-servers.mdx translate page :(get-started)\example-servers --- .../docs/(get-started)/example-servers.mdx | 99 ++++++++++++++++++- 1 file changed, 98 insertions(+), 1 deletion(-) diff --git a/content/docs/(get-started)/example-servers.mdx b/content/docs/(get-started)/example-servers.mdx index d27256f..9611de9 100644 --- a/content/docs/(get-started)/example-servers.mdx +++ b/content/docs/(get-started)/example-servers.mdx @@ -1,5 +1,102 @@ --- title: MCP服务器示例 -description: MCP服务器示例 --- +MCP 服务器和实现示例 +本页面展示了各种 Model Context Protocol (MCP) 服务器,体现了该协议的能力和多功能性。这些服务器使得大型语言模型 (LLM) 能安全地访问工具和数据源。 +## 参考实现 ## +这些官方参考服务器展示了 MCP 的核心功能及 SDK 的使用方法: +### 数据和文件系统 ### +- [文件系统](https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem) - 通过可配置的访问控制安全地进行文件操作 +- [PostgreSQL](https://github.com/modelcontextprotocol/servers/tree/main/src/postgres) - 支持模式检查的对数据库的只读访问 +- [SQLite](https://github.com/modelcontextprotocol/servers/tree/main/src/sqlite) - 数据库交互和商业智能功能 +- [Google Drive](https://github.com/modelcontextprotocol/servers/tree/main/src/gdrive) - 支持 Google Drive 的文件访问和搜索 +### 开发工具 ### +- [Git](https://github.com/modelcontextprotocol/servers/tree/main/src/git) - 用于读取、搜索和操作 Git 仓库的工具 +- [GitHub](https://github.com/modelcontextprotocol/servers/tree/main/src/github) - 仓库管理、文件操作及 GitHub API 集成 +- [GitLab](https://github.com/modelcontextprotocol/servers/tree/main/src/gitlab) - 支持项目管理的 GitLab API 集成 +- [Sentry](https://github.com/modelcontextprotocol/servers/tree/main/src/sentry) - 从 Sentry.io 检索和分析问题 +### 网络和浏览器自动化 ### +- [Brave Search](https://github.com/modelcontextprotocol/servers/tree/main/src/brave-search) - 使用 Brave Search API 的网络和本地搜索 +- [Fetch](https://github.com/modelcontextprotocol/servers/tree/main/src/fetch) - 优化网页内容获取与转换以供LLM使用 +- [Puppeteer](https://github.com/modelcontextprotocol/servers/tree/main/src/puppeteer) - 浏览器自动化和网页抓取功能 +### 生产力与沟通 ### +- [Slack](https://github.com/modelcontextprotocol/servers/tree/main/src/slack) - 渠道管理和消息传递功能 +- [Google Maps](https://github.com/modelcontextprotocol/servers/tree/main/src/google-maps) - 定位服务、路线规划及地点详情 +- [Memory](https://github.com/modelcontextprotocol/servers/tree/main/src/memory) - 基于知识图谱的持久化存储系统 +### AI 和专用工具 ### +- [EverArt](https://github.com/modelcontextprotocol/servers/tree/main/src/everart) - 使用多种模型生成 AI 图片 +- [Sequential Thinking](https://github.com/modelcontextprotocol/servers/tree/main/src/sequentialthinking) - 通过思考序列动态解决问题 +- [AWS KB Retrieval](https://github.com/modelcontextprotocol/servers/tree/main/src/aws-kb-retrieval-server) - 使用 Bedrock Agent Runtime 从 AWS 知识库检索信息 +## 官方集成 ## +这些 MCP 服务器由各公司维护,用于其自身平台: +- [Axiom](https://github.com/axiomhq/mcp-server-axiom) - 使用自然语言查询和分析日志、跟踪和事件数据 +- [Browserbase](https://github.com/browserbase/mcp-server-browserbase) - 云端的交互自动化浏览器 +- [Cloudflare](https://github.com/cloudflare/mcp-server-cloudflare) - 在 Cloudflare 开发者平台部署和管理资源 +- [E2B](https://github.com/e2b-dev/mcp-server) - 在安全的云沙箱环境执行代码 +- [Neon](https://github.com/neondatabase/mcp-server-neon) - 与 Neon serverless Postgres 平台交互 +- [Obsidian Markdown Notes](https://github.com/calclavia/mcp-obsidian) - 读取和搜索 Obsidian 仓库中的 Markdown 笔记 +- [Qdrant](https://github.com/qdrant/mcp-server-qdrant/) - 使用 Qdrant 向量搜索引擎实现语义记忆 +- [Raygun](https://github.com/MindscapeHQ/mcp-server-raygun) - 访问崩溃报告和监控数据 +- [Search1API](https://github.com/fatwang2/search1api-mcp) - 用于搜索、抓取和站点地图的统一 API +- [Stripe](https://github.com/stripe/agent-toolkit) - 与 Stripe API 交互 +- [Tinybird](https://github.com/tinybirdco/mcp-tinybird) - 与 Tinybird 无服务器 ClickHouse 平台交互 +- [Weaviate](https://github.com/weaviate/mcp-server-weaviate) - 通过 Weaviate 集合实现主动式检索增强生成(Agentic RAG) +## 社区精选 ## +社区开发服务器生态的不断发展扩展了 MCP 的功能: +- [Docker](https://github.com/ckreiling/mcp-server-docker) - 管理容器、镜像、卷和网络 +- [Kubernetes](https://github.com/Flux159/mcp-server-kubernetes) - 管理 pod、部署和服务 +- [Linear](https://github.com/jerhadf/linear-mcp-server) - 项目管理和问题追踪 +- [Snowflake](https://github.com/datawiz168/mcp-snowflake-service) - 与 Snowflake 数据库交互 +- [Spotify](https://github.com/varunneal/spotify-mcp) - 控制 Spotify 播放和管理播放列表 +- [Todoist](https://github.com/abhiz123/todoist-mcp-server) - 任务管理集成 +> 注意: 社区服务器未经测试,请自行承担风险。这些服务器与 Anthropic 无关,也未获得其认可。 + +完整的社区服务器列表,请访问 MCP Servers Repository。 +## 快速入门 ## +### 使用参考服务器 ### +基于 TypeScript 的服务器可直接通过 npx 使用: +```js +npx -y @modelcontextprotocol/server-memory +``` +基于 Python 的服务器可使用 uvx(推荐)或 pip: +```js +# Using uvx +uvx mcp-server-git + +# Using pip +pip install mcp-server-git +python -m mcp_server_git +``` +### 使用 Claude 配置 ### +要在 Claude 中使用 MCP 服务器,请将其添加到配置中: +```js +{ + "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": "" + } + } + } +} +``` +## 附加资源 ## +- [MCP Servers Repository](https://github.com/modelcontextprotocol/servers) - 参考实现和社区服务器的完整集合 +- [Awesome MCP Servers](https://github.com/punkpeye/awesome-mcp-servers) - MCP 服务器列表 +- [MCP CLI](https://github.com/wong2/mcp-cli) - 用于测试MCP服务器的命令行调试器 +- [MCP Get](https://mcp-get.com/) - MCP服务器安装和管理工具 +- [Supergateway](https://github.com/supercorp-ai/supergateway) - 通过SSE上运行MCP stdio 服务器 +- [Zapier MCP](https://zapier.com/mcp) - 拥有超过7000 +应用程序和30000 +操作的MCP服务器 + +访问 [GitHub Discussions](https://github.com/orgs/modelcontextprotocol/discussions) 与 MCP 社区交流。