# Azure MCP server

> Connects AI agents to Azure services so they can inspect and manage cloud resources from a chat client.

- Repository: https://github.com/microsoft/mcp
- Page: https://hostedmcp.org/servers/microsoft/azure
- Official: yes
- Transport: stdio
- Stars: 3850
- License: MIT
- Latest version: 3.0.0-beta.48

## Install

### Claude Code

```sh
claude mcp add azure -- npx -y @azure/mcp
```

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

```json
{
  "mcpServers": {
    "azure": {
      "command": "npx",
      "args": [
        "-y",
        "@azure/mcp"
      ]
    }
  }
}
```

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

```json
{
  "servers": {
    "azure": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@azure/mcp"
      ]
    }
  }
}
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "azure": {
      "command": "npx",
      "args": [
        "-y",
        "@azure/mcp"
      ]
    }
  }
}
```

### Codex (`~/.codex/config.toml`)

```toml
[mcp_servers.azure]
command = "npx"
args = ["-y", "@azure/mcp"]
```

### Gemini CLI (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "azure": {
      "command": "npx",
      "args": [
        "-y",
        "@azure/mcp"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `AZURE_CLIENT_ID` | no | no |  |
| `AZURE_CLIENT_SECRET` | no | no |  |
| `AZURE_MCP_COLLECT_TELEMETRY` | no | no |  |
| `AZURE_MCP_COLLECT_TELEMETRY_MICROSOFT` | no | no |  |
| `AZURE_TENANT_ID` | no | no |  |

## FAQ

### How do I install Azure MCP Server in VS Code?

Install the GitHub Copilot Chat extension, then the Azure MCP Server extension, and sign in to Azure via the command palette.

### What languages or runtimes can I get Azure MCP Server from?

It is distributed through NuGet, NPM, PyPI, Docker, and MCPB package managers.

### Does Azure MCP Server support read-only mode?

Yes, read-only mode can be enabled with the readOnly setting to prevent write operations.

### Do I need to authenticate to Azure before running the server?

Yes, you should authenticate to Azure before running the Azure MCP server.

### Does Azure MCP Server support sovereign clouds?

Yes, the documentation includes a sovereign cloud support section.
