
mcp-builder
Guides building MCP servers that connect external APIs and services to LLMs in Python or TypeScript.
- GitHub stars
- 30
What it does
- Guides creation of high-quality MCP (Model Context Protocol) servers for integrating external APIs with LLMs
- Supports implementation in either Python or TypeScript for the server being built
- Designed for developers who need to expose external APIs and services to Claude through MCP servers
Guides creation of high-quality MCP (Model Context Protocol) servers for integrating external APIs and services with LLMs using Python or TypeScript.
Add marketplace
/plugin marketplace add ammosu/awesome-claude-skills-zh-TWRun it inside Claude Code once, then install the plugin below.
Install
/plugin install mcp-builder@awesome-claude-skillsRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourceMCP Server Development Guide
Overview
To create high-quality MCP (Model Context Protocol) servers that enable LLMs to effectively interact with external services, use this skill. An MCP server provides tools that allow LLMs to access external services and APIs. The quality of an MCP server is measured by how well it enables LLMs to accomplish real-world tasks using the tools provided.
Process
🚀 High-Level Workflow
Creating a high-quality MCP server involves four main phases:
Phase 1: Deep Research and Planning
1.1 Understand Agent-Centric Design Principles
Before diving into implementation, understand how to design tools for AI agents by reviewing these principles:
Build for Workflows, Not Just API Endpoints:
- Don't simply wrap existing API endpoints - build thoughtful, high-impact workflow tools
- Consolidate related operations (e.g.,
schedule_eventthat both checks availability and creates event) - Focus on tools that enable complete tasks, not just individual API calls
- Consider what workflows agents actually need to accomplish
Optimize for Limited Context:
- Agents have constrained context windows - make every token count
- Return high-signal information, not exhaustive data dumps
- Provide "concise" vs "detailed" response format options
- Default to human-readable identifiers over technical codes (names over IDs)
- Consider the agent's context budget as a scarce resource
Design Actionable Error Messages:
- Error messages should guide agents toward correct usage patterns
- Suggest specific next steps: "Try using filter='active_only' to reduce results"
- Make errors educational, not just diagnostic
- Help agents learn proper tool usage through clear feedback
Follow Natural Task Subdivisions:
- Tool names should reflect how humans think about tasks
- Group related tools with consistent prefixes for discoverability
- Design tools around natural workflows, not just API structure
Use Evaluation-Driven Development:
- Create realistic evaluation scenarios early
- Let agent feedback drive tool improvements
- Prototype quickly and iterate based on actual agent performance
1.3 Study MCP Protocol Documentation
Fetch the latest MCP protocol documentation:
Use WebFetch to load: https://modelcontextprotocol.io/llms-full.txt
This comprehensive document contains the complete MCP specification and guidelines.
1.4 Study Framework Documentation
Load and read the following reference files:
- MCP Best Practices: 📋 View Best Practices - Core guidelines for all MCP servers
For Python implementations, also load:
- Python SDK Documentation: Use WebFetch to load
https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md - 🐍 Python Implementation Guide - Python-specific best practices and examples
For Node/TypeScript implementations, also load:
- TypeScript SDK Documentation: Use WebFetch to load
https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md - ⚡ TypeScript Implementation Guide - Node/TypeScript-specific best practices and examples
1.5 Exhaustively Study API Documentation
To integrate a service, read through ALL available API documentation:
- Official API reference documentation
- Authentication and authorization requirements
- Rate limiting and pagination patterns
- Error responses and status codes
- Available endpoints and their parameters
- Data models and schemas
To gather comprehensive information, use web search and the WebFetch tool as needed.
1.6 Create a Comprehensive Implementation Plan
Based on your research, create a detailed plan that includes:
Tool Selection:
- List the most valuable endpoints/operations to implement
- Prioritize tools that enable the most common and important use cases
- Consider which tools work together to enable complex workflows
Shared Utilities and Helpers:
- Identify common API request patterns
- Plan pagination helpers
- Design filtering and formatting utilities
- Plan error handling strategies
Input/Output Design:
- Define input validation models (Pydantic for Python, Zod for TypeScript)
- Design consistent response formats (e.g., JSON or Markdown), and configurable levels of detail (e.g., Detailed or Concise)
- Plan for large-scale usage (thousands of users/resources)
- Implement character limits and truncation strategies (e.g., 25,000 tokens)
Error Handling Strategy:
- Plan graceful failure modes
- Design clear, actionable, LLM-friendly, natural language error messages which prompt further action
- Consider rate limiting and timeout scenarios
- Handle authentication and authorization errors
Phase 2: Implementation
Now that you have a comprehensive plan, begin implementation following language-specific best practices.
2.1 Set Up Project Structure
For Python:
- Create a single
.pyfile or organize into modules if complex (see 🐍 Python Guide) - Use the MCP Python SDK for tool registration
- Define Pydantic models for input validation
For Node/TypeScript:
- Create proper project structure (see ⚡ TypeScript Guide)
- Set up
package.jsonandtsconfig.json - Use MCP TypeScript SDK
- Define Zod schemas for input validation
2.2 Implement Core Infrastructure First
To begin implementation, create shared utilities before implementing tools:
- API request helper functions
- Error handling utilities
- Response formatting functions (JSON and Markdown)
- Pagination helpers
- Authentication/token management
2.3 Implement Tools Systematically
For each tool in the plan:
Define Input Schema:
- Use Pydantic (Python) or Zod (TypeScript) for validation
- Include proper constraints (min/max length, regex patterns, min/max values, ranges)
- Provide clear, descriptive field descriptions
- Include diverse examples in field descriptions
Write Comprehensive Docstrings/Descriptions:
- One-line summary of what the tool does
- Detailed explanation of purpose and functionality
- Explicit parameter types with examples
- Complete return type schema
- Usage examples (when to use, when not to use)
- Error handling documentation, which outlines how to proceed given specific errors
Implement Tool Logic:
- Use shared utilities to avoid code duplication
- Follow async/await patterns for all I/O
- Implement proper error handling
- Support multiple response formats (JSON and Markdown)
- Respect pagination parameters
- Check character limits and truncate appropriately
Add Tool Annotations:
readOnlyHint: true (for read-only operations)destructiveHint: false (for non-destructive operations)idempotentHint: true (if repeated calls have same effect)openWorldHint: true (if interacting with external systems)
2.4 Follow Language-Specific Best Practices
At this point, load the appropriate language guide:
For Python: Load 🐍 Python Implementation Guide and ensure the following:
- Using MCP Python SDK with proper tool registration
- Pydantic v2 models with
model_config - Type hints throughout
- Async/await for all I/O operations
- Proper imports organization
- Module-level constants (CHARACTER_LIMIT, API_BASE_URL)
For Node/TypeScript: Load ⚡ TypeScript Implementation Guide and ensure the following:
- Using
server.registerToolproperly - Zod schemas with
.strict() - TypeScript strict mode enabled
- No
anytypes - use proper types - Explicit Promise return types
- Build process configured (
npm run build)
Phase 3: Review and Refine
After initial implementation:
3.1 Code Quality Review
To ensure quality, review the code for:
- DRY Principle: No duplicated code between tools
- Composability: Shared logic extracted into functions
- Consistency: Similar operations return similar formats
- Error Handling: All external calls have error handling
- Type Safety: Full type coverage (Python type hints, TypeScript types)
- Documentation: Every tool has comprehensive docstrings/descriptions
3.2 Test and Build
Important: MCP servers are long-running processes that wait for requests over stdio/stdin or sse/http. Running them directly in your main process (e.g., python server.py or node dist/index.js) will cause your process to hang indefinitely.
Safe ways to test the server:
- Use the evaluation harness (see Phase 4) - recommended approach
- Run the server in tmux to keep it outside your main process
- Use a timeout when testing:
timeout 5s python server.py
For Python:
- Verify Python syntax:
python -m py_compile your_server.py - Check imports work correctly by reviewing the file
- To manually test: Run server in tmux, then test with evaluation harness in main process
- Or use the evaluation harness directly (it manages the server for stdio transport)
For Node/TypeScript:
- Run
npm run buildand ensure it completes without errors - Verify dist/index.js is created
- To manually test: Run server in tmux, then test with evaluation harness in main process
- Or use the evaluation harness directly (it manages the server for stdio transport)
3.3 Use Quality Checklist
To verify implementation quality, load the appropriate checklist from the language-specific guide:
- Python: see "Quality Checklist" in 🐍 Python Guide
- Node/TypeScript: see "Quality Checklist" in ⚡ TypeScript Guide
Phase 4: Create Evaluations
After implementing your MCP server, create comprehensive evaluations to test its effectiveness.
Load ✅ Evaluation Guide for complete evaluation guidelines.
4.1 Understand Evaluation Purpose
Evaluations test whether LLMs can effectively use your MCP server to answer realistic, complex questions.
4.2 Create 10 Evaluation Questions
To create effective evaluations, follow the process outlined in the evaluation guide:
- Tool Inspection: List available tools and understand their capabilities
- Content Exploration: Use READ-ONLY operations to explore available data
- Question Generation: Create 10 complex, realistic questions
- Answer Verification: Solve each question yourself to verify answers
4.3 Evaluation Requirements
Each question must be:
- Independent: Not dependent on other questions
- Read-only: Only non-destructive operations required
- Complex: Requiring multiple tool calls and deep exploration
- Realistic: Based on real use cases humans would care about
- Verifiable: Single, clear answer that can be verified by string comparison
- Stable: Answer won't change over time
4.4 Output Format
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>
Reference Files
📚 Documentation Library
Load these resources as needed during development:
Core MCP Documentation (Load First)
- MCP Protocol: Fetch from
https://modelcontextprotocol.io/llms-full.txt- Complete MCP specification - 📋 MCP Best Practices - Universal MCP guidelines including:
- Server and tool naming conventions
- Response format guidelines (JSON vs Markdown)
- Pagination best practices
- Character limits and truncation strategies
- Tool development guidelines
- Security and error handling standards
SDK Documentation (Load During Phase 1/2)
- Python SDK: Fetch from
https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md - TypeScript SDK: Fetch from
https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md
Language-Specific Implementation Guides (Load During Phase 2)
-
🐍 Python Implementation Guide - Complete Python/FastMCP guide with:
- Server initialization patterns
- Pydantic model examples
- Tool registration with
@mcp.tool - Complete working examples
- Quality checklist
-
⚡ TypeScript Implementation Guide - Complete TypeScript guide with:
- Project structure
- Zod schema patterns
- Tool registration with
server.registerTool - Complete working examples
- Quality checklist
Evaluation Guide (Load During Phase 4)
- ✅ Evaluation Guide - Complete evaluation creation guide with:
- Question creation guidelines
- Answer verification strategies
- XML format specifications
- Example questions and answers
- Running an evaluation with the provided scripts
From the ammosu/awesome-claude-skills-zh-TW README
Awesome Claude Skills
繁體中文 | English
精選實用 Claude Skills 清單,用於提升 Claude.ai、Claude Code 和 Claude API 的生產力。
如果您希望您的技能能夠跨 500+ 應用程式採取行動,請使用 Composio 整合
目錄
什麼是 Claude Skills?
Claude Skills 是可自訂的工作流程,可教導 Claude 如何根據您的獨特需求執行特定任務。Skills 使 Claude 能夠在所有 Claude 平台上以可重複、標準化的方式執行任務。
技能清單
文件處理
- docx - 建立、編輯、分析 Word 文件,支援追蹤修訂、註解、格式設定。
- pdf - 提取文字、表格、中繼資料,合併與註釋 PDF。
- pptx - 讀取、生成和調整投影片、版面配置、範本。
- xlsx - 試算表操作:公式、圖表、資料轉換。
- Markdown to EPUB Converter - 將 Markdown 文件和聊天摘要轉換為專業的 EPUB 電子書檔案。By @smerchek
開發與程式工具
- artifacts-builder - 用於建立精緻、多組件 claude.ai HTML artifacts 的工具套件,使用現代前端網頁技術(React、Tailwind CSS、shadcn/ui)。
- aws-skills - AWS 開發,包含 CDK 最佳實踐、成本優化 MCP 伺服器以及無伺服器/事件驅動架構模式。
- Changelog Generator - 透過分析歷史記錄並將技術提交轉換為客戶友善的發布說明,自動從 git 提交建立面向使用者的變更日誌。
- Claude Code Terminal Title - 為每個 Claude Code 終端視窗提供動態標題,描述正在執行的工作,以便您不會忘記哪個視窗在做什麼。
- D3.js Visualization - 教導 Claude 製作 D3 圖表和互動式資料視覺化。By @chrisvoncsefalvay
- FFUF Web Fuzzing - 整合 ffuf 網頁模糊測試工具,讓 Claude 能夠執行模糊測試任務並分析漏洞結果。By @jthack
- finishing-a-development-branch - 透過呈現清晰的選項並處理所選工作流程來指導開發工作的完成。
- iOS Simulator - 使 Claude 能夠與 iOS 模擬器互動,用於測試和除錯 iOS 應用程式。By @conorluddy
- MCP Builder - 指導建立高品質的 MCP(Model Context Protocol)伺服器,用於使用 Python 或 TypeScript 將外部 API 和服務與 LLM 整合。
- move-code-quality-skill - 針對官方 Move Book Code Quality Checklist 分析 Move 語言套件,檢查 Move 2024 Edition 合規性和最佳實踐。
- Playwright Browser Automation - 模型呼叫的 Playwright 自動化,用於測試和驗證 Web 應用程式。By @lackeyjb
- prompt-engineering - 教導知名的提示工程技術和模式,包括 Anthropic 最佳實踐和代理說服原則。
- pypict-claude-skill - 使用 PICT(Pairwise Independent Combinatorial Testing)為需求或程式碼設計全面的測試案例,生成具有成對覆蓋率的優化測試套件。
- Skill Creator - 提供建立有效 Claude Skills 的指導,透過專業知識、工作流程和工具整合來擴展能力。
- Skill Seekers - 在幾分鐘內自動將任何文件網站轉換為 Claude AI 技能。By @yusufkaraaslan
- software-architecture - 實作設計模式,包括 Clean Architecture、SOLID 原則和全面的軟體設計最佳實踐。
- subagent-driven-development - 為個別任務調度獨立的子代理,在迭代之間設置程式碼審查檢查點,實現快速、受控的開發。
- test-driven-development - 在實作任何功能或錯誤修復時使用,在編寫實作程式碼之前。
- using-git-worktrees - 建立隔離的 git worktree,具有智慧目錄選擇和安全驗證。
- Webapp Testing - 使用 Playwright 測試本地 Web 應用程式,用於驗證前端功能、除錯 UI 行為和擷取螢幕截圖。
資料與分析
- CSV Data Summarizer - 自動分析 CSV 檔案並生成包含視覺化的綜合見解,無需使用者提示。By @coffeefuelbump
- root-cause-tracing - 當錯誤在執行深處發生時使用,您需要追溯尋找原始觸發器。
商業與行銷
- Brand Guidelines - 將 Anthropic 的官方品牌色彩和字體應用於 artifacts,以實現一致的視覺識別和專業設計標準。
- Competitive Ads Extractor - 從廣告庫中提取和分析競爭對手的廣告,以了解引起共鳴的訊息和創意方法。
- Domain Name Brainstormer - 生成創意網域名稱構想,並檢查多個頂級網域(包括 .com、.io、.dev 和 .ai 擴充名)的可用性。
- Internal Comms - 協助撰寫內部溝通,包括 3P 更新、公司通訊、FAQ、狀態報告和專案更新,使用公司特定格式。
- Lead Research Assistant - 透過分析您的產品、搜尋目標公司並提供可行的外展策略來識別和評估高品質潛在客戶。
溝通與寫作
- article-extractor - 從網頁中提取完整的文章文字和中繼資料。
- brainstorming - 透過結構化提問和替代方案探索,將粗略的想法轉化為完整的設計。
- Content Research Writer - 透過進行研究、新增引用、改進吸睛開場和提供逐節回饋來協助撰寫高品質內容。
- family-history-research - 協助規劃家族歷史和家譜研究專案。
- Meeting Insights Analyzer - 分析會議記錄以揭示行為模式,包括衝突迴避、發言比例、填充詞和領導風格。
- NotebookLM Integration - 讓 Claude Code 直接與 NotebookLM 聊天,根據上傳的文件獲取基於來源的答案。By @PleasePrompto
創意與媒體
- Canvas Design - 使用設計哲學和美學原則在 PNG 和 PDF 文件中建立精美的視覺藝術,用於海報、設計和靜態作品。
- Image Enhancer - 透過增強解析度、銳利度和清晰度來提高圖像和螢幕截圖品質,用於專業簡報和文件。
- Slack GIF Creator - 建立針對 Slack 優化的動畫 GIF,具有大小限制驗證器和可組合的動畫基元。
- Theme Factory - 將專業字體和色彩主題應用於 artifacts,包括投影片、文件、報告和 HTML 登陸頁面,提供 10 種預設主題。
- Video Downloader - 從 YouTube 和其他平台下載影片,用於離線觀看、編輯或存檔,支援各種格式和品質選項。
- youtube-transcript - 從 YouTube 影片獲取字幕並準備摘要。
生產力與組織
- File Organizer - 透過理解上下文、尋找重複項目並建議更好的組織結構來智慧地組織檔案和資料夾。
- Invoice Organizer - 透過讀取檔案、提取資訊並一致地重新命名,自動組織發票和收據以進行稅務準備。
- kaizen - 應用持續改進方法論,採用多種分析方法,基於日本改善哲學和精實方法論。
- n8n-skills - 使 AI 助理能夠直接理解和操作 n8n 工作流程。
- Raffle Winner Picker - 從清單、試算表或 Google Sheets 隨機選擇贈品和競賽的獲勝者,具有加密安全的隨機性。
- ship-learn-next - 協助迭代接下來要建立或學習什麼的技能,基於回饋循環。
- tapestry - 將相關文件互連並摘要成知識網路。
協作與專案管理
- git-pushing - 自動化 git 操作和儲存庫互動。
- review-implementing - 評估程式碼實作計劃並與規格對齊。
- test-fixing - 檢測失敗的測試並提議修補程式或修復。
安全性與系統
- computer-forensics - 數位鑑識分析和調查技術。
- file-deletion - 安全檔案刪除和資料清理方法。
- metadata-extraction - 提取和分析檔案中繼資料以進行鑑識。
- threat-hunting-with-sigma-rules - 使用 Sigma 偵測規則來追蹤威脅並分析安全事件。
開始使用
在 Claude.ai 中使用技能
- 在聊天介面中點擊技能圖示(🧩)。
- 從市集新增技能或上傳自訂技能。
- Claude 會根據您的任務自動啟用相關技能。
在 Claude Code 中使用技能
-
將技能放置在
~/.config/claude-code/skills/:mkdir -p ~/.config/claude-code/skills/ cp -r skill-name ~/.config/claude-code/skills/ -
驗證技能中繼資料:
head ~/.config/claude-code/skills/skill-name/SKILL.md -
啟動 Claude Code:
claude -
技能會自動載入並在相關時啟用。
透過 API 使用技能
使用 Claude Skills API 以程式化方式載入和管理技能:
import anthropic
client = anthropic.Anthropic(api_key="your-api-key")
response = client.messages.create(
model="claude-3-5-sonnet-20241022",
skills=["skill-id-here"],
messages=[{"role": "user", "content": "Your prompt"}]
)
詳細資訊請參閱 Skills API 文件。
創建技能
技能結構
每個技能都是一個包含 SKILL.md 檔案的資料夾,並帶有 YAML frontmatter:
skill-name/
├── SKILL.md # 必需:技能說明和中繼資料
├── scripts/ # 可選:輔助腳本
├── templates/ # 可選:文件範本
└── resources/ # 可選:參考檔案
基本技能範本
---
name: my-skill-name
description: 清楚描述此技能的功能以及何時使用。
---
# My Skill Name
技能目的和能力的詳細說明。
## 何時使用此技能
- 使用案例 1
- 使用案例 2
- 使用案例 3
## 說明
[關於如何執行此技能的 Claude 詳細說明]
## 範例
[展示技能實際應用的真實範例]
技能最佳實踐
- 專注於特定、可重複的任務
- 包含清楚的範例和邊界情況
- 為 Claude 而非終端使用者編寫說明
- 跨 Claude.ai、Claude Code 和 API 進行測試
- 記錄先決條件和相依性
- 包含錯誤處理指導
貢獻
我們歡迎貢獻!請閱讀我們的貢獻指南了解以下詳細資訊:
- 如何提交新技能
- 技能品質標準
- Pull request 流程
- 行為準則
快速貢獻步驟
- 確保您的技能基於真實使用案例
- 檢查現有技能中是否有重複項目
- 遵循技能結構範本
- 跨平台測試您的技能
- 提交具有清楚文件的 pull request
資源
官方文件
- Claude Skills 概述 - 官方公告和功能
- Skills 使用者指南 - 如何在 Claude 中使用技能
- 建立自訂技能 - 技能開發指南
- Skills API 文件 - API 整合指南
- Agent Skills 部落格文章 - 工程深度探討
社群資源
- Anthropic Skills 儲存庫 - 官方範例技能
- Claude 社群 - 與其他使用者討論技能
- Skills 市集 - 發現和分享技能
靈感與使用案例
- Lenny's Newsletter - 50 種人們使用 Claude Code 的方式
- Notion Skills - Notion 整合技能
加入社群
- 對於將 Composio 與您的認證設定整合有疑問嗎?與我們快速通話
- 在 Twitter 上關注我們
- 加入我們的 Discord
授權
本儲存庫採用 Apache License 2.0 授權。
個別技能可能有不同的授權 - 請查看每個技能資料夾以獲取特定的授權資訊。
注意:Claude Skills 可跨 Claude.ai、Claude Code 和 Claude API 使用。一旦您建立了一個技能,它就可以跨所有平台移植,使您的工作流程在使用 Claude 的任何地方都保持一致。
Details
- Marketplace
- ammosu/awesome-claude-skills-zh-TW
- Source
- mcp-builder
- Category
- Development
- Listed since
- Apr 7, 2026
More from ammosu/awesome-claude-skills-zh-TW
All 27- meeting-insights-analyzer
- raffle-winner-picker
- skill-creator
- slack-gif-creator
- template-skill
- theme-factory
- video-downloader
- webapp-testing
- algorithmic-art
- artifacts-builder
- brand-guidelines
- canvas-design
- changelog-generator
- competitive-ads-extractor
- content-research-writer
- developer-growth-analysis
- document-skills-docx
- document-skills-pdf
- document-skills-pptx
- document-skills-xlsx
- domain-name-brainstormer
- file-organizer
- image-enhancer
- internal-comms
Similar to mcp-builder
More Skill & Plugin Building
mcp-toolsPluginAgentient/vibekit2 starsModel Context Protocol server development patterns
mcp-developerSkilljeffallan/claude-skills4.5K installsSenior-level MCP server and client builder that wires AI systems to external tools and data sources.
mcp-appsPluginanthropics/claude-plugins-official47.9K starsSkills for creating MCP Apps with the MCP Apps SDK
MCPJungleMCP servermcpjungle1.6K starsSelf-hosted gateway that exposes all registered MCP servers and their tools through one endpoint.