サーバーはhttps://api.coinprice.dev/mcpで稼働しており、ストリーマブルHTTPに対応しています。ツールは5つあります。get_price、list_coins、search_docsの3つはキーなしで使えます。get_historyとget_marketsには無料のAPIキーが必要で、Authorization: Bearerヘッダーで送ります。coin_test_で始まるテストキーはダミーデータを返し、課金されません。キーを取得。
接続
Claude Codeでは、1つのコマンドでサーバーを追加できます。キーが必要なツールを使うには、ヘッダーを追加してください。
claude mcp add --transport http coinprice https://api.coinprice.dev/mcp# with a key, for get_history and get_marketsclaude mcp add --transport http coinprice https://api.coinprice.dev/mcp \ --header "Authorization: Bearer $COINPRICE_API_KEY"CursorやVS Codeなど、カスタムヘッダーを設定できるクライアントでは、上記のURLと、キーが必要なツール用のAuthorizationヘッダーを指定して、リモートHTTPのMCPサーバーを追加できます。キー不要のツールは、リモートサーバーに対応するどのクライアントでも使えます。
ツール
| ツール | 機能 | キー | 引数 |
|---|---|---|---|
get_price | 1つ以上のコインの現在価格を、24時間の変動とともに返します。 | 不要 | ids(IDまたはティッカーを最大50件)、currency(デフォルトはusd) |
list_coins | 24時間出来高順のコイン、または検索に一致するコインを返します。 | 不要 | query、limit(1〜100、デフォルトは20) |
search_docs | APIドキュメントを検索します。 | 不要 | query |
get_history | 1つのコインのローソク足を返します。 | はい | id、interval(1m、5m、15m、1h、4h、1d)、limit(1〜500、デフォルトは100)、from、to |
get_markets | 先物市場(価格、資金調達率、建玉)または予測市場のオッズを返します。 | はい | type(futuresまたはpredictions)、coin、symbol、limit(1〜100) |
ツールを呼び出す
curl -s -X POST https://api.coinprice.dev/mcp \ -H 'Content-Type: application/json' -H 'Accept: application/json, text/event-stream' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_price","arguments":{"ids":["bitcoin","ethereum"]}}}'レスポンスはJSON-RPCのエンベロープです。ツールの結果はresult.content[0].textにJSON文字列として入っているので、デコードして価格を読み取ります。キーなしのレスポンスにはget_keyフィールドも含まれます。
{ "id": 1, "jsonrpc": "2.0", "result": { "content": [ { "text": "{\"get_key\":\"Free API key (more calls, history, futures and predictions): https://coinprice.dev/signup\",\"prices\":[{\"change_24h_pct\":-1.8524344173520557,\"currency\":\"usd\",\"id\":\"bitcoin\",\"price\":60252.585,\"symbol\":\"btc\",\"timestamp\":\"2026-11-24T07:20:59Z\"},{\"change_24h_pct\":-1.7347602401662998,\"currency\":\"usd\",\"id\":\"ethereum\",\"price\":1692.265,\"symbol\":\"eth\",\"timestamp\":\"2026-11-24T07:20:59Z\"}]}", "type": "text" } ], "isError": false }}{ "get_key": "Free API key (more calls, history, futures and predictions): https://coinprice.dev/signup", "prices": [ { "change_24h_pct": -1.8524344173520557, "currency": "usd", "id": "bitcoin", "price": 60252.585, "symbol": "btc", "timestamp": "2026-11-24T07:20:59Z" }, { "change_24h_pct": -1.7347602401662998, "currency": "usd", "id": "ethereum", "price": 1692.265, "symbol": "eth", "timestamp": "2026-11-24T07:20:59Z" } ]}キーなしでキーが必要なツールを呼ぶ
キーが必要なツールをキーなしで呼ぶと、エラーステータスではなく、HTTP 200とisError: trueが返ります。中のテキストにキーの取得先が書かれています。
{ "error": "unauthorized", "message": "get_history needs an API key. Get a free one at https://coinprice.dev/signup and send it as 'Authorization: Bearer <key>'."}上限
- キーなしの呼び出しは、IPアドレスごとに1分あたり30回までです。
initializeとtools/listも数えます。 - キーを使う場合、ツールの呼び出しはすべてプランの呼び出し数に数えられます。エラーになった場合や結果がなかった場合は返却されます。
- From 80% of your monthly calls, tool answers carry
usage_note: the calls used, the next plan's calls and the upgrade link. get_historyのfromとtoは、Unix秒ではなくISO形式の日付または日時のみ受け付けます。間隔の既定値は1dです。範囲外のlimitはエラーにならず100になります。get_marketsは、limitが範囲外のとき20として扱います。get_priceは最大50件のIDを受け付けます。
RESTで同じデータを取得する
ツールはRESTのAPIと同じ価格を読み取ります。AIクライアント以外のコードにはRESTを使ってください。すべてのルートはAPIリファレンスに掲載しています。
質問
MCPサーバーは今すぐ使えますか?
はい。https://api.coinprice.dev/mcpで稼働中です。
APIキーは必要ですか?
get_price、list_coins、search_docsでは不要です。get_historyとget_marketsには、Authorizationヘッダーで送る無料のキーが必要です。
どのクライアントで使えますか?
ストリーマブルHTTPでリモートサーバーに対応するMCPクライアントなら、Claude Code、Cursor、VS Codeを含め、どれでも使えます。
どんなデータが返りますか?
現在価格、コイン検索、ローソク足、先物市場、予測オッズを返します。データはRESTのAPIと同じものです。