mcp-tool-developer
できること
このツールは、プロトコルMCPに従って、AI向けのサーバーやツールの構築を支援します。最初の構想から公開まで全工程を扱い、TypeScriptやPythonなどの言語を使用します。
使う場面
- ✓ゼロから新しいMCPサーバーを構築するとき。
- ✓既存のAPIをMCPツールに変換するとき。
- ✓MCPサーバーをレジストリに公開するとき。
スキルのリンク
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/mcp-tool-developer/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ユーザーに挨拶するツールを持つ、TypeScriptで書かれたMCPサーバーを作成してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
まず、サーバーの機能(ツール、データ、テキストテンプレート)と通信方法を定義します。次に、ツールがどのように情報を受け取り、返すかを設計し、最後に公式の開発キットを使ってコードを書きます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
MCP Tool Developer
Overview
Expert at building Model Context Protocol (MCP) servers that give AI agents new capabilities. Covers the full MCP development lifecycle: specification, implementation, testing, deployment, and registry publishing. Supports both TypeScript and Python with production-ready patterns.
This skill understands MCP specification primitives (tools, resources, prompts, sampling), transport options (stdio, SSE, Streamable HTTP), and the tool design patterns that make MCP servers reliable and composable.
When to Use This Skill
- Use when building a new MCP server from scratch
- Use when wrapping an existing API as an MCP tool
- Use when debugging MCP server issues
- Use when designing the tool schema for an MCP server
- Use when publishing an MCP server to a registry
How It Works
Step 1: Define the MCP Server Scope
Identify what capabilities the server should expose:
- Tools - Functions the LLM can call (primary use case)
- Resources - Data the LLM can read (files, APIs, databases)
- Prompts - Reusable prompt templates
Choose the transport:
- stdio - For local CLI tools (Claude Code, Cursor)
- SSE (Server-Sent Events) - For remote/hosted tools
- Streamable HTTP - New in MCP spec for modern deployments
Step 2: Design the Tool Schema
Define input/output schemas before writing implementation:
{
name: "tool_name",
description: "What this tool does (visible to the LLM)",
inputSchema: {
type: "object",
properties: { ... },
required: [ ... ]
}
}
Step 3: Implement the Server
Create the server with proper error handling, validation, and logging. Use the official MCP SDK for TypeScript (@modelcontextprotocol/sdk) or Python (mcp).
Step 4: Test and Deploy
Test with the MCP Inspector, validate tool schemas, handle edge cases, then deploy locally or remotely.
Examples
Example 1: TypeScript MCP Server
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
const server = new McpServer({ name: "my-tools", version: "1.0.0" });
server.tool("greet", "Greet someone by name",
{ name: z.string().describe("Person's name") },
async ({ name }) => ({ content: [{ type: "text", text: `Hello, ${name}!` }] })
);
const transport = new StdioServerTransport();
await server.connect(transport);
Example 2: API Wrapper Pattern
Wrap an external API as an MCP tool with auth, rate limiting, and error handling:
- Map API endpoints to tools
- Handle auth via environment variables
- Transform API responses to LLM-friendly format
- Add retry logic with exponential backoff
Best Practices
- Build small, focused tools that can be chained rather than monolithic tools
- Return structured errors, not crashes - tools should fail gracefully
- Define schemas before implementation
- Include descriptions that help the LLM understand when and how to use each tool
- Validate all inputs against the schema
- Add rate limiting for external API calls
- Use environment variables for secrets, never hardcode credentials
Limitations
- This skill provides guidance and code generation; actual runtime testing requires a development environment
- MCP specification is evolving; always check the latest spec version
- Security review is essential before deploying tools that handle sensitive data
Security and Safety Notes
- Never hardcode API keys or credentials in tool implementations
- Use environment variables or secret managers for all authentication
- Validate and sanitize all inputs to prevent injection attacks
- Rate limit external API calls to prevent abuse
- Review tool permissions carefully - tools can access files, networks, and execute code
Common Pitfalls
Problem: LLM calls tools with wrong parameters Solution: Improve tool descriptions and add examples in the description field. The LLM reads descriptions to decide how to call tools.
Problem: Tool times out on large inputs Solution: Add input size validation and pagination. Stream large responses instead of buffering.
Related Skills
api-integration-architect- For API design patterns used in MCP toolssecurity-audit-code-reviewer- For reviewing MCP server code security
よくある質問
MCPとは何ですか?
MCP(Model Context Protocol)は、AIエージェントがツールを使い、データに構造化された方法でアクセスできるようにするプロトコルです。
どの言語に対応していますか?
MCPサーバーとツールの構築に対応している主な言語は、TypeScriptとPythonです。
AIはいつツールを使うべきか、どうやって判断するのですか?
AIは、あなたが各ツールに用意した説明を使って、そのツールが何をするものか、そしていつ呼び出すのが適切かを理解します。
詳細
作者による元の説明
Build Model Context Protocol (MCP) servers and tools from scratch. Full-stack MCP development with TypeScript/Python, testing, deployment, and registry publishing.
人気
- GitHubのスター
- 48k
- ランキング
- #5188
- ライセンス
- MIT
- 更新日
- 2026/10/15
コメント
- …
このリポジトリの他のスキル
00-andruia-consultant
48kエージェントがAIプロジェクトの立ち上げや改善を支援します。コードを分析し、ツールを提案し、スペイン語で行動計画を作成します。
007
48kエージェントがセキュリティ監査と脅威モデリングを行えるようにします。攻撃や脆弱性からプロジェクトを守るのに役立ちます。
10-andruia-skill-smith
48kエージェントがAIツールの作成や改善を支援します。ツールの動作を定義し、ドキュメントを書き、構造を検証します。
20-andruia-niche-intelligence
48kエージェントが特定の業界に関する要約を作成できるようにします。信頼できる情報源を使って、プロジェクトの背景、ルール、利用パターン、リスクを把握するのに役立ちます。
似ているスキル
mcporter
394kHTTPまたはstdioでMCPサーバーとそのツールを一覧表示、呼び出し、確認し、サインイン設定を管理するようエージェントを支援します。
fastmcp
260kPythonで、AIアシスタントがAPI、データベース、ファイルをツールとして利用できるMCPサーバーを作成、テスト、デプロイするのを支援します。
mcp-oauth-remote-gateway
260kHermesがサーバー上で動いている場合に、リモートのMCPサーバーのOAuthサインインを手動で完了させ、トークンを保存します。