Azure MCP Server
Published · Updated
At a glance
- Category
- Cloud & DevOps
- GitHub repository
- microsoft/mcp
- Watch out for
- The agent has your Azure permissions; use read-only mode or a limited service principal.
The Azure MCP Server is Microsoft's official MCP server for Azure, and version 2.0 is generally available. It used to live in the Azure/azure-mcp repository, which was archived in August 2025; development moved to microsoft/mcp, a catalogue of Microsoft's official MCP servers, where it sits under servers/Azure.Mcp.Server.
It puts all Azure MCP tools in one server, covering a long list of services, including Storage, Azure SQL and Cosmos DB, Key Vault, AKS, App Service, Monitor and Log Analytics, AI Search, Microsoft Foundry, Event Hubs, Service Bus, App Configuration and Azure Functions. There are also helper tools that generate Azure CLI commands from a description and explain how to install the Azure CLI, Azure Developer CLI and Functions Core Tools.
With that many tools, how you run it matters. There are three server modes: namespace, the default, which groups tools by service; single, which exposes one tool that routes to the rest; and all, which exposes every tool individually. You can also limit it to particular services, such as storage and keyvault only, and run it in read-only mode to prevent write operations. Authentication uses your Azure credentials, typically your Azure CLI login, or a service principal through AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET.
How it connects
Your AI app
An assistant or agent that supports MCP
Azure MCP Server
Runs as
- npx (Node.js)
- Python (uv / pip)
- Docker
Gives the agent
- Data services
- Compute and apps
- Monitoring
- AI and search
- Modes and safety
Azure
The data or system the tools act on
What it can do
- Data services
- Storage accounts and blobs, Azure SQL, Cosmos DB and Redis, for listing resources and querying data.
- Compute and apps
- AKS clusters, App Service, Azure Functions and App Configuration.
- Monitoring
- Azure Monitor and Log Analytics queries for metrics and logs.
- AI and search
- Microsoft Foundry and Azure AI Search resources.
- Modes and safety
- Server modes namespace (default), single or all; a service filter; and read-only mode to block writes.
Setting it up
The recommended route in VS Code is the Azure MCP Server extension, which exposes settings for server mode, enabled services and read-only mode. In other clients, add a server that runs npx -y @azure/mcp@latest server start; it uses your Azure CLI login, so run az login first. The README also covers Visual Studio, IntelliJ, Eclipse, Claude Code and Docker, and it can also run from NuGet (.NET) or PyPI (uvx). For unattended use, set AZURE_TENANT_ID, AZURE_CLIENT_ID and AZURE_CLIENT_SECRET for a service principal with a limited role. Use --cloud or AZURE_CLOUD for sovereign clouds such as Azure US Government.
claude mcp add azure -- npx -y @azure/mcp@latestRuns the @azure/mcp package from npm. Add any API keys, environment variables or extra arguments the setup notes above list. Combine several servers in the MCP config generator
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Listing storage accounts and containers in a subscription and checking their settings
- Querying Log Analytics to investigate errors in an app
- Inspecting an AKS cluster's configuration
- Generating the right Azure CLI command for a task you describe
Limitations and things to watch
- The agent has your Azure permissions; use read-only mode or a limited service principal.
- The all mode exposes a very large tool list; namespace or single mode is usually better.
- Old guides point at the archived Azure/azure-mcp repository.
- Some tools depend on specific services being deployed and accessible in your subscription.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /microsoft/mcp/tree/main/servers/Azure.Mcp.Server
- learn.microsoft.com /en-us/azure/developer/azure-mcp-server/overview
- aka.ms /azmcp/troubleshooting
- npmjs.com /package/@azure/mcp
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.