HI

hardik-id/azure-resource-graph-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

18 stars 8 forks 品質 85 トレンド 42MIT

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

概要

これは、Azure Resource Graph クエリへのアクセスを提供するモデルコンテキストプロトコル(MCP)サーバーです。 リソースグラフクエリを使用してサブスクリプション全体でAzureリソースに関する情報を取得できます。 - リソースグラフのクエリを使用してAzureリソースをクエリ - デフォルトのクエリはリソースID、名前、タイプ、および場所を返します - カスタムリソースグラフのクエリをサポート - 認証のためにAzure DefaultAzureCredentialを使用します - Node.js のインストール - Azure サブスクリプション - Azure CLI のインストールとログイン、または設定されている他の Azure 認証 Cursor IDE または Visual Studio コードを使用して MCP サーバーを実行できます。 Cursor IDE で MCP サーバーを統合するには: 1。 このリポジトリをローカルマシン(例、C:\YOUR WORKSPACE\azure-resource-graph-mcp-server)にクローンします。 2. プロジェクトの作成: 3. カーソル設定(JSON)を開き、次の設定を追加します。 : ローカルリポジトリの場所に合ったパスを更新してください.

概要(AI 翻訳)

フロー

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

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

##特徴

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

前提条件

  • Node.js をインストール
  • Azureサブスクリプション
  • Azure CLI は、インストールおよびログイン、またはその他の Azure の認証設定

MCP Server の実行

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

##Option 1: カーソル IDE の統合

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

1。 ローカルマシンにこのリポジトリをクローンする(例、[C:\YOUR_WORKSPACE\azure-resource-graph-mcp-server)) 2. プロジェクトのビルド:

  1. カーソル設定(JSON)を開き、次の設定を追加します。

**注記: ローカルリポジトリの場所に合ったパスを更新してください。

  1. 変更を加えるためにカーソル IDE を再始動

##Option 2:VSコードの統合

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Demo

Flow

Azure Resource Graph MCP Server

This is a Model Context Protocol (MCP) server that provides access to Azure Resource Graph queries. It allows you to retrieve information about Azure resources across your subscriptions using Resource Graph queries.

Features

  • Query Azure resources using Resource Graph queries
  • Default query returns resource ID, name, type, and location
  • Supports custom Resource Graph queries
  • Uses Azure DefaultAzureCredential for authentication

Prerequisites

  • Node.js installed
  • Azure subscription
  • Azure CLI installed and logged in, or other Azure credentials configured

Running the MCP Server

You can run the MCP server using either Cursor IDE or Visual Studio Code.

Option 1: Cursor IDE Integration

To integrate the MCP server with Cursor IDE:

  1. Clone this repository to your local machine (e.g., C:\YOUR_WORKSPACE\azure-resource-graph-mcp-server)
  2. Build the project:
npm install
npm run build
  1. Open Cursor Settings (JSON) and add the following configuration:
{
  "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"
      },
    }
  }
}

Note: Make sure to update the path to match your local repository location.

  1. Restart Cursor IDE to apply the changes

Option 2: VS Code Integration

To integrate the MCP server with Visual Studio Code:

  1. Clone this repository to your local machine
  2. Build the project:
npm install
npm run build
  1. Open VS Code Settings (JSON) by pressing Ctrl+Shift+P, type “Settings (JSON)” and select “Preferences: Open User Settings (JSON)”
  2. Add the following configuration:
{
    "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"
                },
            }
        }
    }
}

Note: Make sure to update the path to match your local repository location.

  1. Save the settings.json file
  2. Restart VS Code to apply the changes

The MCP server will now be available to use within VS Code with cursor integration.

Usage

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "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" }, } } }