Skip to main content
Glama

Azure Resource MCP Server

by tim10002

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のセットアップ

  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" } } } }
-
security - not tested
F
license - not found
-
quality - not tested

Related MCP Servers

  • -
    security
    A
    license
    -
    quality
    An MCP server that provides access to Azure Data Explorer (ADX) clusters, allowing users to list tables, execute queries, and retrieve schema information.
    Last updated -
    1
    MIT License
  • -
    security
    -
    license
    -
    quality
    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...
    Last updated -
    81
    MIT License
    • Linux
    • Apple
  • A
    security
    A
    license
    A
    quality
    A 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 -
    1
    13
    MIT License
    • Linux
    • Apple
  • -
    security
    A
    license
    -
    quality
    An MCP server for interacting with Azure. Contains some common Compute and Networking actions, and extensible to add many more.
    Last updated -
    1
    Apache 2.0

View all related MCP servers

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