by Azure
Enables AI agents to interact with Azure services through a unified server that implements the MCP specification, offering a rich set of commands for resource discovery, management, and automation.
Provides a server that bridges AI agents and Azure services, exposing hundreds of Azure‑specific tools (e.g., storage, AKS, Cosmos DB, Monitor) via the MCP protocol. Agents can query, list, and manipulate Azure resources directly from prompts.
npx
:
{
"servers": {
"Azure MCP Server": {
"command": "npx",
"args": ["-y", "@azure/mcp@latest", "server", "start"]
}
}
}
.vscode/mcp.json
.npx
, global npm, Docker, or manual binary; automatic update via @latest
.AZURE_MCP_COLLECT_TELEMETRY=false
.AZURE_MCP_COLLECT_TELEMETRY=false
in the environment before starting the server.npx
is the simplest and always checks for the latest version. Use Docker if you need isolation; use global npm for stable offline usage.npx @azure/mcp@latest server start
checks for updates each run.npm update -g @azure/mcp
.npx -y @azure/mcp@latest server start
and communicate over standard I/O.The Azure MCP Server implements the MCP specification to create a seamless connection between AI agents and Azure services. Azure MCP Server can be used alone or with the GitHub Copilot for Azure extension in VS Code. This project is in Public Preview and implementation may significantly change prior to our General Availability.
[!WARNING] Deprecation Notice: SSE transport mode has been removed in version 0.4.0 (2025-07-15).
SSE was deprecated in MCP
2025-03-26
due to security vulnerabilities and architectural limitations. Users must discontinue use of SSE transport mode and upgrade to version0.4.0
or newer to maintain compatibility with current MCP clients.
refresh
on the tools list
List my Azure Storage containers
The Azure MCP Server supercharges your agents with Azure context. Here are some cool prompts you can try:
Agents and models can discover and learn best practices and usage guidelines for the azd
MCP tool. For more information, see AZD Best Practices.
For detailed command documentation and examples, see Azure MCP Commands.
If you use the default package spec of @azure/mcp@latest
, npx will look for a new version on each server start. If you use just @azure/mcp
, npx will continue to use its cached version until its cache is cleared.
If you globally install the cli via npm install -g @azure/mcp
it will use the installed version until you manually update it with npm update -g @azure/mcp
.
There is no version update built into the docker image. To update, just pull the latest from the repo and repeat the docker installation instructions.
Installation in VS Code should be in one of the previous forms and the update instructions are the same. If you installed the mcp server with the npx
command and -y @azure/mcp@latest
args, npx will check for package updates each time VS Code starts the server. Using a docker container in VS Code has the same no-update limitation described above.
Microsoft publishes an official Azure MCP Server Docker container on the Microsoft Artifact Registry.
For a step-by-step Docker installation, follow these instructions:
Create an .env
file with environment variables that match one of the EnvironmentCredential
sets. For example, a .env
file using a service principal could look like:
AZURE_TENANT_ID={YOUR_AZURE_TENANT_ID}
AZURE_CLIENT_ID={YOUR_AZURE_CLIENT_ID}
AZURE_CLIENT_SECRET={YOUR_AZURE_CLIENT_SECRET}
Add .vscode/mcp.json
or update existing MCP configuration. Replace /full/path/to/.env
with a path to your .env
file.
{
"servers": {
"Azure MCP Server": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"--env-file",
"/full/path/to/.env"
"mcr.microsoft.com/azure-sdk/azure-mcp:latest",
]
}
}
}
Optionally, use --env
or --volume
to pass authentication values.
You can easily configure your MCP client to use the Azure MCP Server. Have your client run the following command and access it via standard IO.
npx -y @azure/mcp@latest server start
For a step-by-step installation, follow these instructions:
Add .vscode/mcp.json
:
{
"servers": {
"Azure MCP Server": {
"command": "npx",
"args": [
"-y",
"@azure/mcp@latest",
"server",
"start"
]
}
}
}
You can optionally set the --namespace <namespace>
flag to install tools for the specified Azure product or service.
Add .vscode/mcp.json
:
{
"servers": {
"Azure Best Practices": {
"command": "npx",
"args": [
"-y",
"@azure/mcp@latest",
"server",
"start",
"--namespace",
"bestpractices" // Any of the available MCP servers can be referenced here.
]
}
}
}
More end-to-end MCP client/agent guides are coming soon!
The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.
Telemetry collection is on by default.
To opt out, set the environment variable AZURE_MCP_COLLECT_TELEMETRY
to false
in your environment.
See Troubleshooting guide for help with common issues and logging.
The Azure MCP Server uses the Azure Identity library for .NET to authenticate to Microsoft Entra ID. For detailed information, see Authentication Fundamentals.
If you're running into any issues with authentication, visit our troubleshooting guide.
For enterprise authentication scenarios, including network restrictions, security policies, and protected resources, see Authentication Scenarios in Enterprise Environments.
Your credentials are always handled securely through the official Azure Identity SDK - we never store or manage tokens directly.
MCP as a phenomenon is very novel and cutting-edge. As with all new technology standards, consider doing a security review to ensure any systems that integrate with MCP servers follow all regulations and standards your system is expected to adhere to. This includes not only the Azure MCP Server, but any MCP client/agent that you choose to implement down to the model provider.
We welcome contributions to the Azure MCP Server! Whether you're fixing bugs, adding new features, or improving documentation, your contributions are welcome.
Please read our Contributing Guide for guidelines on:
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact open@microsoft.com with any additional questions or comments.
Please log in to share your review and rating for this MCP.
{ "mcpServers": { "Azure MCP Server": { "command": "npx", "args": [ "-y", "@azure/mcp@latest", "server", "start" ], "env": {} } } }
Explore related MCPs that share similar capabilities and solve comparable challenges
by zed-industries
A high‑performance, multiplayer code editor designed for speed and collaboration.
by modelcontextprotocol
Model Context Protocol Servers
by modelcontextprotocol
A Model Context Protocol server for Git repository interaction and automation.
by modelcontextprotocol
A Model Context Protocol server that provides time and timezone conversion capabilities.
by cline
An autonomous coding assistant that can create and edit files, execute terminal commands, and interact with a browser directly from your IDE, operating step‑by‑step with explicit user permission.
by continuedev
Enables faster shipping of code by integrating continuous AI agents across IDEs, terminals, and CI pipelines, offering chat, edit, autocomplete, and customizable agent workflows.
by upstash
Provides up-to-date, version‑specific library documentation and code examples directly inside LLM prompts, eliminating outdated information and hallucinated APIs.
by github
Connects AI tools directly to GitHub, enabling natural‑language interactions for repository browsing, issue and pull‑request management, CI/CD monitoring, code‑security analysis, and team collaboration.
by daytonaio
Provides a secure, elastic infrastructure that creates isolated sandboxes for running AI‑generated code with sub‑90 ms startup, unlimited persistence, and OCI/Docker compatibility.