Azure Resource MCP Server
Azure リソース MCP サーバー
この MCP サーバーは、任意の MCP クライアントから直接 Azure リソースを一覧表示およびクエリするためのツールを提供するため、ワークフローを離れることなく Azure インフラストラクチャを効率的に参照し、コストを分析できます。
これは、Azure リソースをクエリする方法の例です。
これは、Azure コストを照会する方法の例です。
特徴
📊リソース検出- Azure サブスクリプション全体のすべてのリソースを一覧表示します
🔍フィルタリング- リソースグループ名でリソースをフィルタリングする
💰コスト分析- Azure サブスクリプションのコスト情報を取得します
🔐安全- Azure サービス プリンシパルの資格情報を使用します
🏷️詳細表示- すべてのリソースの場所、種類、タグを確認できます
Related MCP server: mcp-azure-toolkit
ツール
Azureリソースの一覧
サービス プリンシパル認証を使用して Azure リソース グループとリソースを一覧表示する
入力:
subscription_id(文字列、オプション): 照会するサブスクリプションID。指定されていない場合は、環境変数から取得されたデフォルトのサブスクリプションが使用されます。resource_group_filter(文字列、オプション): リソース グループを名前でフィルターします (大文字と小文字は区別されず、一致するものが含まれます)。
返される値: 場所、タイプ、タグなどの詳細を含む、リソース グループとそのリソースのフォーマットされたマークダウン リスト。
get_azure_costs_rest
REST API を使用して Azure サブスクリプションのコスト分析データを取得する
入力:
subscription_id(文字列、オプション): 照会するサブスクリプションID。指定されていない場合は、環境変数から取得されたデフォルトのサブスクリプションが使用されます。timeframe(文字列、オプション):コスト分析の期間。デフォルトは「MonthToDate」です。
戻り値: 日次コストや合計などのコスト分析データを含むフォーマットされたマークダウン。
構成
Azureのセットアップ
認証用の Azure サービス プリンシパルを作成します。
az ad sp create-for-rbac --name {service principal name}サービスプリンシパルに適切なリーダー権限を割り当てる
AzureサブスクリプションID、テナントID、クライアントID、クライアントシークレットをメモします。
必要な環境変数を設定する
環境変数
このサーバーには次の環境変数が必要です。
# Required Azure authentication
AZURE_TENANT_ID=your-tenant-id
AZURE_CLIENT_ID=your-client-id
AZURE_CLIENT_SECRET=your-client-secret
AZURE_SUBSCRIPTION_ID=your-subscription-idインストール
前提条件
Python 3.10以上
適切な権限を持つ Azure サブスクリプション
リソースへの読み取りアクセス権を持つサービス プリンシパル
設定
uv を使用する場合:
# Setup environment with uv
uv venv
.venv\Scripts\activate # On Windows
source .venv/bin/activate # On macOS/Linux
# Install dependencies
uv add mcp[cli] azure-identity python-dotenv azure-mgmt-resource aiohttp
# Run server
uv run -m azure_resource_mcp_serverClaude Desktopでの使用
Claude Desktop で使用するには、構成ファイルに以下を追加します。
{
"mcpServers": {
"azure-resource": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER",
"run",
"-m",
"azure_resource_mcp_server"
],
"env": {
"AZURE_TENANT_ID": "your-tenant-id",
"AZURE_CLIENT_ID": "your-client-id",
"AZURE_CLIENT_SECRET": "your-client-secret",
"AZURE_SUBSCRIPTION_ID": "your-subscription-id"
}
}
}
}This server cannot be deployed
Maintenance
Related MCP Connectors
Official Microsoft MCP Server to query Microsoft Entra data using natural language
Read-only AI/LLM cost tools with current MCP discovery and attributable Registry transport.
Read-only MCP tools for AI agent discovery, structured resources, and NIULAI information.
List, read, edit, and deploy your GenMB AI-generated apps from any MCP client.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceAn 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...81-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that exposes core Azure services as read-mostly tools any MCP client can call, including Blob Storage, Key Vault, Service Bus, and Resource Manager.1MIT
- FlicenseAqualityDmaintenanceIntegrates Azure Cost Management APIs via MCP, enabling cost queries, forecasts, budgets, and Advisor recommendations through natural language in compatible clients.9-
- AlicenseAqualityDmaintenanceEnables natural-language queries about Azure resource compliance, including VM compliance, patch status, orphaned RBAC, and infrastructure health, through read-only MCP tools.3MIT