/good-skills:mcp-builderfrom good-skills
Guides creation of MCP servers using FastMCP (Python) or MCP SDK (Node/TypeScript). Covers tool naming, error handling, and protocol design for LLM-tool integration.
Ships in good-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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:
Output Schema:
outputSchema where possible for structured datastructuredContent in tool responses (TypeScript SDK feature)Tool Description:
Implementation:
Annotations:
readOnlyHint: true/falsedestructiveHint: true/falseidempotentHint: true/falseopenWorldHint: true/falseReview for:
TypeScript:
npm run build to verify compilationnpx @modelcontextprotocol/inspectorPython:
python -m py_compile your_server.pySee language-specific guides for detailed testing approaches and quality checklists.
After implementing your MCP server, create comprehensive evaluations to test its effectiveness.
Load ✅ Evaluation Guide for complete evaluation guidelines.
Use evaluations to test whether LLMs can effectively use your MCP server to answer realistic, complex questions.
To create effective evaluations, follow the process outlined in the evaluation guide:
Ensure each question is:
Create an XML file with this structure:
<evaluation>
<qa_pair>
<question>Find discussions about AI model launches with animal codenames. One model needed a specific safety designation that uses the format ASL-X. What number X was being determined for the model named after a spotted wild cat?</question>
<answer>3</answer>
</qa_pair>
<!-- More qa_pairs... -->
</evaluation>
Load these resources as needed during development:
https://modelcontextprotocol.io/sitemap.xml, then fetch specific pages with .md suffixhttps://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.mdhttps://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md🐍 Python Implementation Guide - Complete Python/FastMCP guide with:
@mcp.tool⚡ TypeScript Implementation Guide - Complete TypeScript guide with:
server.registerToolLICENSE.txt (opens in a new tab)reference/evaluation.md (opens in a new tab)reference/mcp_best_practices.md (opens in a new tab)reference/node_mcp_server.md (opens in a new tab)reference/python_mcp_server.md (opens in a new tab)scripts/connections.py (opens in a new tab)scripts/evaluation.py (opens in a new tab)scripts/example_evaluation.xml (opens in a new tab)scripts/requirements.txt (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
26 skills in this plugin
/arxiv-daily每日 arXiv AI 论文精选系统。自动从 arXiv 抓取最新 cs.AI/cs.LG/cs.CL/cs.CV/cs.RO 论文,用 DeepSeek 评分筛选,生成中文摘要,通过邮件和 Bark 推送。/claude-apiReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration.
TRIGGER — read BEFORE opening the target file; don't skip because it "looks like a one-liner" — whenever: the prompt names Claude/Anthropic in any form (Claude, Anthropic, Fable, Opus, Sonnet, Haiku, `anthropic`, `@anthropic-ai`, `claude-*`, `us.anthropic.*`, `[1m]`); the user asks about an LLM (pricing/model choice/limits/caching) — never answer from memory; OR the task is LLM-shaped with provider unstated (agent/MCP/tool-definition/multi-agent/RAG/LLM-judge/computer-use; generate/summarize/extract/classify/rewrite/converse over NL; debugging refusals/cutoffs/streaming/tool-calls/tokens).
SKIP only when another provider is being worked on (overrides all triggers): OpenAI/GPT/Gemini/Llama/Mistral/Cohere/Ollama named in the query; OR `grep -rE 'openai|langchain_openai|google.generativeai|genai|mistralai|cohere|ollama'` over the project hits (run this grep FIRST if no provider named — don't Read the file)./code-walkthrough为代码仓库生成面向专家评审的代码讲解材料,并可选地为 .c/.py 源文件补充中文注释。当用户说"讲解代码""代码讲解""给专家讲这个特性""梳理主流程和重点函数""这个模块怎么讲""准备评审材料""代码走读",或要求给 .c/.py 文件加文件头注释/函数注释时使用。核心能力:先问用户是否要加注释(默认不加,绝不擅自改源码),再按"一句话定调 → 全景图 → 主流程链路 → 重点函数 → 证据 → 预判追问"的结构输出讲解内容,所有结论必须带真实文件路径与行号。不用于从零起草无源码的文档,也不用于普通文档润色或翻译。/code-walkthrough-doc-polisher将已有草稿的代码讲解文档(特性代码讲解、模块评审讲解材料)改造为面向专家评审的规范化文档。当用户给出已有讲解文档(飞书 doc 或 wiki 链接、本地 .docx、粘贴的初稿内容)要求优化、重写、整理、规范一下、过一遍、按模板对齐、改到能给评审专家看时使用;也用于上轮交付后的增量请求——继续局部修改、处理行号待核/数字待核、源码包到位后补核行号。用户未给模板时从内置模板库(templates/)选定确认后执行,模板可替换,写作规则不变。核心能力:模板结构对齐、评审视角内容取舍(删实现细节与演讲腔)、真实源码片段提取与行号/版本核验(支持 wiki/drive 源码包下载)、飞书文档 XML 覆盖写回(草稿确认门、revision 并发保护、回滚基准)、本地 docx 交付 markdown+.docx、基于变更摘要的多轮增量 diff。不用于从零起草无原文的新文档,也不用于与代码讲解无关的普通文档润色或翻译。/coding-guidelines减少常见 LLM 编码失误的行为准则。Use when "写代码", "改代码", "重构", "code", "refactor", "implement", "review code", "编写/修改本仓库代码" — 即任何在本项目里写、改、重构、审查代码之前。 四条原则:先想后写 / 极简优先 / 外科手术式改动 / 目标驱动执行。 Derived from Andrej Karpathy's observations on LLM coding pitfalls./daily-newsletter每日科技早报。27+ RSS源并发抓取,智能分类(AI/区块链/游戏/科技/金融),质量评分过滤,可选 DeepSeek 英译中,邮件+Bark 推送。42 plugins in 41 repositories ship this exact skill · first indexed Jun 2, 2026
npx claudepluginhub sunchendd/good_skills --plugin good-skillsOther plugins' skills for the same job