mcp-azure

v0.3.0
io.github.dockndevai/mcp-azure Checked 2 days ago Published 2 months ago

Azure Resource Manager inventory & ops for AI agents — governed, confirmation-gated.

Values you need

VariableWhat it is
AZURE_TENANT_IDrequired Entra ID tenant id.
AZURE_CLIENT_IDrequired App registration (service principal) client id.
AZURE_CLIENT_SECRETrequired secret Service principal client secret.
AZURE_SUBSCRIPTION_IDoptional Default subscription id.
AZURE_MODEoptional Access mode: read-only | read-write | admin.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add mcp-azure -e 'AZURE_CLIENT_ID=<AZURE_CLIENT_ID>' -e 'AZURE_CLIENT_SECRET=<AZURE_CLIENT_SECRET>' -e 'AZURE_TENANT_ID=<AZURE_TENANT_ID>' -- npx -y @dockndevai/mcp-azure@0.3.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "mcp-azure": {
      "args": [
        "-y",
        "@dockndevai/mcp-azure@0.3.0"
      ],
      "command": "npx",
      "env": {
        "AZURE_CLIENT_ID": "<AZURE_CLIENT_ID>",
        "AZURE_CLIENT_SECRET": "<AZURE_CLIENT_SECRET>",
        "AZURE_TENANT_ID": "<AZURE_TENANT_ID>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-azure": {
      "args": [
        "-y",
        "@dockndevai/mcp-azure@0.3.0"
      ],
      "command": "npx",
      "env": {
        "AZURE_CLIENT_ID": "<AZURE_CLIENT_ID>",
        "AZURE_CLIENT_SECRET": "<AZURE_CLIENT_SECRET>",
        "AZURE_TENANT_ID": "<AZURE_TENANT_ID>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "AZURE_CLIENT_ID",
      "id": "azure-client-id",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "AZURE_CLIENT_SECRET",
      "id": "azure-client-secret",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "AZURE_TENANT_ID",
      "id": "azure-tenant-id",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "mcp-azure": {
      "args": [
        "-y",
        "@dockndevai/mcp-azure@0.3.0"
      ],
      "command": "npx",
      "env": {
        "AZURE_CLIENT_ID": "${input:azure-client-id}",
        "AZURE_CLIENT_SECRET": "${input:azure-client-secret}",
        "AZURE_TENANT_ID": "${input:azure-tenant-id}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.mcp-azure]
command = "npx"
args = ["-y", "@dockndevai/mcp-azure@0.3.0"]
env = { "AZURE_CLIENT_ID" = "<AZURE_CLIENT_ID>", "AZURE_CLIENT_SECRET" = "<AZURE_CLIENT_SECRET>", "AZURE_TENANT_ID" = "<AZURE_TENANT_ID>" }

For AI agents

  1. Ask the user for: AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: list_subscriptions, list_locations, list_resource_groups, list_resources, get_resource.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json