Cloudzero モデルコンテキストプロトコル (MCP) サーバー
大規模言語モデル (LLM) から Cloudzero のクラウド コスト データを参照します。
月ごとの差異をプロットするなど、コスト データについて質問します。
仕組み
CloudZero v2 APIとモデルコンテキストプロトコルMCP を使用します。
Claude DesktopでMCPサーバーが設定されると、起動時にバックグラウンドプロセスとして起動されます。MCPホストであるClaude Desktopは、MCPサーバーにinitiatize
リクエストを送信します。サーバーは、 prompts
やツール呼び出し用のtools
などの機能で応答します。
サーバーは、CloudZero 固有のツールをいくつか実装しています。
get_costs``start_date
からend_date
までの請求データを取得します。- 請求ディメンションの
get_dimensions
- 予算を一覧表示するには
list_budgets
使用します list_insights
でインサイトを一覧表示する
MCP プロトコルは、リクエストとレスポンスに JSON-RPC 2.0 を使用します。
設定
Claude Desktopをインストールします:
uvをインストールする
プロジェクトの依存関係を設定します。
CloudZero API キーを生成します。
.env
を次のように編集します。
インストール
MCP サーバーを Claude Desktop にインストールするには:
claude_desktop_config.json
を編集して、 uv
コマンドへの適切なパスを設定し、以下のようにUSERNAME
を更新します。
この設定ファイルは、Claude Desktop のSettings > Developer > Edit Config
にあります。
Claude Desktopを再起動してください。Desktopが起動すると、バックグラウンドでサーバープロセスが起動します。エラーが表示される場合がありますが、ログを確認して問題の原因を特定できます。
エラーがない場合は、「クラウド課金に使用できるツールは何ですか」と質問して、リストを確認してください。
詳細については、 Claude Desktop MCP のドキュメントを参照してください。
デバッグ
デバッグの場合、対話型 GUI を使用して MCP 開発サーバーを実行し、次の点を検査できます。
これは、Claude Desktop を継続的に再起動することなく、コード内のバグをトラブルシューティングするのに役立ちます。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
ユーザーが大規模言語モデルを通じて自然言語を使用して Cloudzero からクラウド コスト データを照会および分析できるようにするサーバー。
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityThe server facilitates natural language interactions for exploring and understanding codebases, providing insights into data models and system architecture using a cost-effective, simple setup with support for existing Claude Pro subscriptions.Last updated -418Python
- AsecurityAlicenseAqualityA command-line interface and API that allows users to analyze and visualize AWS cloud spending data by enabling Claude to query AWS Cost Explorer through natural language conversations.Last updated -4121PythonMIT License
- AsecurityAlicenseAqualityA server that enables LLMs like Claude to interact with Azure Cosmos DB databases through natural language queries, acting as a translator between AI assistants and database systems.Last updated -42JavaScriptMIT License
- AsecurityAlicenseAqualityA server that enables LLMs (like Claude and VSCode Copilot) to interact with Azure Cosmos DB data through natural language queries, acting as a translator between AI assistants and your database.Last updated -351TypeScriptMIT License