AccuroAI
Book a demo

Resources / MCP Server Risk Directory / Azure MCP Server

Is the Azure MCP Server safe? Risks, permissions and safe setup

Azure developers and platform teams using Copilot, Claude Code or other agents to query and manage Azure resources. Here is what an AI agent can do through it, its published vulnerabilities and how to set it up safely.

Baseline risk

60High
  • Capabilities: 40 of 40
  • Read-plus-exfiltrate: +20
  • Hidden instructions (publicly verified): none known
  • Third-party publisher: no (official)

Before your own factors: version pinning, number of users and policy coverage. How we score

Maker
Microsoft
Publisher
Official (published by the maker)
Runs
Local (runs on the device)
Transport
stdio, streamable-http
Authentication
Azure Identity SDK credentials of the signed-in user (Azure CLI sign-in locally) or a service principal via AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET; Entra ID recommended for securing HTTP deployments; incoming HTTP auth on by default
Tools
Not documented as a count
Built-in limits
--read-only (only read operations, all modes); --namespace <name> (repeatable); --tool <name> (expose specific tools); --mode namespace|consolidated|all|single (default namespace); dangerous opt-outs: --dangerously-disable-elicitation, --dangerously-disable-http-incoming-auth, --dangerously-disable-ssrf-protections-by-namespace
License
MIT
Source
github.com/microsoft/mcp/tree/main/servers/Azure.Mcp.Server
Last verified
2026-11-23

What an agent can do through it

Changes cloud infrastructure · 15Reads and writes databases · 15Fetches arbitrary URLs · 15
ToolTypeWhat it does
azmcp keyvault secret getReadRetrieves a Key Vault secret (requires user consent)
azmcp keyvault secret createWriteCreates a Key Vault secret (prompts for user consent)
azmcp cosmos database container item queryReadQueries items in a Cosmos DB container
azmcp postgres database queryReadRuns a query against an Azure Database for PostgreSQL database
azmcp compute vm deleteDeleteDeletes a virtual machine
azmcp compute disk deleteDeleteDeletes a managed disk
azmcp role assignment listReadLists RBAC role assignments at a scope
azmcp extension cli generateExecuteGenerates Azure CLI commands for a request
azmcp fileshares fileshare deleteDeleteDeletes an Azure file share

Read-plus-exfiltrate: this server can both read sensitive data and send data out, so a single prompt injection in content the agent reads could move private data to an outside party without any other server involved.

Known vulnerabilities

IDIssuePublishedFixed in
CVE-2026-26118
High (Microsoft CVSS 3.1 8.8)
Azure MCP Server Tools Elevation of Privilege Vulnerability (server-side request forgery, CWE-918) Affected: Azure MCP Server Tools 1.0.0 to before 1.0.2 (npm, NuGet); 2.0.0-beta.1 to before 2.0.0-beta.17 (npm, NuGet, PyPI).2026-03-101.0.2 and 2.0.0-beta.17
CVE-2026-32211
Critical (Microsoft CVSS 3.1 9.1); NVD 7.5 High
Azure MCP Server Information Disclosure Vulnerability (missing authentication for critical function, CWE-306) Affected: Not stated in the NVD record (CPE lists Microsoft Azure Web Apps).2026-04-03See advisory

Main risks

Destructive actions under the signed-in identity

ASI03 Identity and Privilege Abuse

The server acts with whatever Azure RBAC the user or service principal holds, and the README warns autonomous or misconfigured clients may perform destructive actions. Delete commands such as compute vm delete and fileshares fileshare delete are exposed unless --read-only is set.

Secrets pulled into model context

LLM02:2025 Sensitive Information Disclosure

keyvault secret get returns secret values to the agent once the user consents. With --dangerously-disable-elicitation those consent prompts disappear entirely.

Prompt injection from Azure data

LLM01:2025 Prompt Injection

Query tools for Cosmos DB, PostgreSQL, MySQL, Monitor and logs return content that outside parties may have written. That content can steer the agent to read secrets or change resources in the same session.

Server-side request forgery and unauthenticated HTTP exposure

