mcp-builder
Skill200 starsChanged 45 days agoMITView on GitHub
用于创建高质量 MCP(模型上下文协议)服务器的指南,使 LLM 能够通过精心设计的工具与外部服务交互。在构建 MCP 服务器以集成外部 API 或服务时使用,无论使用 Python(FastMCP)还是 Node/TypeScript(MCP SDK)。
187 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- autohandai/community-skillstheir own version, first seen Nov 29, 2026
- alexdcd/Mafia-Claude-Skillstheir own version, first seen Nov 29, 2026
- alexj11324/Mikkatheir own version, first seen Nov 29, 2026
- Rune-kit/runetheir own version, first seen Nov 29, 2026
- genfeedai/genfeed.aitheir own version, first seen Nov 29, 2026
- revolover00/Claude-clonetheir own version, first seen Nov 29, 2026
Used with
Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Leodorareluctant259Skillchinese-code-review
中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈
Also in 8 projects that use this
Leodorareluctant259Skillchinese-commit-conventions
中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化
Also in 8 projects that use this
ComposioHQSkillcodebase-migrate
Run large codebase migrations and multi-file refactors. Uses the Composio CLI to coordinate issue tracking, batched PRs, and CI verification while the agent executes the transforms locally across hundreds of files.
Also in 5 projects that use this
truongtv22SkillProblem-Solving Techniques
Apply systematic problem-solving techniques for complexity spirals (simplification cascades), innovation blocks (collision-zone thinking), recurring patterns (meta-pattern recognition), assumption constraints (inversion exercise), scale uncertainty (scale game), and dispatch when stuck. Techniques derived from Microsoft Amplifier project patterns adapted for immediate application.
Also in 6 projects that use this
mrgoonieSkillaesthetic
Create aesthetically beautiful interfaces following proven design principles. Use when building UI/UX, analyzing designs from inspiration sites, generating design images with ai-multimodal, implementing visual hierarchy and color theory, adding micro-interactions, or creating design documentation. Includes workflows for capturing and analyzing inspiration screenshots with chrome-devtools and ai-multimodal, iterative design image generation until aesthetic standards are met, and comprehensive design system guidance covering BEAUTIFUL (aesthetic principles), RIGHT (functionality/accessibility), SATISFYING (micro-interactions), and PEAK (storytelling) stages. Integrates with chrome-devtools, ai-multimodal, media-processing, ui-styling, and web-frameworks skills.
Also in 6 projects that use this
AnthropicSkillacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials, and use cases from Claude Academy (academy.claude.com), Anthropic's learning hub. Trigger on: "how do I", "how can I", "getting started with", "what can Claude do", "teach me", "learn to use"; questions about artifacts, projects, skills, plugins, connectors, MCP; requests about rolling Claude out to a team, class, or organization; and any ask for training materials, onboarding content, or learning resources. Use it when the user is learning how to use a feature or product — not when they are mid-task and just want the task done. This skill composes with other skills: after consulting product documentation to answer how a Claude feature works, also check here for a matching course or tutorial — a docs-grounded answer and an Academy recommendation belong together. Only recommend on a strong match; never invent Academy content.
Also in 11 projects that use this
- +2 more from Leodorareluctant259
Other versions187 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- MarcelLeon/skills-zh★ 4248% same
Wrote their own version · 186
- anthropics/skills★ 202ksame name
- shareAI-lab/analysis_claude_code★ 80ksame name
- shareAI-lab/learn-claude-code★ 80ksame name
- ComposioHQ/awesome-claude-skills★ 75ksame name
- activepieces/activepieces★ 26ksame name
- ComposioHQ/awesome-codex-skills★ 17ksame name
- composio-community/awesome-codex-skills★ 16ksame name
- mcp-use/mcp-use★ 11ksame name
- jnMetaCode/superpowers-zh★ 8.6ksame name
- vudovn/ag-kit★ 8.2ksame name
176 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- algorithmic-artSkill
- arch-system-troubleshooterSkill
- canvas-designSkill
- chart-generatorSkill
- code-reviewerSkill
- doc-coauthoringSkill
- docxSkill
- frontend-designSkill
- pdfSkill
- playwright-cliSkill
- pptxSkill
- skill-creatorSkill
- systematic-debuggingSkill
- theme-factorySkill
- xlsxSkill
The file
Files
MCP 服务器开发指南
概述
创建 MCP(模型上下文协议)服务器,使 LLM 能够通过精心设计的工具与外部服务交互。MCP 服务器的质量通过其使 LLM 完成现实世界任务的能力来衡量。
流程
🚀 高级工作流
创建高质量的 MCP 服务器涉及四个主要阶段:
阶段 1:深入研究和规划
1.1 理解现代 MCP 设计
API 覆盖与工作流工具: 平衡全面的 API 端点覆盖与专门的工作流工具。工作流工具可以更方便特定任务,而全面的覆盖给代理提供组合操作的灵活性。性能因客户端而异——一些客户端受益于结合基本工具的代码执行,而另一些客户端更适合高级工作流。当不确定时,优先考虑全面的 API 覆盖。
工具命名和可发现性:
清晰、描述性的工具名称帮助代理快速找到合适的工具。使用一致的前缀(例如,github_create_issue、github_list_repos)和面向行动的命名。
上下文管理: 代理受益于简洁的工具描述和过滤/分页结果的能力。设计返回聚焦、相关数据的工具。一些客户端支持代码执行,可以帮助代理高效地过滤和处理数据。
可操作的错误消息: 错误消息应通过具体建议和下一步指导代理走向解决方案。
1.2 研究 MCP 协议文档
导航 MCP 规范:
从站点地图开始查找相关页面:https://modelcontextprotocol.io/sitemap.xml
然后使用 .md 后缀获取特定页面的 markdown 格式(例如,https://modelcontextprotocol.io/specification/draft.md)。
要查看的关键页面:
- 规范概述和架构
- 传输机制(可流式 HTTP、stdio)
- 工具、资源和提示定义
1.3 研究框架文档
推荐栈:
- 语言:TypeScript(高质量的 SDK 支持以及在许多执行环境中良好的兼容性,例如 MCPB。此外,AI 模型擅长生成 TypeScript 代码,受益于其广泛使用、静态类型和良好的 linting 工具)
- 传输:远程服务器使用可流式 HTTP,使用无状态 JSON(更易于扩展和维护,与有状态会话和流式响应相对)。本地服务器使用 stdio。
加载框架文档:
- MCP 最佳实践:📋 查看最佳实践 - 核心指南
对于 TypeScript(推荐):
- TypeScript SDK:使用 WebFetch 加载
https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md - ⚡ TypeScript 指南 - TypeScript 模式和示例
对于 Python:
- Python SDK:使用 WebFetch 加载
https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md - 🐍 Python 指南 - Python 模式和示例
1.4 规划实现
理解 API: 查看服务的 API 文档以识别关键端点、身份验证要求和数据模型。根据需要使用的 Web 搜索和 WebFetch。
工具选择: 优先考虑全面的 API 覆盖。列出要实现的端点,从最常见的操作开始。
阶段 2:实现
2.1 设置项目结构
查看语言特定指南的项目设置:
- ⚡ TypeScript 指南 - 项目结构、package.json、tsconfig.json
- 🐍 Python 指南 - 模块组织、依赖关系
2.2 实现核心基础设施
创建共享实用工具:
- 带身份验证的 API 客户端
- 错误处理辅助
- 响应格式化(JSON/Markdown)
- 分页支持
2.3 实现工具
对于每个工具:
输入模式:
- 使用 Zod(TypeScript)或 Pydantic(Python)
- 包含约束和清晰的描述
- 在字段描述中添加示例
输出模式:
- 尽可能定义
outputSchema以获取结构化数据 - 在工具响应中使用
structuredContent(TypeScript SDK 功能) - 帮助客户端理解和处理工具输出
工具描述:
- 功能摘要
- 参数描述
- 返回类型模式
实现:
- I/O 操作的 async/await
- 带可操作消息的适当错误处理
- 在适用时支持分页
- 使用现代 SDK 时返回文本内容和结构化数据
注释:
readOnlyHint:true/falsedestructiveHint:true/falseidempotentHint:true/falseopenWorldHint:true/false
阶段 3:审查和测试
3.1 代码质量
审查:
- 没有重复代码(DRY 原则)
- 一致的错误处理
- 完整的类型覆盖
- 清晰的工具描述
3.2 构建和测试
TypeScript:
- 运行
npm run build验证编译 - 使用 MCP Inspector 测试:
npx @modelcontextprotocol/inspector
Python:
- 验证语法:
python -m py_compile your_server.py - 使用 MCP Inspector 测试
查看语言特定指南以获取详细的测试方法和质量检查清单。
阶段 4:创建评估
实现 MCP 服务器后,创建全面的评估以测试其有效性。
加载 ✅ 评估指南 获取完整的评估指南。
4.1 理解评估目的
使用评估来测试 LLM 是否能有效使用 MCP 服务器回答现实的、复杂的问题。
4.2 创建 10 个评估问题
要创建有效的评估,遵循评估指南中描述的过程:
- 工具检查:列出可用工具并理解其能力
- 内容探索:使用只读操作探索可用数据
- 问题生成:创建 10 个复杂的、现实的问题
- 答案验证:自己解决每个问题以验证答案
4.3 评估要求
确保每个问题:
- 独立:不依赖于其他问题
- 只读:仅需要非破坏性操作
- 复杂:需要多次工具调用和深入探索
- 现实:基于人类会关心的真实用例
- 可验证:单一、清晰的答案,可以通过字符串比较验证
- 稳定:答案不会随时间改变
4.4 输出格式
创建具有以下结构的 XML 文件:
<evaluation>
<qa_pair>
<question>查找关于动物代号 AI 模型启动的讨论。一个模型需要特定的安全指定,使用 ASL-X 格式。对于以斑点野猫命名的模型,确定的数字 X 是多少?</question>
<answer>3</answer>
</qa_pair>
<!-- 更多 qa_pair... -->
</evaluation>参考文件
📚 文档库
在开发过程中根据需要加载这些资源:
核心 MCP 文档(首先加载)
- MCP 协议:从站点地图开始
https://modelcontextprotocol.io/sitemap.xml,然后使用.md后缀获取特定页面 - 📋 MCP 最佳实践 - 通用 MCP 指南,包括:
- 服务器和工具命名约定
- 响应格式指南(JSON 与 Markdown)
- 分页最佳实践
- 传输选择(可流式 HTTP 与 stdio)
- 安全和错误处理标准
SDK 文档(在阶段 1/2 加载)
- Python SDK:从
https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md获取 - TypeScript SDK:从
https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md获取
语言特定实现指南(在阶段 2 加载)
- 🐍 Python 实现指南 - 完整的 Python/FastMCP 指南,包括:
- 服务器初始化模式
- Pydantic 模型示例
- 使用
@mcp.tool的工具注册 - 完整的工作示例
- 质量检查清单
- ⚡ TypeScript 实现指南 - 完整的 TypeScript 指南,包括:
- 项目结构
- Zod 模式示例
- 使用
server.registerTool的工具注册 - 完整的工作示例
- 质量检查清单
评估指南(在阶段 4 加载)
- ✅ 评估指南 - 完整的评估创建指南,包括:
- 问题创建指南
- 答案验证策略
- XML 格式规范
- 问题和答案示例
- 使用提供的脚本运行评估
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

