Cloud · MODEL CONTEXT PROTOCOL
hardik id azure resource graph mcp server
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.
WHAT IT CONNECTS
What hardik id azure resource graph mcp server gives an AI Agent
- 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
- Node.js installed
- Azure subscription
- Azure CLI installed and logged in, or other Azure credentials configured
- Clone this repository to your local machine (e.g., `C:\YOUR_WORKSPACE\azure-resource-graph-mcp-server`)
- Build the project:
- Open Cursor Settings (JSON) and add the following configuration:
- Restart Cursor IDE to apply the changes
- Clone this repository to your local machine
- Build the project:
- Open VS Code Settings (JSON) by pressing `Ctrl+Shift+P`, type "Settings (JSON)" and select "Preferences: Open User Settings (JSON)"
- Add the following configuration:
- Save the settings.json file
- Restart VS Code to apply the changes
- `subscriptionId` (optional): Azure subscription ID (defaults to configured ID)
- `query` (optional): Custom Resource Graph query (defaults to "Resources | project id, name, type, location")
- First, make sure you're logged in to Azure CLI by running:
- Set up your environment variables:
- Copy `.env.example` to `.env`
- Update `AZURE_SUBSCRIPTION_ID` in `.env` with your actual subscription ID
- Other variables (`AZURE_TENANT_ID`, `AZURE_CLIENT_ID`, `AZURE_CLIENT_SECRET`) are optional when using Azure CLI authentication
- Make sure you have proper Azure credentials configured. The server uses DefaultAzureCredential which supports:
- Azure CLI
- Managed Identity
- Visual Studio Code credentials
- Environment variables
- If using environment variables, set up:
- AZURE_SUBSCRIPTION_ID
- AZURE_TENANT_ID
- AZURE_CLIENT_ID
- AZURE_CLIENT_SECRET
- Azure client initialization failures
- Query execution errors
- Invalid queries or parameters
- Make changes in the `src` directory
- Build using `npm run build`
- Test your changes by running the server
SECURITY
An MCP listing is not a security review
An MCP server may receive model context, credentials, local files, or permission to call external systems. Review its code, requested environment variables, network behavior, package provenance, and maintenance status before connecting it to an agent.