ASI02 Tool Misuse and Exploitation

CVE-2026-26118 (SSRF) and CVE-2026-32211 (missing authentication) show the server itself has been an attack path. Options that disable SSRF protections or HTTP incoming auth reopen that exposure.

How to set it up safely

  1. Upgrade past 2.0.0-beta.17 (or 1.0.2 on the 1.x line) and apply Microsoft's fix for CVE-2026-32211
  2. Start with --read-only unless writes are required
  3. Limit exposure with --namespace (for example only monitor or storage) or --tool for specific tools
  4. Use an identity with least-privilege RBAC roles scoped to the needed resource groups, not Owner or Contributor on the subscription
  5. Never use --dangerously-disable-elicitation, --dangerously-disable-http-incoming-auth or --dangerously-disable-ssrf-protections-by-namespace outside isolated test setups
  6. For HTTP deployments use Entra ID authentication and network isolation, per Microsoft guidance
  7. Pin a reviewed package or image version instead of @azure/mcp@latest or the :latest container
  8. Avoid --dangerously-write-support-logs-to-dir, which may capture sensitive data; disable telemetry with AZURE_MCP_COLLECT_TELEMETRY=false if required

How we score

Baseline scores use the method from our guide to scoring every MCP server on employee laptops. Score the servers in your own environment with the free MCP Server Risk Checklist.

1. What the server can do (capped at 40)

  • Sends messages externally: 15
  • Fetches arbitrary URLs: 15
  • Writes to code repositories: 15
  • Reads and writes databases: 15
  • Writes or deletes local files: 10
  • Automates a browser: 10
  • Reads and writes SaaS data: 10
  • Reads local files: 5
  • Runs code or commands: 15 (added for this directory)
  • Changes cloud infrastructure: 15 (added for this directory)
  • Moves money or changes payments: 15 (added for this directory)

2. What we found

  • Read-plus-exfiltrate: reads sensitive data and can also send data out: 20
  • Hidden instructions in a tool description (publicly verified): 30, and always Critical
  • Third-party: not published by the maker of the system it connects to: 10

3. Band

0–24 Low · 25–49 Medium · 50–74 High · 75–100 Critical.

This is a baseline. The full method also adds points for unpinned package versions, how many employees use the server and whether a policy covers it; those depend on your setup, so check them in your own environment.

How AccuroAI helps

The AccuroAI Endpoint Agent finds the MCP servers configured in AI clients on managed devices and lists the tools each local server exposes. Each server gets a risk level with its capabilities, and you can block a server once in the console to enforce the block on every device: Claude Code and Cursor refuse calls to it, and for other clients the agent stops the server process. Tool calls from coding agents can be graded by risk, then allowed, confirmed with the employee or blocked.

MCP security · MCP server inventory · How to red team an MCP server

Questions about the Azure MCP Server

Is the Azure MCP Server safe to use?

It can be, with the right setup. At baseline it scores 60 (High) in the AccuroAI method because an agent using it can changes cloud infrastructure, reads and writes databases, fetches arbitrary urls. Limit its scopes or tools, keep a person in the loop for write actions and pin the version you reviewed.

Does the Azure MCP Server have known vulnerabilities?

Yes. 2 published issues are listed on this page with the affected versions and the fix, as of 2026-11-23. Update to a fixed version and check the maker's advisories before approving a new release.

How do I restrict the Azure MCP Server?

Use the controls the maker provides: --read-only (only read operations, all modes); --namespace <name> (repeatable); --tool <name> (expose specific tools); --mode namespace|consolidated|all|single (default namespace); dangerous opt-outs: --dangerously-disable-elicitation, --dangerously-disable-http-incoming-auth, --dangerously-disable-ssrf-protections-by-namespace. Then grant the narrowest token or account, approve the server centrally and block other copies of it.

MCP Security
Find every copy of Azure MCP Server on your fleet

AccuroAI finds the MCP servers configured in AI clients on managed devices, gives each a risk level and blocks a server across the fleet.

Book a demoStart a free pilot

Finds MCP servers on managed devices · Risk level per server · Block a server across the fleet