# Azure MCP Server (MCP Server)

> Connect AI agents to 45+ Azure services with Azure Identity auth

- Type: MCP server
- Publisher: Microsoft (official)
- Categories: DevOps & Cloud
- Website: https://github.com/microsoft/mcp/blob/main/servers/Azure.Mcp.Server/README.md
- Source: https://github.com/microsoft/mcp
- Transport: stdio
- Launch command: npx -y @azure/mcp@latest server start
- Sign-in: oauth
- GitHub stars: 3700
- Listed: 2025-04-01

## About

Microsoft's Azure MCP Server connects AI agents to more than 45 Azure services, including Storage, Cosmos DB, SQL, Key Vault, Monitor, AKS, App Service and Microsoft Foundry. It authenticates via the Azure Identity SDK (for example after az login) and can be used standalone or with GitHub Copilot for Azure. Version 2.0 is generally available.

## Install

1. **Add the server to Codex**

   Codex CLI:

   ```bash
   codex mcp add azure -- npx -y @azure/mcp@latest server start
   ```

   config.toml:

   ```toml
   [mcp_servers.azure]
   command = "npx"
   args = ["-y", "@azure/mcp@latest", "server", "start"]
   ```

   Agents SDK:

   ```python
   from agents import Agent, Runner
   from agents.mcp import MCPServerStdio
   
   async with MCPServerStdio(
       name="Azure MCP Server",
       params={"command": "npx", "args": ["-y", "@azure/mcp@latest", "server", "start"]},
   ) as server:
       agent = Agent(name="Assistant", mcp_servers=[server])
       result = await Runner.run(agent, "List my Azure storage accounts")
       print(result.final_output)
   ```

## Example prompts

- "List my Azure storage accounts"
- "Query Cosmos DB container orders for items created today"
- "Show recent errors from my Log Analytics workspace"
- "List the secrets in my Key Vault"

## Also available as

- plugin: [Teams](https://chatgptplugins.directory/plugins/teams.md)
- app: [SharePoint](https://chatgptplugins.directory/apps/sharepoint.md)

## Related

- [GitHub](https://chatgptplugins.directory/mcp/github.md): Manage repos, issues, pull requests and Actions from your AI agent
- [Sentry](https://chatgptplugins.directory/mcp/sentry.md): Search Sentry errors, issues and traces and debug them with Seer
- [Cloudflare API](https://chatgptplugins.directory/mcp/cloudflare-api.md): Access 2,500+ Cloudflare API endpoints through two Code Mode tools
- [Vercel](https://chatgptplugins.directory/mcp/vercel.md): Manage Vercel projects, deployments, logs and docs from AI tools
- [MCP Toolbox for Databases](https://chatgptplugins.directory/mcp/mcp-toolbox-databases.md): Google's open-source MCP server for 20+ databases
- [AWS Knowledge](https://chatgptplugins.directory/mcp/aws-knowledge.md): Search current AWS docs, API references and regional availability

---
Source: https://chatgptplugins.directory/mcp/azure · Index: https://chatgptplugins.directory/llms.txt · Independent and community-run. Not affiliated with or endorsed by OpenAI. ChatGPT is a trademark of OpenAI.
