Skip to main content
Glama
tim10002

Azure Resource MCP Server

by tim10002

Azure リソース MCP サーバー

この MCP サーバーは、任意の MCP クライアントから直接 Azure リソースを一覧表示およびクエリするためのツールを提供するため、ワークフローを離れることなく Azure インフラストラクチャを効率的に参照し、コストを分析できます。

これは、Azure リソースをクエリする方法の例です。

これは、Azure コストを照会する方法の例です。

特徴

  • 📊リソース検出- Azure サブスクリプション全体のすべてのリソースを一覧表示します

  • 🔍フィルタリング- リソースグループ名でリソースをフィルタリングする

  • 💰コスト分析- Azure サブスクリプションのコスト情報を取得します

  • 🔐安全- Azure サービス プリンシパルの資格情報を使用します

  • 🏷️詳細表示- すべてのリソースの場所、種類、タグを確認できます

Related MCP server: Azure FinOps MCP Server

ツール

  • Azureリソースの一覧

    • サービス プリンシパル認証を使用して Azure リソース グループとリソースを一覧表示する

    • 入力:

      • subscription_id (文字列、オプション): 照会するサブスクリプションID。指定されていない場合は、環境変数から取得されたデフォルトのサブスクリプションが使用されます。

      • resource_group_filter (文字列、オプション): リソース グループを名前でフィルターします (大文字と小文字は区別されず、一致するものが含まれます)。

    • 返される値: 場所、タイプ、タグなどの詳細を含む、リソース グループとそのリソースのフォーマットされたマークダウン リスト。

  • get_azure_costs_rest

    • REST API を使用して Azure サブスクリプションのコスト分析データを取得する

    • 入力:

      • subscription_id (文字列、オプション): 照会するサブスクリプションID。指定されていない場合は、環境変数から取得されたデフォルトのサブスクリプションが使用されます。

      • timeframe (文字列、オプション):コスト分析の期間。デフォルトは「MonthToDate」です。

    • 戻り値: 日次コストや合計などのコスト分析データを含むフォーマットされたマークダウン。

構成

Azureのセットアップ

  1. 認証用の Azure サービス プリンシパルを作成します。

   az ad sp create-for-rbac --name {service principal name}
  1. サービスプリンシパルに適切なリーダー権限を割り当てる

  2. AzureサブスクリプションID、テナントID、クライアントID、クライアントシークレットをメモします。

  3. 必要な環境変数を設定する

環境変数

このサーバーには次の環境変数が必要です。

# 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_server

Claude 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"
      }
    }
  }
}
F
license - not found
Not graded
quality - not tested
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    An 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
  • A
    license
    Not graded
    quality
    C
    maintenance
    An 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.
    1
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Integrates Azure Cost Management APIs via MCP, enabling cost queries, forecasts, budgets, and Advisor recommendations through natural language in compatible clients.
    9

View all related MCP servers

Related MCP Connectors

  • Official Microsoft MCP Server to query Microsoft Entra data using natural language

  • Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only

  • The MCP server for Azure DevOps, bringing the power of Azure DevOps directly to your agents.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tim10002/mcp-azresource'

If you have feedback or need assistance with the MCP directory API, please join our Discord server