# Azure

> Azure is an open-source MCP server for cloud and infrastructure. Python MCP server connecting AI clients to Azure services via service principal auth. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted, API
- **Repository:** https://github.com/asklokesh/azure-mcp-server
- **MCP Registry name:** io.github.asklokesh/azure-mcp-server
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-11-18

## About

The README describes a Python package that exposes Azure cloud services to MCP-compatible AI clients, so models can reach Azure APIs through standard tool calls. Setup is a pip install, with the Azure subscription, tenant and service principal credentials supplied as environment variables.

The registry entry lists four required settings: a subscription ID, tenant ID, client ID and client secret, which the server uses for authentication over stdio transport. The README also mentions multiple authentication methods, async operation and retry handling, though it does not list the individual Azure services or tools covered.

It suits developers who want an AI assistant to query or manage their Azure environment and are comfortable wiring up service principal credentials. The project is early (version 0.1.0) and the README is sparse, so checking the code for supported operations is advisable before relying on it.

## Features

- **Stdio transport support:** Runs as a local stdio process that MCP clients can launch directly.
- **Service principal authentication:** Authenticates to Azure with a subscription, tenant, client ID and client secret.
- **Async request handling:** The README says the server supports asynchronous operation for better throughput.
- **Retry and error handling:** Includes retry logic and error handling for Azure API calls, per the README.
- **Python package install:** Installable from PyPI or from source with pip.

## Good for

- Asking an AI assistant to inspect Azure resources in a subscription
- Letting an agent automate routine Azure administration tasks
- Prototyping GenAI workflows that read from Azure cloud services

## Install

### Claude Code (Terminal)

```sh
claude mcp add azure-mcp-server --env AZURE_SUBSCRIPTION_ID='<AZURE_SUBSCRIPTION_ID>' --env AZURE_CLIENT_ID='<AZURE_CLIENT_ID>' --env AZURE_CLIENT_SECRET='<AZURE_CLIENT_SECRET>' --env AZURE_TENANT_ID='<AZURE_TENANT_ID>' -- uvx azure-mcp-server
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "azure-mcp-server": {
      "command": "uvx",
      "args": [
        "azure-mcp-server"
      ],
      "env": {
        "AZURE_SUBSCRIPTION_ID": "<AZURE_SUBSCRIPTION_ID>",
        "AZURE_CLIENT_ID": "<AZURE_CLIENT_ID>",
        "AZURE_CLIENT_SECRET": "<AZURE_CLIENT_SECRET>",
        "AZURE_TENANT_ID": "<AZURE_TENANT_ID>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "azure-mcp-server": {
      "command": "uvx",
      "args": [
        "azure-mcp-server"
      ],
      "env": {
        "AZURE_SUBSCRIPTION_ID": "<AZURE_SUBSCRIPTION_ID>",
        "AZURE_CLIENT_ID": "<AZURE_CLIENT_ID>",
        "AZURE_CLIENT_SECRET": "<AZURE_CLIENT_SECRET>",
        "AZURE_TENANT_ID": "<AZURE_TENANT_ID>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "azure-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "azure-mcp-server"
      ],
      "env": {
        "AZURE_SUBSCRIPTION_ID": "<AZURE_SUBSCRIPTION_ID>",
        "AZURE_CLIENT_ID": "<AZURE_CLIENT_ID>",
        "AZURE_CLIENT_SECRET": "<AZURE_CLIENT_SECRET>",
        "AZURE_TENANT_ID": "<AZURE_TENANT_ID>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "azure-mcp-server": {
      "command": "uvx",
      "args": [
        "azure-mcp-server"
      ],
      "env": {
        "AZURE_SUBSCRIPTION_ID": "<AZURE_SUBSCRIPTION_ID>",
        "AZURE_CLIENT_ID": "<AZURE_CLIENT_ID>",
        "AZURE_CLIENT_SECRET": "<AZURE_CLIENT_SECRET>",
        "AZURE_TENANT_ID": "<AZURE_TENANT_ID>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "azure-mcp-server": {
      "command": "uvx",
      "args": [
        "azure-mcp-server"
      ],
      "env": {
        "AZURE_SUBSCRIPTION_ID": "<AZURE_SUBSCRIPTION_ID>",
        "AZURE_CLIENT_ID": "<AZURE_CLIENT_ID>",
        "AZURE_CLIENT_SECRET": "<AZURE_CLIENT_SECRET>",
        "AZURE_TENANT_ID": "<AZURE_TENANT_ID>"
      }
    }
  }
}
```

## FAQ

### What credentials does it need?

The registry entry lists AZURE_SUBSCRIPTION_ID, AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET as required environment variables.

### How is it installed?

The README gives pip install azure-mcp-server, or an editable install from the GitHub source.

### What license does it use?

The README states the project is released under the MIT License.

### Is Azure free?

Yes. Azure is open source, so you can use and self-host it for free.

### How do I add Azure to Claude Code?

Run this command in your terminal: claude mcp add azure-mcp-server --env AZURE_SUBSCRIPTION_ID='<AZURE_SUBSCRIPTION_ID>' --env AZURE_CLIENT_ID='<AZURE_CLIENT_ID>' --env AZURE_CLIENT_SECRET='<AZURE_CLIENT_SECRET>' --env AZURE_TENANT_ID='<AZURE_TENANT_ID>' -- uvx azure-mcp-server

### What are the best alternatives to Azure?

The closest alternatives to Azure are mcp, Azure MCP Server, MCP Acedatacloud, Compare Cloud Costs and Rancher.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [mcp](https://ai-powered.com/mcp/mcp-mwfu4c84): mcp is an open-source MCP server for cloud and infrastructure.
- [Azure MCP Server](https://ai-powered.com/mcp/azure-mcp-server): Azure MCP Server is an open-source MCP server for cloud and infrastructure.
- [MCP Acedatacloud](https://ai-powered.com/mcp/mcp-acedatacloud): MCP Acedatacloud is an open-source MCP server for cloud and infrastructure.
- [Compare Cloud Costs](https://ai-powered.com/mcp/compare-cloud-costs): Compare Cloud Costs is a freemium MCP server for cloud and infrastructure.
- [Rancher](https://ai-powered.com/mcp/rancher): Rancher is an open-source MCP server for cloud and infrastructure.
- [Azure DevOps Server (formerly TFS)](https://ai-powered.com/mcp/azure-devops-server-formerly-tfs): Azure DevOps Server (formerly TFS) is an open-source MCP server for cloud and infrastructure.
- [StackQL MCP Server](https://ai-powered.com/mcp/stackql-mcp-server): StackQL MCP Server is an open-source MCP server for cloud and infrastructure.

---
Source: https://ai-powered.com/mcp/azure
