AzResource MCP Server

Enables querying and listing Azure resources and costs directly from an MCP client.

Local serverstdioPython★ 3

What is the AzResource MCP Server?

Enables querying and listing Azure resources and costs directly from an MCP client.

What it actually does

  1. Create an Azure service principal for authentication: bash az ad sp create-for-rbac --name {service principal name} 2. Assign appropriate reader permissions to the service principal 3. Note your Azure subscription ID, tenant ID, client ID, and client secret 4. Set up the required environment variables
  • 📊 Resource Discovery - List all resources across your Azure subscriptions
  • 🔍 Filtering - Filter resources by resource group name
  • 💰 Cost Analysis - Retrieve cost information for your Azure subscriptions
  • 🔐 Secure - Uses your Azure service principal credentials
  • 🏷️ Detailed View - See locations, types, and tags for all your resources

Configuration

  • Python 3.10+ - Azure subscription with appropriate permissions - Service principal with reader access to resources

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_azure_resourcesList Azure resource groups and resources using service principal authentication
get_azure_costs_restGet cost analysis data for an Azure subscription using the REST API

Configuration

  • Python 3.10+ - Azure subscription with appropriate permissions - Service principal with reader access to resources
VariableDescriptionRequired
AZURE_TENANT_IDConfiguration value read at startup.Optional
AZURE_CLIENT_IDConfiguration value read at startup.Optional
AZURE_CLIENT_SECRETCredential the server authenticates with.Yes
AZURE_SUBSCRIPTION_IDConfiguration value read at startup.Optional

Example prompts to try

  • “Use AzResource to list azure resources.”
  • “Use AzResource to Inputs.”
  • “Use AzResource to Returns.”

Frequently asked questions

AzResource is an MCP server that allows you to query and list your Azure resources and costs directly from an MCP client, streamlining your cloud infrastructure management.