Skip to content
Cloud InfrastructureAuto-generatedScore: 28

Azure Resource Graph Query MCP Server

The Azure Resource Graph Query API is a powerful resource management service provided by Microsoft as part of the Azure platform.

Quick Start Summary

The Azure Resource Graph Query MCP server is a Model Context Protocol bridge that connects AI assistants — including Claude Desktop, Cursor, Windsurf, and VS Code Copilot — to the Azure Resource Graph Query API through natural language. It exposes 5 API endpoints as callable tools, such as GraphQuery_List, GraphQuery_Get, GraphQuery_CreateOrUpdate, and more. No authentication is required — setup takes approximately 30 seconds. The server uses STDIO transport and can be installed by running npx -y @mcp/azure-com-resourcegraph-graphquery. This integration is sourced from the auto Azure Resource Graph Query OpenAPI specification (v2018-09-01-preview) and has a quality score of 28/99 (fair documentation coverage).

5Endpointstools mapped
NoneAuthopen access
28/99Qualityfair
~30 secSetupno auth

Server Details

Category
Cloud Infrastructure
Authentication
None
Endpoints
5 operations
Transport
STDIO
Spec Version
v2018-09-01-preview
Install Command
npx -y @mcp/azure-com-resourcegraph-graphquery

Environment Variables

AZURE_RESOURCE_GRAPH_QUERY_API_KEY

Example: your_azure_resource_graph_query_api_key

Top Endpoints

GET
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries

GraphQuery_List

GET
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}

GraphQuery_Get

PUT
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}

GraphQuery_CreateOrUpdate

DELETE
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}

GraphQuery_Delete

PATCH
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ResourceGraph/queries/{resourceName}

GraphQuery_Update

Own this API?

Verify ownership of this listing to control the description, configuration details, and documentation links. Choose between free manual verification or instant premium placement.

Option 1: Free Verification

Slow manual review. Requires creating a GitHub issue with verified documentation or domain verification.

  • • Verified badge on page
  • • Standard search sorting
  • • 2-3 business days review
Start Free Claim →
Instant & Boosted

Option 2: Featured Upgrade($9/mo)

Instant verification plus premium styling, featured badges, and directory placement boost.

  • • ★ Featured star & amber highlight border
  • • Top of directory search placement
  • • Instant activation via claim token

📖 Detailed MCP Integration Guide

A technical breakdown of capabilities, agent workflows, and security/configuration best practices.

