azure-resource-graph-mcp-server logo

azure-resource-graph-mcp-server此服务器直接将您的 AI 助手连接到 Microsoft Azure 账户,让您只需输入普通问题或自定义搜索,即可快速查找和审阅服务器、数据库及其他云资源。

(0)
Daniel Nikulshyn审阅者 Daniel Nikulshyn·更新 2026年7月

概览

Azure Resource Graph MCP Server 提供对 Azure Resource Graph 查询的访问,帮助用户检索跨订阅的 Azure 资源信息。该 Model Context Protocol 服务器支持自定义 Resource Graph 查询,并使用 Azure DefaultAzureCredential 进行身份验证。它可与 Cursor IDE 或 Visual Studio Code 集成,在这些平台内使用。服务器具备对 Azure 客户端初始化、查询执行及无效查询等潜在问题的完善错误处理。用户可通过 “query-resources” 工具从 Azure Resource Graph 获取资源及其详细信息,支持自定义订阅 ID 和 Resource Graph 查询等参数。使用前需拥有 Azure 订阅并配置好相应的 Azure 凭证以完成身份验证。

主要功能

  • 使用 Resource Graph 查询查询 Azure 资源
  • 默认查询返回资源 ID、名称、类型和位置
  • 支持自定义 Resource Graph 查询
  • 使用 Azure DefaultAzureCredential 进行身份验证

价格

模型
Free
评分
暂无评价

使用场景

云资源管理

通过输入普通问题或自定义搜索查询,快速查找和审阅服务器、数据库及其他云资源。

DevOps 集成

与 Cursor IDE 或 Visual Studio Code 集成,简化 Azure 资源的查询和管理。

优点 & 缺点

优点

  • 简化 Azure 资源查询
  • 支持自定义 Resource Graph 查询
  • 具备健全的错误处理

缺点

  • 需要 Node.js 和 Azure CLI 环境
  • 依赖 Azure 订阅和凭证

评测

登录以留下评测。

暂无评测。来当第一个吧!

问答

What prerequisites must be installed before using this MCP server?

You need Node.js, an Azure subscription, and the Azure CLI installed and logged in (or another method to supply Azure credentials). The server also requires setting the `SUBSCRIPTION_ID` environment variable in the MCP configuration.

Asked by Tomáš Novák · Sep 9, 2025

Can I run custom Resource Graph queries, or am I limited to the default view?

Yes, the `query-resources` tool accepts an optional `query` parameter where you can provide any valid Azure Resource Graph query; if omitted, it runs the default query that returns resource ID, name, type, and location.

Asked by Miriam Cohen · Aug 6, 2025

How do I integrate the server with Visual Studio Code?

Clone the repo, run `npm install && npm run build`, then add a server entry in VS Code’s `settings.json` under `mcp.servers.azure resource graph` pointing to the built `index.js` and set your `SUBSCRIPTION_ID` in the `env` block. Restart VS Code and the MCP server will be available.

Asked by Victor Nguyen · Jul 12, 2025

What authentication method does the Azure Resource Graph MCP Server use?

It uses Azure DefaultAzureCredential, which automatically picks up credentials from the Azure CLI login, environment variables, managed identities, or other supported sources.

Asked by Elena Rossi · Jul 11, 2025

提问

服务配缩器 的替代品