ck:mcp-builder
LLMと外部サービスを連携させるためのMCPサーバー構築を支援し、FastMCPやMCP SDKを活用して、ツール設計、API連携、リソース提供などを効率的に行うSkill。
📜 元の英語説明(参考)
Build MCP servers for LLM-external service integration. Use for FastMCP (Python), MCP SDK (Node/TypeScript), tool design, API integration, resource providers.
🇯🇵 日本人クリエイター向け解説
LLMと外部サービスを連携させるためのMCPサーバー構築を支援し、FastMCPやMCP SDKを活用して、ツール設計、API連携、リソース提供などを効率的に行うSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o ck-mcp-builder.zip https://jpskill.com/download/23648.zip && unzip -o ck-mcp-builder.zip && rm ck-mcp-builder.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/23648.zip -OutFile "$d\ck-mcp-builder.zip"; Expand-Archive "$d\ck-mcp-builder.zip" -DestinationPath $d -Force; ri "$d\ck-mcp-builder.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
ck-mcp-builder.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
ck-mcp-builderフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 6
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] ck:mcp-builder
MCPサーバー開発ガイド
概要
LLMが外部サービスと効果的に連携できるようにする高品質なMCP(Model Context Protocol)サーバーを作成するには、このスキルを使用します。MCPサーバーは、LLMが外部サービスやAPIにアクセスできるようにするツールを提供します。MCPサーバーの品質は、提供されたツールを使用してLLMが実世界のタスクをどの程度うまく達成できるかによって測られます。
プロセス
🚀 大まかなワークフロー
高品質なMCPサーバーを作成するには、主に4つのフェーズがあります。
フェーズ1:詳細な調査と計画
1.1 エージェント中心設計の原則を理解する
実装に入る前に、以下の原則を確認して、AIエージェント向けのツールの設計方法を理解してください。
APIエンドポイントだけでなく、ワークフローのために構築する:
- 既存のAPIエンドポイントを単にラップするのではなく、思慮深く、影響力の大きいワークフローツールを構築します。
- 関連する操作を統合します(例:可用性を確認し、イベントを作成する
schedule_event)。 - 個々のAPI呼び出しだけでなく、完全なタスクを可能にするツールに焦点を当てます。
- エージェントが実際に達成する必要があるワークフローを検討します。
限られたコンテキストに最適化する:
- エージェントはコンテキストウィンドウが制約されているため、すべてのトークンを有効活用します。
- 網羅的なデータダンプではなく、高シグナルの情報を返します。
- 「簡潔な」形式と「詳細な」形式の応答オプションを提供します。
- 技術的なコード(ID)よりも人間が読める識別子(名前)をデフォルトとします。
- エージェントのコンテキスト予算を貴重なリソースとして考慮します。
実用的なエラーメッセージを設計する:
- エラーメッセージは、エージェントが正しい使用パターンに導かれるようにします。
- 具体的な次のステップを提案します:「結果を減らすには、filter='active_only'を使用してみてください」。
- エラーを診断だけでなく、教育的なものにします。
- 明確なフィードバックを通じて、エージェントが適切なツール使用法を学習できるように支援します。
自然なタスクの細分化に従う:
- ツール名は、人間がタスクについて考える方法を反映している必要があります。
- 発見しやすくするために、関連するツールを一貫したプレフィックスでグループ化します。
- API構造だけでなく、自然なワークフローを中心にツールを設計します。
評価主導型開発を使用する:
- 早期に現実的な評価シナリオを作成します。
- エージェントのフィードバックに基づいてツールの改善を推進します。
- 迅速にプロトタイプを作成し、実際のエージェントのパフォーマンスに基づいて反復します。
1.3 MCPプロトコルドキュメントを学習する
最新のMCPプロトコルドキュメントを取得する:
WebFetchを使用して以下を読み込みます:https://modelcontextprotocol.io/llms-full.txt
この包括的なドキュメントには、完全なMCP仕様とガイドラインが含まれています。
1.4 フレームワークドキュメントを学習する
以下の参照ファイルを読み込み、熟読します:
- MCPベストプラクティス: 📋 ベストプラクティスを表示 - すべてのMCPサーバーのコアガイドライン
Python実装の場合、以下も読み込みます:
- Python SDKドキュメント: WebFetchを使用して
https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.mdを読み込みます。 - 🐍 Python実装ガイド - Python固有のベストプラクティスと例
Node/TypeScript実装の場合、以下も読み込みます:
- TypeScript SDKドキュメント: WebFetchを使用して
https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.mdを読み込みます。 - ⚡ TypeScript実装ガイド - Node/TypeScript固有のベストプラクティスと例
1.5 APIドキュメントを徹底的に学習する
サービスを統合するには、利用可能なすべてのAPIドキュメントを読み通します。
- 公式APIリファレンスドキュメント
- 認証と認可の要件
- レート制限とページネーションパターン
- エラー応答とステータスコード
- 利用可能なエンドポイントとそのパラメーター
- データモデルとスキーマ
包括的な情報を収集するには、必要に応じてウェブ検索とWebFetchツールを使用します。
1.6 包括的な実装計画を作成する
調査に基づいて、以下を含む詳細な計画を作成します。
ツール選択:
- 実装する最も価値のあるエンドポイント/操作をリストアップします。
- 最も一般的で重要なユースケースを可能にするツールを優先します。
- 複雑なワークフローを可能にするために、どのツールが連携して機能するかを検討します。
共有ユーティリティとヘルパー:
- 共通のAPIリクエストパターンを特定します。
- ページネーションヘルパーを計画します。
- フィルタリングおよびフォーマットユーティリティを設計します。
- エラー処理戦略を計画します。
入出力設計:
- 入力検証モデルを定義します(Pythonの場合はPydantic、TypeScriptの場合はZod)。
- 一貫した応答形式(例:JSONまたはMarkdown)と、構成可能な詳細レベル(例:詳細または簡潔)を設計します。
- 大規模な使用(数千のユーザー/リソース)を計画します。
- 文字数制限と切り捨て戦略(例:25,000トークン)を実装します。
エラー処理戦略:
- 優雅な失敗モードを計画します。
- さらなるアクションを促す、明確で実用的な、LLMに優しい自然言語のエラーメッセージを設計します。
- レート制限とタイムアウトのシナリオを検討します。
- 認証と認可のエラーを処理します。
フェーズ2:実装
包括的な計画ができたので、言語固有のベストプラクティスに従って実装を開始します。
2.1 プロジェクト構造を設定する
Pythonの場合:
- 単一の
.pyファイルを作成するか、複雑な場合はモジュールに整理します(🐍 Pythonガイドを参照)。 - ツール登録にはMCP Python SDKを使用します。
- 入力検証にはPydanticモデルを定義します。
Node/TypeScriptの場合:
- 適切なプロジェクト構造を作成します(⚡ TypeScriptガイドを参照)。
package.jsonとtsconfig.jsonを設定します。- MCP TypeScript SDKを使用します。
- 入力検証にはZodスキーマを定義します。
2.2 まずコアインフラストラクチャを実装する
実装を開始するには、ツールを実装する前に共有ユーティリティを作成します。
- APIリクエストヘルパー関数
- エラー処理ユーティリティ
- 応答フォーマット関数(JSONおよびMarkdown)
- ページネーションヘルパー
- 認証/トークン管理
2.3 ツールを体系的に実装する
計画内の各ツールについて:
入力スキーマを定義する:
- 検証にはPydantic(Python)またはZod(TypeScript)を使用します。
- 適切な制約(最小/最大長、正規表現パターン、最小/最大値、範囲)を含めます。
- 明確な
(原文がここで切り詰められています)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
MCP 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<T> 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
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (13,532 bytes)
- 📎 LICENSE.txt (11,357 bytes)
- 📎 scripts/connections.py (4,875 bytes)
- 📎 scripts/evaluation.py (12,884 bytes)
- 📎 scripts/example_evaluation.xml (1,194 bytes)
- 📎 scripts/requirements.txt (29 bytes)