Capabilities & Use Cases
The Azure Resource Graph Query API is a powerful resource management service provided by Microsoft as part of the Azure platform. It enables developers, DevOps engineers, and cloud architects to run complex, cross-subscription queries against their Azure resource inventory using a Kusto Query Language (KQL)-based syntax. This API allows for the programmatic creation, retrieval, updating, and deletion of saved queries, which are persistent query objects stored within a specific Azure resource group. Its core capability lies in its ability to fetch and analyze metadata about any resource in an Azure environment, making it indispensable for large-scale cloud governance, cost optimization, resource inventory management, and compliance auditing. Typical enterprise use cases include generating real-time reports on resource sprawl, identifying underutilized VMs for right-sizing, validating tagging policies across hundreds of subscriptions, and automating the collection of security posture data for compliance frameworks.
🤖AI Agent Value
When this API is exposed as a tool via the Model Context Protocol (MCP) to an AI coding assistant like Claude Desktop, Cursor, or Cline, it transforms from a static reference into a dynamic, interactive engine for cloud infrastructure automation. The AI agent can leverage the MCP server to not only read documentation but to actively execute lifecycle management operations. This provides immense value by bridging the gap between natural language intent and precise API calls. For instance, a developer can instruct the AI to "find all my unattached managed disks in the production subscription and delete them," and the AI can translate this into a sequence: first, formulate and execute a Resource Graph query via the MCP tool to identify the specific resources based on a defined criteria, and then potentially trigger a separate action or provide the results for approval. This turns the AI into a cloud operations copilot, capable of performing complex inventory analysis and resource management tasks through conversation.
💬Example Workflows
Practical workflows enabled by this integration are numerous and highly dynamic. A developer can instruct the AI agent to "query all resources that are missing the mandatory 'Environment' tag and generate a list of their owners for a cleanup campaign." The AI would use the MCP tool to run the appropriate Resource Graph query, parse the results, and present a structured report. Another example is, "Update my saved query named 'High-Cost-VMs' to now include metrics for CPU utilization over the last 7 days." The AI agent would retrieve the current query definition via the GET endpoint, modify the KQL syntax in the query body, and then use the PUT endpoint to persist the updated version. It can also manage query lifecycle by creating new saved queries for recurring tasks or deleting obsolete ones, fully automating what would otherwise be manual, repetitive portal or script-based operations.
🛡️Security & Auth
Critical to the security and proper configuration of this API is the authentication mechanism. The listed endpoints operate under Azure Resource Manager (ARM) authentication, typically using Azure Active Directory (now Microsoft Entra ID) tokens. However, the description's mention of "None" likely refers to the authentication for the MCP server itself, not the underlying API calls. Developers must ensure the MCP server is configured with a robust identity, such as a managed identity or a service principal, with the principle of least privilege applied. This identity requires the "Microsoft.Authorization/roleAssignments/read" and appropriate resource provider permissions, and should be granted the "Reader" or a custom role with "Microsoft.ResourceGraph/queries/read" permissions at the relevant scope (subscription or resource group) for read operations. For create/update/delete operations, the "Contributor" role or a more granular custom role with write permissions will be necessary. All interactions must be conducted over secure, authenticated channels, and the MCP server's endpoint must be protected to prevent unauthorized access to these powerful cloud management capabilities.

Similar APIs

Other APIs in the Cloud Infrastructure category.

Related MCP Server Integrations

Supabase API MCP Setup

Manage Supabase projects, databases, authentication, and storage through your AI agent.

Cloud InfrastructureConfigure →

Cloudflare API MCP Setup

Manage Cloudflare DNS, CDN, Workers, and security settings through your AI agent.

Cloud InfrastructureConfigure →

Vercel API MCP Setup

Deploy projects, manage domains, and monitor deployments through your AI agent.

Cloud InfrastructureConfigure →

DigitalOcean API MCP Setup

The DigitalOcean API is a comprehensive, RESTful interface provided by DigitalOcean, a leading cloud infrastructure provider focused on simplifying cloud computing for developers, startups, and enterprises. It serves as the programmatic backbone for managing the entire DigitalOcean ecosystem, enabling users to provision, configure, and control cloud resources such as Droplets (virtual private servers), Kubernetes clusters, managed databases, networks, storage volumes, and application platforms. Core capabilities include full lifecycle management of these resources, from creation and scaling to monitoring and deletion, mirroring the functionality available in the DigitalOcean control panel. Its primary use cases range from automating infrastructure setup for CI/CD pipelines and enabling infrastructure-as-code practices to supporting dynamic application scaling and resource optimization for SaaS products, e-commerce sites, and development environments. The API is designed for both developers seeking to automate their cloud operations and businesses that require programmable, scalable cloud infrastructure without the complexity of larger hyperscale providers.

Cloud InfrastructureConfigure →

Access Analyzer MCP Setup

The AWS Identity and Access Management Access Analyzer API provides a powerful, policy-as-code service that automatically identifies resources accessible from outside your AWS account or organization. At its core, the service continuously evaluates resource-based policies—such as Amazon S3 bucket policies, AWS Identity and Access Management (IAM) roles, Amazon KMS key policies, and AWS Lambda function policies—using logic-based reasoning to determine which resources grant access to unknown external principals. Its primary use case is for security and compliance teams within enterprises to proactively detect unintended data exposure, enforce least privilege principles, and audit cross-account and cross-service access. The API endpoints allow programmatic control to create, configure, and query analyzers, manage archive rules for storing findings, and generate custom policy documents, making it a foundational tool for automating cloud security posture management at scale.

Cloud InfrastructureConfigure →