AI連携(MCP)
その他のMCPクライアント
JSON-RPC 2.0 を POST で送って esimoa MCP サーバーを直接呼び出す方法です。
その他のAIアプリ#
Grok・Perplexity・Le Chat・Manus・Genspark・Cursor・VS Code・Microsoft Copilot Studio はいずれもリモートMCPサーバーを追加できます。カスタムコネクタを作成して上のURLを入れ、認証は「なし」を選んでください。ローカル(stdio)サーバーのみ対応のクライアントは mcp-remote で接続します:
url
https://api.esimoa.com/mcpmcp-remote (stdio)json
{
"mcpServers": {
"esimoa": { "command": "npx", "args": ["-y", "mcp-remote", "https://api.esimoa.com/mcp"] }
}
}プロトコル#
JSON-RPC 2.0 を POST で送ります。セッションは不要で、リクエストごとに独立して処理されます。
対応メソッドは initialize・ping・tools/list・tools/call・resources/list・resources/read(プロトコル 2024-11-05〜2025-11-25)で、2026-07-28 のクライアントには server/discover にも対応します(ステートレス、MCP-Protocol-Version・Mcp-Method ヘッダー)。SSEストリームは開かないため、GET は405になります。
initialize#
initializeshell
curl -X POST https://api.esimoa.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-06-18",
"capabilities": {},
"clientInfo": { "name": "my-client", "version": "1.0.0" }
}
}'tools/call#
tools/call · search_esimsshell
curl -X POST https://api.esimoa.com/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-H "X-API-Key: esk_live_your_key_here" \
-d '{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "search_esims",
"arguments": { "country": "Japan", "days": 7, "sort": "price", "limit": 3, "lang": "en" }
}
}'