指导你构建高质量 MCP 服务器,安全集成外部 API 与服务。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "mcp-builder" 技能: 1. 下载 https://raw.githubusercontent.com/anthropics/skills/main/skills/mcp-builder/SKILL.md 2. 保存为 ~/.claude/skills/mcp-builder/SKILL.md 3. 装好后重载技能,告诉我可以用了
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.
Creating a high-quality MCP server involves four main phases:
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.
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:
Recommended stack:
Load framework documentation:
For TypeScript (recommended):
https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.mdFor Python:
https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.mdUnderstand 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.
See language-specific guides for project setup:
Create shared utilities:
For each tool:
Input Schema:
…
创建、读取、编辑与整理 PPTX 演示文稿及其中的文本和备注内容。
用于创建、编辑与优化AI技能,并评测其效果与触发准确性。
帮助用户制作适配 Slack 的动画 GIF,并检查规格与动画效果。
用 p5.js 与可控随机参数生成原创算法艺术与交互式视觉作品
将各类内容套用 Anthropic 官方品牌色彩与字体规范。
用于创建、编辑与整理Word文档,并生成带专业排版的 .docx 文件。
通过 MCP 封装 OpenAI 图像与音频生成接口,便于快速集成调用
将OpenAPI接口动态暴露为MCP工具,供AI助手直接调用
用于连接和运行测试类 MCP 服务,辅助开发调试与质量验证
用于构建、脚手架生成、重构并排查 ChatGPT Apps SDK 应用问题。
帮助开发者在官方注册表中发布并发现可用的MCP服务器
帮助用户检索并评估可靠的 MCP 服务注册信息