Skip to main content
Glama

Azure Resource Graph MCP Server

デモ

MCP サーバーデモ

流れ

リクエストフロー

Azure リソース グラフ MCP サーバー

これは、Azure Resource Graph クエリへのアクセスを提供するモデルコンテキストプロトコル (MCP) サーバーです。これにより、Resource Graph クエリを使用して、サブスクリプション全体の Azure リソースに関する情報を取得できます。

特徴

  • Resource Graph クエリを使用して Azure リソースをクエリする
  • デフォルトのクエリはリソースID、名前、タイプ、場所を返します
  • カスタムリソースグラフクエリをサポート
  • 認証にはAzure DefaultAzureCredentialを使用します

前提条件

  • Node.jsがインストールされている
  • Azureサブスクリプション
  • Azure CLI がインストールされログインしているか、その他の Azure 資格情報が構成されている

MCPサーバーの実行

MCP サーバーは、Cursor IDE または Visual Studio Code を使用して実行できます。

オプション1: カーソルIDE統合

MCP サーバーを Cursor IDE と統合するには:

  1. このリポジトリをローカル マシンにクローンします (例: C:\YOUR_WORKSPACE\azure-resource-graph-mcp-server )
  2. プロジェクトをビルドします。
npm install npm run build
  1. カーソル設定 (JSON) を開き、次の構成を追加します。
{ "mcpServers": { "azure-resource-graph-mcp-server": { "command": "node", "args": [ "C:\\YOUR_WORKSPACE\\azure-resource-graph-mcp-server\\build\\index.js" ], "env": { "SUBSCRIPTION_ID": "xxxxxx-xx-xx-xx-xxxxxx" }, } } }

: ローカル リポジトリの場所と一致するようにパスを更新してください。

  1. 変更を適用するには、カーソル IDE を再起動します。

オプション2: VS Code統合

MCP サーバーを Visual Studio Code と統合するには:

  1. このリポジトリをローカルマシンにクローンします
  2. プロジェクトをビルドします。
npm install npm run build
  1. Ctrl+Shift+Pを押して VS Code 設定 (JSON) を開き、「設定 (JSON)」と入力して、「設定: ユーザー設定 (JSON) を開く」を選択します。
  2. 次の構成を追加します。
{ "mcp": { "servers": { "azure-resource-graph": { "type": "stdio", "command": "node", "args": [ "C:\\YOUR_WORKSPACE\\azure-resource-graph-mcp-server\\build\\index.js" ], "env": { "SUBSCRIPTION_ID": "xxxxxx-xx-xx-xx-xxxxxx" }, } } } }

: ローカル リポジトリの場所と一致するようにパスを更新してください。

  1. 設定.jsonファイルを保存する
  2. 変更を適用するにはVS Codeを再起動してください。

MCP サーバーは、カーソル統合により VS Code 内で使用できるようになります。

使用法

サーバーは次のツールを提供します。

クエリリソース

Azure Resource Graph からリソースとその詳細を取得します。

パラメータ:

  • subscriptionId (オプション): Azure サブスクリプション ID (デフォルトは構成された ID)
  • query (オプション): カスタム リソース グラフ クエリ (デフォルトは「リソース | プロジェクト ID、名前、タイプ、場所」)

環境設定

  1. まず、次のコマンドを実行して、Azure CLI にログインしていることを確認します。
    az login
    DefaultAzureCredential によって Azure CLI 資格情報が自動的に使用されるため、この手順はローカル開発にとって重要です。
  2. 環境変数を設定します。
    • .env.example.envにコピーする
    • .envAZURE_SUBSCRIPTION_ID実際のサブスクリプション ID に更新します。
    • Azure CLI 認証を使用する場合、その他の変数 ( AZURE_TENANT_IDAZURE_CLIENT_IDAZURE_CLIENT_SECRET ) はオプションです。
  3. 適切なAzure認証情報が設定されていることを確認してください。サーバーはDefaultAzureCredentialを使用しており、以下をサポートしています。
    • Azure CLI
    • マネージドID
    • Visual Studio Code の資格情報
    • 環境変数
  4. 環境変数を使用する場合は、以下を設定します。
    • AZURE_サブスクリプション_ID
    • AZURE_テナント_ID
    • AZURE_クライアントID
    • AZURE_クライアント_シークレット

エラー処理

サーバーには、次の堅牢なエラー処理機能が含まれています。

  • Azure クライアントの初期化エラー
  • クエリ実行エラー
  • 無効なクエリまたはパラメータ

発達

このプロジェクトに取り組むには:

  1. srcディレクトリに変更を加える
  2. npm run buildを使用してビルドする
  3. サーバーを実行して変更をテストします

ライセンス

このプロジェクトはMITライセンスの下で提供されています。詳細はLICENSEファイルをご覧ください。

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Azure Resource Graph を使用して Azure リソースを大規模にクエリおよび分析し、AI アシスタントが Azure インフラストラクチャを探索および監視できるようにするモデル コンテキスト プロトコル サーバー。

  1. 流れ
    1. Azure リソース グラフ MCP サーバー
      1. 特徴
      2. 前提条件
      3. MCPサーバーの実行
      4. 使用法
      5. 環境設定
      6. エラー処理
      7. 発達
      8. ライセンス

    Related MCP Servers

    • A
      security
      A
      license
      A
      quality
      This server provides a convenient API for interacting with Azure DevOps services, enabling AI assistants and other tools to manage work items, code repositories, boards, sprints, and more. Built with the Model Context Protocol, it provides a standardized interface for communicating with Azure DevOps
      Last updated -
      96
      36
      TypeScript
      MIT License
    • A
      security
      A
      license
      A
      quality
      A Model Context Protocol server that enables AI assistants to interact with Azure DevOps resources including projects, work items, repositories, pull requests, branches, and pipelines through a standardized protocol.
      Last updated -
      15
      950
      257
      TypeScript
      MIT License
      • Linux
      • Apple
    • -
      security
      F
      license
      -
      quality
      A reference server implementation for the Model Context Protocol that enables AI assistants to interact with Azure DevOps resources and perform operations such as project management, work item tracking, repository operations, and code search programmatically.
      Last updated -
      3
      TypeScript
    • A
      security
      A
      license
      A
      quality
      A Model Context Protocol server that enables AI assistants to interact with Azure DevOps services, allowing users to query work items with plans to support creating/updating items, managing pipelines, handling pull requests, and administering sprints and branch policies.
      Last updated -
      9
      50
      Python
      MIT License
      • Linux
      • Apple

    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/hardik-id/azure-resource-graph-mcp-server'

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