MCP server · Infrastructure

OfficialNot tested yet (sources checked)Read-writeMITUpdated November 2026

Azure MCP Server

Microsoft's official server with 62 Azure tool areas: list, query, create and delete resources as you. Shown here: read-only mode, Azure CLI login.

Quick verdict

The first-party choice for working with Azure from an assistant. Start read-only, signed in with the Azure CLI as an identity holding Reader on a single subscription or resource group, and allow writes only in a sandbox subscription where a wrong create or delete is cheap; never point it at production with Owner or Contributor rights.

  • MaintainerMicrosoft (official)
  • Security scopeRead-write
  • Transportsstdio, streamable-http
  • Install channelnpm · @azure/mcp
  • EvidenceNot tested yet (sources checked)
  • LicenseMIT · Open source

Microsoft's official MCP server for Azure, developed in the microsoft/mcp repository (the earlier Azure/azure-mcp repository is archived). It gives an assistant tools across more than 60 Azure areas: list subscriptions, resource groups and resources, read storage, query Cosmos DB, Data Explorer and Log Analytics, read App Configuration and Key Vault, and get Azure guidance. With writes allowed, which is the default, it can also create and delete virtual machines, disks, SQL servers and databases, create storage accounts, Key Vault secrets and keys, Redis and other resources, run SQL against PostgreSQL and MySQL, send SMS and email, and, through Microsoft's Azure Resource Manager MCP, which it proxies by default, run ARM template deployments. It acts as the signed-in Azure identity, so Azure RBAC decides what it can reach. The configuration shown here runs version 3.0.0 locally with --read-only, which Microsoft documents as its read-only mode and which in the server's code drops every tool not marked read-only, and --disable-proxy-tools, which turns off the tools it proxies from Microsoft Learn docs search, the Azure Resource Manager MCP and the Foundry MCP, and its local Azure Developer CLI launch. It pins sign-in to the Azure CLI so a service principal secret already set in your environment is not used, and turns telemetry off. Read-only mode still returns Key Vault secret values after a confirmation prompt and still allows billed Foundry model calls.

MCP security best practices

Install Azure MCP Server

Needs Node.js 22 or later (the package's engines field is >=22.0.0) and the Azure CLI, signed in with az login before the client starts. The version is pinned to 3.0.0, the current stable release, because npm's latest tag points at a 4.0 beta. --read-only drops every tool not marked read-only; Key Vault secret values can still be read after a confirmation prompt, and Foundry model calls, which are billed, stay available. --disable-proxy-tools turns off the built-in connections to Microsoft Learn docs search, the Azure Resource Manager MCP, the Foundry MCP and a local azd. AZURE_TOKEN_CREDENTIALS=AzureCliCredential keeps a service principal secret already in your environment from being used instead of your az login; if your client ignores env values from the config, start it without AZURE_CLIENT_SECRET set. An AZURE_SUBSCRIPTION_ID or AZURE_CLOUD in your environment changes the default subscription or cloud. Other install paths: the VS Code and Visual Studio extensions, dnx, uvx with msmcp-azure, and a container image that signs in with a service principal.

npx -y @azure/mcp@3.0.0

Config entry (mcpServers)
{
  "mcpServers": {
    "azure-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@azure/mcp@3.0.0",
        "server",
        "start",
        "--read-only",
        "--disable-proxy-tools"
      ],
      "env": {
        "AZURE_TOKEN_CREDENTIALS": "AzureCliCredential",
        "AZURE_MCP_ONLY_USE_BROKER_CREDENTIAL": "false",
        "AZURE_MCP_COLLECT_TELEMETRY": "false"
      }
    }
  }
}

Credentials

NameRequiredWhat it is for
AZURE_TOKEN_CREDENTIALSOptionalNot a secret. Set to AzureCliCredential in this configuration, which pins sign-in to your existing az login session with no fallback, so a service principal secret, VS Code or PowerShell session already present in the client's environment is not used instead. Sign in with az login as an identity holding only the roles you want the assistant to have (Reader for this setup).
AZURE_MCP_ONLY_USE_BROKER_CREDENTIALOptionalNot a secret. Set to false so an inherited true cannot skip the pinned Azure CLI sign-in in favour of the operating system's sign-in broker.
AZURE_MCP_COLLECT_TELEMETRYOptionalNot a secret. Set to false to turn off the telemetry the server sends to Microsoft by default. Remove it to keep Microsoft's default.

Verified configurations

Not run by us yet. This profile is Not tested yet (sources checked): the install channel, config entry, credentials and license were checked against the source and upstream metadata, but no configuration has been installed, discovered and executed in a recorded environment. When one is, it appears here with the eight scope dimensions below.

Best for

Developers and platform engineers already signed in with the Azure CLI who want an assistant to inventory subscriptions and resource groups, read storage and configuration, and run Log Analytics, Data Explorer or Cosmos DB queries while building or debugging on Azure, and teams that later want controlled resource changes in a sandbox subscription.

Why use it

It is Microsoft's own server, generally available since 1.0 (October 2025), MIT-licensed and released often, with the broadest first-party Azure coverage of any MCP server. It has a vendor-documented read-only mode enforced when tools are listed and called, namespace and per-tool filters, a switch for its proxied remote servers, and consent prompts for secret-returning and destructive tools.

Tradeoffs

Writes are on by default: without --read-only an assistant can create billable resources, delete VMs, disks, SQL databases and firewall rules, change database parameters, run SQL, send SMS and email, and deploy ARM templates, with the full RBAC rights of whoever is signed in. Read-only mode relies on each tool's own read-only flag, not on Azure permissions: it still returns Key Vault secret values after a consent prompt and still runs Foundry model calls billed per token and queries that consume Cosmos DB request units or Log Analytics capacity. The default credential chain tries environment variables first, so a service principal secret already exported in your shell silently replaces your own az login identity unless sign-in is pinned. The npm and container latest tags currently install a 4.0 beta, so an unpinned install is not the stable release. Telemetry goes to Microsoft by default. Logs, query results and resource tags are untrusted input that can carry prompt injection. Microsoft says the local server is intended for developer use within your organization.

Upstream state

npm package published · repository active · in the official MCP Registry (active). Lifecycle is derived from a committed upstream snapshot at build time, never authored by hand.

Official MCP Registry name: com.microsoft/azure

Editorial details

EditorCJ ZwartLast updatedNovember 2026Sourcesmicrosoft/mcp Azure MCP Server README: install paths, Docker, proxy and VS Code options, permissions and risk, telemetry; Azure MCP Server command reference: server start options, --read-only, --namespace, --tool, --disable-proxy-tools (3.0.0 tag); Authentication in Azure MCP Server: credential chain, AZURE_TOKEN_CREDENTIALS, broker mode, HTTP auth; Source: CustomChainedCredential (default chain, pinning, broker override); Source: read-only filtering of native commands; Source: proxied MCP servers (Learn, ARM, Foundry, azd); Azure MCP Server CHANGELOG: 1.0.0, 2.0.0, 3.0.0 stable releases and 4.0.0 betas; microsoft/mcp LICENSE (MIT); Azure/azure-mcp README: archived, moved to microsoft/mcp; Microsoft Learn: What is the Azure MCP Server?; Microsoft Learn: Azure MCP Server tools (start parameters, read-only, annotations, elicitation); Official MCP Registry: com.microsoft/azure; npm: @azure/mcp

Grade B: Not tested yet (sources checked). Re-review is due by 2027-02-15. Config entries, credential names and package status can change upstream; verify against the source repository before granting an agent access.

Sources

Related guides

All MCP servers →