mcp-builder 是什么?
Anthropic 的 mcp-builder 帮助开发者把外部API封装成Agent可调用的MCP服务。它覆盖接口研究、工具设计、TypeScript或Python实现、Inspector检查与任务评估,重点是让工具能够完成真实工作,而不只是暴露一组接口名称。
中文说明由本站依据来源整理;英文原文保留在页面下方。
适合用在
- 已有服务API和认证方式,需要让Agent查询或操作这些服务。
这些情况不适合
- 只想安装一个现成MCP服务器;本Skill面向开发服务器本身。
- 不核对SDK版本就把不同版本的导入、启动和示例混在同一个项目里。
同名项目,请核对仓库和目录
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
mcp-builder,然后按本页使用示例提供材料。
展开并复制给 Codex 的安装指令
安装并检查 mcp-builder
请在 Codex 的当前工作环境中安装并检查 mcp-builder 这个 Skill。
项目身份:anthropics/skills / mcp-builder
来源:https://github.com/anthropics/skills/blob/e4bb5d960d87126ff3b3a8af1a104b7db67560ba/skills/mcp-builder/SKILL.md
已定位的源文件:skills/mcp-builder/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 mcp-builder
请在 Claude Code 的当前工作环境中安装并检查 mcp-builder 这个 Skill。
项目身份:anthropics/skills / mcp-builder
来源:https://github.com/anthropics/skills/blob/e4bb5d960d87126ff3b3a8af1a104b7db67560ba/skills/mcp-builder/SKILL.md
已定位的源文件:skills/mcp-builder/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 mcp-builder
请在 Cursor Agent 的当前工作环境中安装并检查 mcp-builder 这个 Skill。
项目身份:anthropics/skills / mcp-builder
来源:https://github.com/anthropics/skills/blob/e4bb5d960d87126ff3b3a8af1a104b7db67560ba/skills/mcp-builder/SKILL.md
已定位的源文件:skills/mcp-builder/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 mcp-builder
请在 当前 Agent 的当前工作环境中安装并检查 mcp-builder 这个 Skill。
项目身份:anthropics/skills / mcp-builder
来源:https://github.com/anthropics/skills/blob/e4bb5d960d87126ff3b3a8af1a104b7db67560ba/skills/mcp-builder/SKILL.md
已定位的源文件:skills/mcp-builder/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。装好以后,具体怎么用?
准备哪些材料
- 提供API文档、认证方式、样例数据和目标用户任务,明确本地stdio还是远程HTTP。完整目录需保留
reference/中对应语言与SDK版本的指南;实际开发时重新核对该SDK的一手文档。
会得到什么
- 可构建的MCP服务工程、清楚的工具参数与结果结构,以及实际连接检查和任务评估记录。
实际使用顺序
- 先读MCP规范与服务API,列出常用操作、数据模型、认证与分页要求,再确定工具范围和语言。该版本资料区分TypeScript SDK v1/v2,现有工程要按实际依赖选择相应指南。
- 工具使用清楚的动作名称和统一前缀,输入以Zod或Pydantic描述约束,结果尽量提供结构化数据;错误应让Agent知道下一步如何处理。
- 实现共享API客户端、认证、异步I/O、分页及错误处理,再逐个接入工具;读写与破坏性提示应符合真实行为,不能只靠名字判断。
- 按项目语言执行构建或语法检查,再用
npx @modelcontextprotocol/inspector检查服务。编译成功与客户端可连接要分别记录。 - 按照
reference/evaluation.md为真实只读任务设计可核查评估,问题应能由实际数据得到稳定答案;不编造服务里不存在的数据来凑评估数量。
从一个具体任务开始
本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。
复制一个具体任务
使用 mcp-builder,为我提供的内部商品查询API做一个本地stdio MCP原型。先读API文档与当前package.json,确认SDK版本;第一阶段只暴露查询商品列表和按ID读取商品两个只读工具,保留API真实分页参数和错误。不要新增写入功能或编造接口。提交工程后分别报告构建结果、Inspector连接情况和实际执行过的查询。预期得到围绕真实API的只读MCP工程,输入和错误清楚;未拿到API文档、认证或测试数据时应列出缺项,不能称已经可用。本站未执行本例。
使用条件与边界
- 源文件链接的SDK资料会变化,绑定的Skill版本只是本页依据,实际开发仍需对照工程与当前官方文档。
- Inspector可连接不代表Agent能正确完成所有业务任务;任务评估需要实际数据和可核查答案。
常见问题
这是一个可以直接连到所有API的MCP吗?
不是。它是开发方法和参考资料,具体服务仍要根据你提供的API、认证和数据模型实现。
本地stdio和远程HTTP怎么选择?
这份资料将stdio用于本地服务器、Streamable HTTP用于远程服务。最终仍要结合目标客户端和部署环境核对其支持方式。
来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-17T10:48:39.184Z
- 中文使用说明
- 已针对下方源文件版本整理用途、用法和常见问题
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料
skills/mcp-builder/SKILL.md · 抓取时间 2026-11-17T10:48:39.184Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
查看源文件章节 / Source sections
- 原文:MCP Server Development Guide
- 原文:Overview
- 原文:Process
- 原文:🚀 High-Level Workflow
- 原文:Phase 1: Deep Research and Planning
- 原文:1.1 Understand Modern MCP Design
- 原文:1.2 Study MCP Protocol Documentation
- 原文:1.3 Study Framework Documentation
- 原文:1.4 Plan Your Implementation
- 原文:Phase 2: Implementation
- 原文:2.1 Set Up Project Structure
- 原文:2.2 Implement Core Infrastructure
- 原文:2.3 Implement Tools
- 原文:Phase 3: Review and Test
- 原文:3.1 Code Quality
- 原文:3.2 Build and Test
- 原文:Phase 4: Create Evaluations
- 原文:4.1 Understand Evaluation Purpose
- 原文:4.2 Create 10 Evaluation Questions
- 原文:4.3 Evaluation Requirements
- 原文:4.4 Output Format
- 原文:Reference Files
- 原文:📚 Documentation Library
- 原文:Core MCP Documentation (Load First)
- 原文:SDK Documentation (Load During Phase 1/2)
- 原文:Language-Specific Implementation Guides (Load During Phase 2)
- 原文:Evaluation Guide (Load During Phase 4)
原文:Overview
Create MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. The quality of an MCP server is measured by how well it enables LLMs to accomplish real-world tasks. ---
原文:🚀 High-Level Workflow
Creating a high-quality MCP server involves four main phases:
原文:1.1 Understand Modern MCP Design
**API Coverage vs. Workflow Tools:** Balance comprehensive API endpoint coverage with specialized workflow tools. Workflow tools can be more convenient for specific tasks, while comprehensive coverage gives agents flexibility to compose operations. Performance varies by client—some clients benefit from code execution that combines basic tools, while others work better with higher-level workflows. When uncertain, prioritize comprehensive API coverage. **Tool Naming and Discoverability:** Clear, descriptive tool names help agents find the right tools quickly. Use consistent prefixes (e.g., `github_create_issue`, `github_list_repos`) and action-oriented naming. **Context Management:** Agents benefit from concise tool descriptions and the ability to filter/paginate results. Design tools that return focused, relevant data. Some clients support code execution which can help agents filter and process data efficiently. **Actionable Error Messages:** Error messages should guide agents toward solutions with specific suggestions and next steps.
原文:1.2 Study MCP Protocol Documentation
**Navigate the MCP specification:** Start with the sitemap to find relevant pages: `https://modelcontextprotocol.io/sitemap.xml` Then fetch specific pages with `.md` suffix for markdown format (e.g., `https://modelcontextprotocol.io/specification/draft.md`). Key pages to review: - Specification overview and architecture - Transport mechanisms (streamable HTTP, stdio) - Tool, resource, and prompt definitions
原文:1.3 Study Framework Documentation
**Recommended stack:** - **Language**: TypeScript (high-quality SDK support and good compatibility in many execution environments e.g. MCPB. Plus AI models are good at generating TypeScript code, benefiting from its broad usage, static typing and good linting tools) - **Transport**: Streamable HTTP for remote servers, using stateless JSON (simpler to scale and maintain, as opposed to stateful sessions and streaming responses). stdio for local servers. **Load framework documentation:** - **MCP Best Practices**: [📋 View Best Practices](./reference/mcp_best_practices.md) - Core guidelines **For TypeScript (recommended):** The TypeScript SDK has two major versions. Pick one before writing code: - **v2** (`@modelcontextprotocol/server`): the current stable release. Use it for new servers. - **v1** (`@modelcontextprotocol/sdk`): receives bug and security fixes only. Use it only when the project's `package.json` already depends on `@modelcontextprotocol/sdk`, or migrate that project with `npx @modelcontextprotocol/codemod@latest v1-to-v2 .` If the project already uses v1, tell the user once, in a sentence or two, that v2 (`@modelcontextprotocol/server`) is the current stable release, that v1 receives only bug and security fixes, and that `npx @modelcontextprotocol/codemod@latest v1-to-v2 .` migrates the project. Then continue with v1 unless the user asks to migrate. Don't mix the two in one project: v1 code samples (imports from `@modelcontextprotocol/sdk/...`) don't apply to v2. - **TypeScript SDK (v2)**: Use WebFetch to load `https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md`; the full docs index is `https://ts.sdk.modelcontextprotocol.io/v2/llms.txt` - [⚡ TypeScript Guide (v2)](./reference/node_mcp_server_v2.md) - TypeScript patterns and examples - For v1 projects only: `https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/v1.x/README.md` and the [TypeScript Guide (v1)](./reference/node_mcp_server.md)
本段为节选,完整内容见源文件。
原文:1.4 Plan Your Implementation
**Understand the API:** Review the service's API documentation to identify key endpoints, authentication requirements, and data models. Use web search and WebFetch as needed. **Tool Selection:** Prioritize comprehensive API coverage. List endpoints to implement, starting with the most common operations. ---
文件 SHA256:b483b56d6673134497e45489c317f26ae0f1429c194db0297e43073e17e6748c
仓库许可证记录:未提供;skill-declaration-captured-not-interpreted,查看来源。
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
这份历史简介在采集时已截断;完整用途和触发条件需打开来源核对。
历史收录数据
| Skill标识 | mcp-builder |
|---|---|
| 来源仓库 | anthropics/skills |
| 榜单快照 | 2026-07-28 |
| 榜单口径 | Skills.sh累计安装量 |
| 快照名次 | 226 |
| 快照累计安装量 | 94817 |
历史资料说明
- 所保留的来源简介在采集时已截断;完整触发条件、依赖及排除项须阅读源文件,本站不补写缺失部分。
- 安装量用于说明当时的收录次序,不是效果、可信度或当前可用性的证明。
此页用于识别项目与来源。安装入口可在该Skill的Skills.sh页面查看;当前目录是否仍存在、附带脚本和账户依赖尚需按具体版本确认。
