Azure リソース MCP サーバー
この MCP サーバーは、任意の MCP クライアントから直接 Azure リソースを一覧表示およびクエリするためのツールを提供するため、ワークフローを離れることなく Azure インフラストラクチャを効率的に参照し、コストを分析できます。
これは、Azure リソースをクエリする方法の例です。
これは、Azure コストを照会する方法の例です。
特徴
📊リソース検出- Azure サブスクリプション全体のすべてのリソースを一覧表示します
🔍フィルタリング- リソースグループ名でリソースをフィルタリングする
💰コスト分析- Azure サブスクリプションのコスト情報を取得します
🔐安全- Azure サービス プリンシパルの資格情報を使用します
🏷️詳細表示- すべてのリソースの場所、種類、タグを確認できます
ツール
Azureリソースの一覧
サービス プリンシパル認証を使用して Azure リソース グループとリソースを一覧表示する
入力:
subscription_id
(文字列、オプション): 照会するサブスクリプションID。指定されていない場合は、環境変数から取得されたデフォルトのサブスクリプションが使用されます。resource_group_filter
(文字列、オプション): リソース グループを名前でフィルターします (大文字と小文字は区別されず、一致するものが含まれます)。
返される値: 場所、タイプ、タグなどの詳細を含む、リソース グループとそのリソースのフォーマットされたマークダウン リスト。
get_azure_costs_rest
REST API を使用して Azure サブスクリプションのコスト分析データを取得する
入力:
subscription_id
(文字列、オプション): 照会するサブスクリプションID。指定されていない場合は、環境変数から取得されたデフォルトのサブスクリプションが使用されます。timeframe
(文字列、オプション):コスト分析の期間。デフォルトは「MonthToDate」です。
戻り値: 日次コストや合計などのコスト分析データを含むフォーマットされたマークダウン。
構成
Azureのセットアップ
認証用の Azure サービス プリンシパルを作成します。
サービスプリンシパルに適切なリーダー権限を割り当てる
AzureサブスクリプションID、テナントID、クライアントID、クライアントシークレットをメモします。
必要な環境変数を設定する
環境変数
このサーバーには次の環境変数が必要です。
インストール
前提条件
Python 3.10以上
適切な権限を持つ Azure サブスクリプション
リソースへの読み取りアクセス権を持つサービス プリンシパル
設定
uv を使用する場合:
Claude Desktopでの使用
Claude Desktop で使用するには、構成ファイルに以下を追加します。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
任意の MCP クライアントから直接 Azure リソースを一覧表示およびクエリするためのツールを提供し、ワークフローを離れることなく Azure インフラストラクチャを効率的に参照し、コストを分析できるようにします。
Related MCP Servers
- -securityAlicense-qualityAn MCP server that provides access to Azure Data Explorer (ADX) clusters, allowing users to list tables, execute queries, and retrieve schema information.Last updated -1MIT License
- -securityAlicense-qualityAn MCP server that wraps the Azure CLI. As LLMs are very good at generating Azure CLI commands, this server allows your LLM to list resources, update/create/delete them, fix errors (by looking at the logs), fix security issues...Last updated -81MIT License
- AsecurityAlicenseAqualityA Model Context Protocol server for querying and analyzing Azure resources at scale using Azure Resource Graph, enabling AI assistants to explore and monitor Azure infrastructure.Last updated -111MIT License
- -securityAlicense-qualityAn MCP server for interacting with Azure. Contains some common Compute and Networking actions, and extensible to add many more.Last updated -1Apache 2.0