mcp-developer
できること
AIシステムを、ツールとデータのソースにつなぐModel Context ProtocolのサーバーとクライアントをTypeScriptまたはPythonで作るようエージェントを導きます。AIアプリが外部のサービスを使えるようにしたい開発者向けです。
使う場面
- ✓AIのツールに、自分のデータへのアクセスを与えるMCPサーバーを作りたいとき。
- ✓MCPのサーバーがプロトコルのチェックに失敗し、不正な応答を返すとき。
- ✓MCPのサーバーに、stdio、HTTP、SSEのトランスポートを設定する必要があるとき。
スキルのリンク
https://github.com/Jeffallan/claude-skills/blob/main/skills/mcp-developer/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“私のAIアシスタントが、データベースから注文を調べられるMCPのサーバーを作ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、TypeScriptまたはPythonのSDKでプロジェクトを作り、ZodまたはPydanticでツールのスキーマを定義して、ハンドラーを登録します。そのあと、MCPのインスペクターでサーバーをテストします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
MCP Developer
Senior MCP (Model Context Protocol) developer with deep expertise in building servers and clients that connect AI systems with external tools and data sources.
Core Workflow
- Analyze requirements — Identify data sources, tools needed, and client apps
- Initialize project —
npx @modelcontextprotocol/create-server my-server(TypeScript) orpip install mcp+ scaffold (Python) - Design protocol — Define resource URIs, tool schemas (Zod/Pydantic), and prompt templates
- Implement — Register tools and resource handlers; configure transport (stdio/SSE/HTTP)
- Test — Run
npx @modelcontextprotocol/inspectorto verify protocol compliance interactively; confirm tools appear, schemas accept valid inputs, and error responses are well-formed JSON-RPC 2.0. Feedback loop: if schema validation fails → inspect Zod/Pydantic error output → fix schema definition → re-run inspector. If a tool call returns a malformed response → check transport serialisation → fix handler → re-test. - Deploy — Package, add auth/rate-limiting, configure env vars, monitor
Reference Guide
Load detailed guidance based on context:
| Topic | Reference | Load When |
|---|---|---|
| Protocol | references/protocol.md |
Message types, lifecycle, JSON-RPC 2.0 |
| TypeScript SDK | references/typescript-sdk.md |
Building servers/clients in Node.js |
| Python SDK | references/python-sdk.md |
Building servers/clients in Python |
| Tools | references/tools.md |
Tool definitions, schemas, execution |
| Resources | references/resources.md |
Resource providers, URIs, templates |
Minimal Working Example
TypeScript — Tool with Zod Validation
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-server", version: "1.1.0" });
// Register a tool with validated input schema
server.tool(
"get_weather",
"Fetch current weather for a location",
{
location: z.string().min(1).describe("City name or coordinates"),
units: z.enum(["celsius", "fahrenheit"]).default("celsius"),
},
async ({ location, units }) => {
// Implementation: call external API, transform response
const data = await fetchWeather(location, units); // your fetch logic
return {
content: [{ type: "text", text: JSON.stringify(data) }],
};
}
);
// Register a resource provider
server.resource(
"config://app",
"Application configuration",
async (uri) => ({
contents: [{ uri: uri.href, text: JSON.stringify(getConfig()), mimeType: "application/json" }],
})
);
const transport = new StdioServerTransport();
await server.connect(transport);
Python — Tool with Pydantic Validation
from mcp.server.fastmcp import FastMCP
from pydantic import BaseModel, Field
mcp = FastMCP("my-server")
class WeatherInput(BaseModel):
location: str = Field(..., min_length=1, description="City name or coordinates")
units: str = Field("celsius", pattern="^(celsius|fahrenheit)$")
@mcp.tool()
async def get_weather(location: str, units: str = "celsius") -> str:
"""Fetch current weather for a location."""
data = await fetch_weather(location, units) # your fetch logic
return str(data)
@mcp.resource("config://app")
async def app_config() -> str:
"""Expose application configuration as a resource."""
return json.dumps(get_config())
if __name__ == "__main__":
mcp.run() # defaults to stdio transport
Expected tool call flow:
Client → { "method": "tools/call", "params": { "name": "get_weather", "arguments": { "location": "Berlin" } } }
Server → { "result": { "content": [{ "type": "text", "text": "{\"temp\": 18, \"units\": \"celsius\"}" }] } }
Constraints
MUST DO
- Implement JSON-RPC 2.0 protocol correctly
- Validate all inputs with schemas (Zod/Pydantic)
- Use proper transport mechanisms (stdio/HTTP/SSE)
- Implement comprehensive error handling
- Add authentication and authorization
- Log protocol messages for debugging
- Test protocol compliance thoroughly
- Document server capabilities
MUST NOT DO
- Skip input validation on tool inputs
- Expose sensitive data in resource content
- Ignore protocol version compatibility
- Mix synchronous code with async transports
- Hardcode credentials or secrets
- Return unstructured errors to clients
- Deploy
よくある質問
どのSDKを使いますか?
TypeScriptとPythonのMCP SDKを使います。
MCPのサーバーはどうテストしますか?
MCPのインスペクターを実行し、ツールが表示されること、スキーマが有効な入力を受け付けること、エラーが正しく返されることを確認します。
どのトランスポートに対応していますか?
stdio、HTTP、SSEのトランスポートに対応しています。
詳細
作者による元の説明
Use when building, debugging, or extending MCP servers or clients that connect AI systems with external tools and data sources. Invoke to implement tool handlers, configure resource providers, set up stdio/HTTP/SSE transport layers, validate schemas with Zod or Pydantic, debug protocol compliance issues, or scaffold complete MCP server/client projects using TypeScript or Python SDKs.
repo: Jeffallan/claude-skills
人気
- GitHubのスター
- 12k
- ランキング
- #11436
- ライセンス
- MIT
- 更新日
- 2026/10/30
コメント
- …
このリポジトリの他のスキル
angular-architect
12kエージェントが、スタンドアロンコンポーネント、遅延読み込みのルーティング、NgRxの状態管理、RxJSのパターン、性能の調整を使ったAngular 17以降のアプリを作るのを支援します。
api-designer
12kエージェントが、RESTまたはGraphQLのAPIを設計し、OpenAPI 3.1の仕様を書くのを支援します。リソース、ページネーション、エラーの形式、バージョン管理のルールを含みます。
architecture-designer
12kエージェントが、システムのアーキテクチャを設計し、パターンや技術を比べて、それぞれの選択を説明するアーキテクチャ決定記録(ADR)を書くのを支援します。
atlassian-mcp
12kMCPを通じて、JiraのIssueとConfluenceのページを検索、更新するのを支援します。JQLとCQLのクエリ、スプリント、ドキュメントの同期を含みます。
似ているスキル
mcporter
394kHTTPまたはstdioでMCPサーバーとそのツールを一覧表示、呼び出し、確認し、サインイン設定を管理するようエージェントを支援します。
fastmcp
260kPythonで、AIアシスタントがAPI、データベース、ファイルをツールとして利用できるMCPサーバーを作成、テスト、デプロイするのを支援します。
mcp-oauth-remote-gateway
260kHermesがサーバー上で動いている場合に、リモートのMCPサーバーのOAuthサインインを手動で完了させ、トークンを保存します。