Azure

Cloud and DevOps

All Azure MCP tools to create a seamless connection between AI agents and Azure services.

Your AI app calls the Azure MCP server, which does the cloud and DevOps work and sends the result back to the chat.

About Azure

Azure is the official MCP server from microsoft, filed in our directory under cloud and devops. All Azure MCP tools to create a seamless connection between AI agents and Azure services.

Azure runs on your own machine: your AI app starts it with the command dnx Azure.Mcp --yes server and talks to it over standard input and output.

Azure is listed in the official MCP registry as com.microsoft/azure, version 3.0.0-beta.48.

At a glance

Publisher
microsoft, the company behind the product
Runs
Locally on your machine
Install from
.NET package on NuGet: Azure.Mcp
Written in
C#
License
MIT
GitHub stars
3,909
Official MCP registry
com.microsoft/azure

How to set up Azure

  1. Follow the install steps in the Azure README; it is written in C#, so have that toolchain ready.
  2. Check the Azure README for keys or settings; the registry lists none that Azure requires.
  3. Add Azure to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Azure tools to confirm the connection.
  5. Run one read-only task with Azure first, and keep your app asking before each tool call until the results look right.

Azure compared with similar servers

  • Open Ontologies by fabio-rovai has fewer GitHub stars than Azure (3.2k against 3.9k); Azure is official while Open Ontologies is a community server, and both run locally.
  • Microfeed by microfeed has more GitHub stars than Azure (4.1k against 3.9k); Azure is official while Microfeed is a community server, and both run locally.
  • Kubernetes by containers has fewer GitHub stars than Azure (2.3k against 3.9k); both are official servers, and both run locally.

Before you connect Azure

  • Give Azure its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Azure tool call until you trust what it does with them.
  • Treat text that Azure fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Azure on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Azure

How marketing and sales teams put Azure to work, by company size. Pick the size closest to yours and start Azure on one use case.

Small business

  • A small business can ask Azure why the site is slow or down and get the likely cause in plain words.
  • Owners can use Azure to check hosting costs and spot services they pay for but no longer use.
  • Azure runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Web teams can connect Azure to watch deploys during a launch and roll back fast if a campaign page breaks.
  • Marketing engineering can use Azure to spin up preview environments for every landing page review.
  • Start Azure on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should give Azure read access first, with changes gated by the same approvals as any infrastructure change.
  • Large orgs can use Azure to answer cost and reliability questions across accounts, so marketing launches are planned with real capacity.
  • Because Azure comes from microsoft, the company behind the product, it follows that product's own auth and permissions, which security teams usually prefer.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Azure README

From microsoft/mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Azure MCP Server

[!NOTE] Azure MCP Server 2.0 is now generally available.

All Azure MCP tools in a single server. 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.

Table of Contents

  • Overview
  • Local Setup
    • Developer Tools
      • VS Code (Recommended)
      • Visual Studio 2026
      • Visual Studio 2022
      • IntelliJ IDEA
      • Eclipse IDE
      • Google Antigravity
      • Claude Code
      • Manual Setup
      • GitHub Copilot CLI Configuration
      • GitHub Copilot SDK Configuration
    • Package Manager
      • NuGet
      • NPM
      • PyPI
      • Docker
      • MCPB
  • Remote Setup
  • Usage
    • Getting Started
    • Sovereign Cloud Support
    • What can you do with the Azure MCP Server?
    • Complete List of Supported Azure Services
  • Support and Reference
    • Documentation
    • Feedback and Support
    • Security
    • Permissions and Risk
    • Data Collection
    • Compliance Responsibility
    • Third Party Components
    • Export Control
    • No Warranty / Limitation of Liability
    • Contributing
    • Code of Conduct

Overview

Azure MCP Server supercharges your agents with Azure context across numerous Azure services.

Local Setup

Install Azure MCP Server using either an IDE extension or package manager. Choose one method below.

[!IMPORTANT] Authenticate to Azure before running the Azure MCP server. See the Authentication guide for authentication methods and instructions.

Developer Tools

Start using Azure MCP with your favorite IDE. We recommend VS Code:

VS Code (Recommended)

Compatible with both the Stable and Insiders builds of VS Code.

  1. Install the GitHub Copilot Chat extension.
  2. Install the Azure MCP Server extension.
  3. Sign in to Azure (Command Palette: Azure: Sign In).
Visual Studio 2026
  1. Download Visual Studio 2026 or Visual Studio 2026 Insiders and install using the Visual Studio Installer.
    • If Visual Studio 2026 is already installed, open the Visual Studio Installer and select the Modify button, which displays the available workloads.
  2. On the Workloads tab, select Azure and AI development and select GitHub Copilot.
  3. Click install while downloading to complete the installation.

For more information, visit Install GitHub Copilot for Azure in Visual Studio 2026

Visual Studio 2022

From within Visual Studio 2022 install GitHub Copilot for Azure (VS 2022):

  1. Go to Extensions | Manage Extensions...
  2. Switch to the Browse tab in Extension Manager
  3. Search for Github Copilot for Azure
  4. Click Install
IntelliJ IDEA
  1. Install either the IntelliJ IDEA Ultimate or IntelliJ IDEA Community edition.
  2. Install the GitHub Copilot plugin.
  3. Install the Azure Toolkit for Intellij plugin.
Eclipse IDE
  1. Install Eclipse IDE.
  2. Install the GitHub Copilot plugin.
  3. Install the Azure Toolkit for Eclipse plugin.
Google Antigravity
  1. Install and open Google Antigravity.

  2. In the editor's agent side panel, select ... > MCP Servers > Manage MCP Servers > View raw config.

  3. Add Azure MCP Server to the mcpServers object in mcp_config.json:

    {
        "mcpServers": {
            "azure-mcp-server": {
                "command": "npx",
                "args": ["-y", "@azure/mcp@latest", "server", "start"]
            }
        }
    }
    

Antigravity stores global configuration at ~/.gemini/config/mcp_config.json. For workspace-only configuration, use .agents/mcp_config.json. For more information, see the Google Antigravity MCP documentation.

Claude Code

The Azure plugin packages the Azure MCP Server along with Azure-related agents and skills, bringing Azure integration to Claude Code in one installation.

  1. Install Claude Code.
  2. Install the Azure plugin from Anthropic's official plugin marketplace by running the following command in Claude Code:
    /plugin install azure@claude-plugins-official
    

For more information on discovering and installing plugins, see the Claude Code plugins documentation.

Manual Setup

Azure MCP Server can also be configured across other IDEs, CLIs, and MCP clients:

Manual setup instructions

Use one of the following options to configure your mcp.json:

Option 1: Configure using .NET tool (dnx)
  • To use Azure MCP server from .NET, you must have the latest .NET 10 SDK LTS installed. .NET 10 and later adds a command, dnx, which is used to download, install, and run the MCP server from nuget.org. To verify the .NET version, run the following command in the terminal: dotnet --info

  • Configure the mcp.json file with the following:

    {
        "mcpServers": {
            "azure-mcp-server": {
                "command": "dnx",
                "args": [
                    "Azure.Mcp",
                    "--source",
                    "https://api.nuget.org/v3/index.json",
                    "--yes",
                    "--",
                    "azmcp",
                    "server",
                    "start"
                ],
                "type": "stdio"
            }
        }
    }
    
Option 2: Configure using Node.js (npm/npx)
  • To use Azure MCP server from node one must have Node.js (LTS) installed and available on your system PATH, this provides both npm and npx. We recommend the latest Node.js LTS version. To verify your installation run: node --version, npm --version, and npx --version.

  • Configure the mcp.json file with the following:

    {
        "mcpServers": {
            "azure-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "@azure/mcp@latest",
                "server",
                "start"
                ]
            }
        }
    }
    
Option 3: Configure using Python (uvx)
  • To use Azure MCP server from Python, you must have uv installed. uv is a fast Python package installer and resolver. To verify your installation run: uv --version and uvx --version.

  • Configure the mcp.json file with the following:

    {
        "mcpServers": {
            "azure-mcp-server": {
                "command": "uvx",
                "args": [
                    "--from",
                    "msmcp-azure",
                    "azmcp",
                    "server",
                    "start"
                ]
            }
        }
    }
    

Note: When manually configuring Visual Studio and Visual Studio Code, use servers instead of mcpServers as the root object.

Client-Specific Configuration

IDE File Location Documentation Link
VS Code .vscode/mcp.json (workspace)
settings.json (user)
VS Code MCP Documentation
Visual Studio .mcp.json (solution/workspace) Visual Studio MCP Setup
GitHub Copilot CLI ~/.copilot/mcp-config.json Copilot CLI MCP Configuration
Claude Code ~/.claude.json or .mcp.json (project) Claude Code MCP Configuration
Eclipse IDE GitHub Copilot Chat -> Configure Tools -> MCP Servers Eclipse MCP Documentation
IntelliJ IDEA Built-in MCP server (2025.2+)
Settings > Tools > MCP Server
IntelliJ MCP Documentation
Google Antigravity ~/.gemini/config/mcp_config.json (global)
.agents/mcp_config.json (workspace)
Google Antigravity MCP Documentation
Cursor ~/.cursor/mcp.json or .cursor/mcp.json Cursor MCP Documentation
Windsurf ~/.codeium/windsurf/mcp_config.json Windsurf Cascade MCP Integration
Amazon Q Developer ~/.aws/amazonq/mcp.json (global)
.amazonq/mcp.json (workspace)
AWS Q Developer MCP Guide
Claude Desktop ~/.claude/claude_desktop_config.json (macOS)
%APPDATA%\Claude\claude_desktop_config.json (Windows)
Claude Desktop MCP Setup
GitHub Copilot CLI Configuration

GitHub Copilot CLI supports MCP servers via the /mcp command.

GitHub Copilot CLI setup instructions
Add Azure MCP Server
  1. In a Copilot CLI session, run /mcp add to open the MCP server configuration form.

  2. Fill in the fields:

    Field Value
    Server Name azure-mcp
    Server Type 1 (Local)
    Command npx -y @azure/mcp@latest server start
    Environment Variables (leave blank - uses Azure CLI auth)
    Tools *

    Alternative Command (using .NET): dotnet dnx Azure.Mcp server start

  3. Press Ctrl+S (or Cmd+S on macOS) to save the server configuration.

Verification

Verify the MCP server is configured by running:

/mcp show

You should see output similar to:

● MCP Server Configuration:
  • azure-mcp (local): Command: npx

Total servers: 1
Config file: ~/.copilot/mcp-config.json
Managing MCP Servers
  • List servers: /mcp show
  • Remove a server: /mcp remove azure-mcp
  • Get help: /mcp help
GitHub Copilot SDK Configuration

The GitHub Copilot SDK enables programmatic integration of Azure MCP tools into your applications across multiple languages.

GitHub Copilot SDK snippets

Using GitHub Copilot SDK with Azure MCP

This guide explains how to configure the GitHub Copilot SDK to use Azure MCP (Model Context Protocol) tools for interacting with Azure resources.

Overview

Azure MCP provides a set of tools that enable AI assistants to interact with Azure resources directly. When integrated with the Copilot SDK, you can build applications that leverage natural language to manage Azure subscriptions, resource groups, storage accounts, and more.

Prerequisites

  1. GitHub Copilot CLI - Install from GitHub Copilot CLI
  2. Azure MCP Server - Available via npm: @azure/mcp
  3. Azure CLI - Authenticated via az login
  4. Valid GitHub Copilot subscription
Install Azure MCP Server
# Option 1: Use npx (downloads on demand)
npx -y @azure/mcp@latest server start

# Option 2: Install globally (faster startup)
npm install -g @azure/mcp@latest

Key Configuration Insight

Important: MCP servers must be configured in the session config for tools to be available. The critical configuration is:

{
  "mcp_servers": {
    "azure-mcp": {
      "type": "local",
      "command": "npx",
      "args": ["-y", "@azure/mcp@latest", "server", "start"],
      "tools": ["*"]
    }
  }
}

The tools: ["*"] parameter is essential - it enables all tools from the MCP server for the session.

Python

Installation
pip install github-copilot-sdk
Configuration
import asyncio
from copilot import CopilotClient
from copilot.generated.session_events import SessionEventType

async def main():
    # Initialize the Copilot client
    client = CopilotClient({
        "cli_args": [
            "--allow-all-tools",
            "--allow-all-paths",
        ]
    })

    await client.start()

    # Configure Azure MCP server in session config
    azure_mcp_config = {
        "azure-mcp": {
            "type": "local",
            "command": "npx",
            "args": ["-y", "@azure/mcp@latest", "server", "start"],
            "tools": ["*"],  # Enable all Azure MCP tools
        }
    }

    # Create session with MCP servers
    session = await client.create_session({
        "model": "gpt-4.1",  # Default model; BYOK can override
        "streaming": True,
        "mcp_servers": azure_mcp_config,
    })

    # Handle events
    def handle_event(event):
        if event.type == SessionEventType.ASSISTANT_MESSAGE_DELTA:
            if hasattr(event.data, 'delta_content') and event.data.delta_content:
                print(event.data.delta_content, end="", flush=True)
        elif event.type == SessionEventType.TOOL_EXECUTION_START:
            tool_name = getattr(event.data, 'tool_name', 'unknown')
            print(f"\n[TOOL: {tool_name}]")

    session.on(handle_event)

    # Send prompt
    await session.send_and_wait({
        "prompt": "List all resource groups in my Azure subscription"
    })

    await client.stop()

if __name__ == "__main__":
    asyncio.run(main())

Node.js / TypeScript

Installation
npm install @github/copilot-sdk
Configuration (TypeScript)
import { CopilotClient, SessionEventType } from '@github/copilot-sdk';

async function main() {
  // Initialize the Copilot client
  const client = new CopilotClient({
    cliArgs: [
      '--allow-all-tools',
      '--allow-all-paths',
    ]
  });

  await client.start();

  // Configure Azure MCP server in session config
  const azureMcpConfig = {
    'azure-mcp': {
      type: 'local' as const,
      command: 'npx',
      args: ['-y', '@azure/mcp@latest', 'server', 'start'],
      tools: ['*'],  // Enable all Azure MCP tools
    }
  };

  // Create session with MCP servers
  const session = await client.createSession({
    model: 'gpt-4.1',  // Default model; BYOK can override
    streaming: true,
    mcpServers: azureMcpConfig,
  });

  // Handle events
  session.on((event) => {
    if (event.type === SessionEventType.ASSISTANT_MESSAGE_DELTA) {
      if (event.data?.deltaContent) {
        process.stdout.write(event.data.deltaContent);
      }
    } else if (event.type === SessionEventType.TOOL_EXECUTION_START) {
      const toolName = event.data?.toolName || 'unknown';
      console.log(`\n[TOOL: ${toolName}]`);
    }
  });

  // Send prompt
  await session.sendAndWait({
    prompt: 'List all resource groups in my Azure subscription'
  });

  await client.stop();
}

main().catch(console.error);

Go

Installation
go get github.com/github/copilot-sdk/go
Configuration
package main

import (
    "context"
    "fmt"
    "log"

    copilot "github.com/github/copilot-sdk/go"
)

func main() {
    ctx := context.Background()

    // Initialize the Copilot client
    client, err := copilot.NewClient(copilot.ClientOptions{
        CLIArgs: []string{
            "--allow-all-tools",
            "--allow-all-paths",
        },
    })
    if err != nil {
        log.Fatal(err)
    }

    if err := client.Start(ctx); err != nil {
        log.Fatal(err)
    }
    defer client.Stop(ctx)

    // Configure Azure MCP server in session config
    azureMcpConfig := map[string]copilot.MCPServerConfig{
        "azure-mcp": {
            Type:    "local",
            Command: "npx",
            Args:    []string{"-y", "@azure/mcp@latest", "server", "start"},
            Tools:   []string{"*"}, // Enable all Azure MCP tools
        },
    }

    // Create session with MCP servers
    session, err := client.CreateSession(ctx, copilot.SessionConfig{
        Model:      "gpt-4.1",  // Default model; BYOK can override
        Streaming:  true,
        MCPServers: azureMcpConfig,
    })
    if err != nil {
        log.Fatal(err)
    }

    // Handle events
    session.OnEvent(func(event copilot.SessionEvent) {
        switch event.Type {
        case copilot.AssistantMessageDelta:
            if event.Data.DeltaContent != "" {
                fmt.Print(event.Data.DeltaContent)
            }
        case copilot.ToolExecutionStart:
            fmt.Printf("\n[TOOL: %s]\n", event.Data.ToolName)
        }
    })

    // Send prompt
    err = session.SendAndWait(ctx, copilot.Message{
        Prompt: "List all resource groups in my Azure subscription",
    })
    if err != nil {
        log.Fatal(err)
    }
}

.NET

Installation
dotnet add package GitHub.Copilot.SDK
Configuration (C#)
using GitHub.Copilot.SDK;
using GitHub.Copilot.SDK.Models;

class Program
{
    static async Task Main(string[] args)
    {
        // Initialize the Copilot client
        var client = new CopilotClient(new CopilotClientOptions
        {
            CliArgs = new[] { "--allow-all-tools", "--allow-all-paths" }
        });

        await client.StartAsync();

        // Configure Azure MCP server in session config
        var azureMcpConfig = new Dictionary<string, MCPServerConfig>
        {
            ["azure-mcp"] = new MCPServerConfig
            {
                Type = "local",
                Command = "npx",
                Args = new[] { "-y", "@azure/mcp@latest", "server", "start" },
                Tools = new[] { "*" }  // Enable all Azure MCP tools
            }
        };

        // Create session with MCP servers
        var session = await client.CreateSessionAsync(new SessionConfig
        {
            Model = "gpt-4.1",  // Default model; BYOK can override
            Streaming = true,
            McpServers = azureMcpConfig
        });

        // Handle events
        session.OnEvent += (sender, e) =>
        {
            switch (e.Type)
            {
                case SessionEventType.AssistantMessageDelta:
                    if (!string.IsNullOrEmpty(e.Data?.DeltaContent))
                    {
                        Console.Write(e.Data.DeltaContent);
                    }
                    break;
                case SessionEventType.ToolExecutionStart:
                    Console.WriteLine($"\n[TOOL: {e.Data?.ToolName}]");
                    break;
            }
        };

        // Send prompt
        await session.SendAndWaitAsync(new Message
        {
            Prompt = "List all resource groups in my Azure subscription"
        });

        await client.StopAsync();
    }
}

Note: If startup is slow, use a pinned version (@azure/mcp@2.0.0-beta.13 instead of @latest) or install globally (npm install -g @azure/mcp@latest).

Package Manager

Package manager installation offers several advantages over IDE-specific setup, including centralized dependency management, CI/CD integration, support for headless/server environments, version control, and project portability.

Install Azure MCP Server via a package manager:

NuGet

Install the .NET Tool: Azure.Mcp.

dotnet tool install Azure.Mcp

or

dotnet tool install Azure.Mcp --version <version>
NPM

Install the Node.js package: @azure/mcp.

Local installation (recommended):

npm install @azure/mcp@latest

Install a specific version:

npm install @azure/mcp@<version>

Run a command without installing (using npx):

npx -y @azure/mcp@latest [command]

For example,

Start a server

npx -y @azure/mcp@latest server start

List tools

npx -y @azure/mcp@latest tools list
Additional instructions

When to use local vs global installation:

  • Local (recommended): Install in the project directory for project-specific tooling, CI/CD pipelines, or when using mcp.json configuration.
  • Global: Install system-wide to run azmcp commands directly from any terminal.

Troubleshooting: To troubleshoot @azure/mcp package (or respective binaries) installation, review the troubleshooting guide.

Architecture: To understand how platform-specific binaries are installed with @azure/mcp, review the wrapper binaries architecture.

PyPI

Install the Python package: msmcp-azure.

Run directly without installation (using uvx - recommended):

uvx --from msmcp-azure azmcp server start

Install as a global tool (using pipx):

pipx install msmcp-azure

Install using pip:

pip install msmcp-azure

Install a specific version:

pip install msmcp-azure==<version>
Additional instructions

When to use uvx vs pipx vs pip:

  • uvx (recommended): Run directly without installation. Best for MCP server usage where you want the latest version without managing installations.
  • pipx: Install as an isolated global tool. Best when you want a persistent installation that doesn't interfere with other Python projects.
  • pip: Install in the current Python environment. Best for integration into existing Python projects or virtual environments.

Prerequisites:

  • uv for uvx commands
  • Python 3.10+ for pip or pipx installation
Docker

Run the Azure MCP server as a Docker container for easy deployment and isolation. The container image is available at mcr.microsoft.com/azure-sdk/azure-mcp.

Docker instructions
Create an env file with Azure credentials
  1. Create a .env file with Azure credentials (see EnvironmentCredential options):
AZURE_TENANT_ID={YOUR_AZURE_TENANT_ID}
AZURE_CLIENT_ID={YOUR_AZURE_CLIENT_ID}
AZURE_CLIENT_SECRET={YOUR_AZURE_CLIENT_SECRET}
Configure MCP client to use Docker
  1. Add or update existing mcp.json. Replace /full/path/to/.env with the actual .env file path.
{
    "mcpServers": {
        "azure-mcp-server": {
            "command": "docker",
            "args": [
                "run",
                "-i",
                "--rm",
                "--env-file",
                "/full/path/to/.env",
                "mcr.microsoft.com/azure-sdk/azure-mcp:latest"
            ]
        }
    }
}

To use Azure Entra ID, review the troubleshooting guide.

MCPB

MCP Bundles (.mcpb) are portable versions of MCP servers that can be installed directly into clients like Claude Desktop. We produce an .mcpb file for each supported platform (Windows, macOS, Linux) and architecture (x64, ARM64). The .mcpb file contains the server binary and all dependencies, so it can be installed without Node.js or .NET.

MCPB installation instructions
Download

Download the .mcpb file for your platform/architecture from Assets section of the latest release in our GitHub Releases page:

Windows macOS Linux
x64 Azure.Mcp.Server-win-x64.mcpb Azure.Mcp.Server-osx-x64.mcpb Azure.Mcp.Server-linux-x64.mcpb
ARM64 Azure.Mcp.Server-win-arm64.mcpb Azure.Mcp.Server-osx-arm64.mcpb Azure.Mcp.Server-linux-arm64.mcpb
Install
Claude Desktop
  • Option 1 (Recommended): Drag the downloaded .mcpb file into the Claude Desktop app window to install it. This is the easiest method ✅.
  • Option 2:
    1. Open the hamburger menu on the top left of the Claude Desktop app.
    2. Go to File > Settings > Extensions > Advanced Settings > Install Extension
    3. Select the downloaded .mcpb file and click Preview.
    4. Click Install in the preview window to add the Azure MCP Server to Claude Desktop.
  • Option 3: Set Claude Desktop to be the default application for .mcpb files on your computer. Then, double-click on the downloaded .mcpb file and Claude Desktop will automatically install the bundle.

Remote Setup

Host the Azure MCP Server as a remote endpoint when your client requires HTTP-based MCP servers (for example, Microsoft Foundry and Microsoft Copilot Studio) or when you want to share a single deployment across users and environments. The server can be self-hosted on Azure Container Apps.

See the remote hosting azd templates for deployment options.

Usage

Getting Started

  1. Open GitHub Copilot in VS Code or IntelliJ and switch to Agent mode.
  2. Click refresh on the tools list
    • You should see the Azure MCP Server in the list of tools
  3. Try a prompt that tells the agent to use the Azure MCP Server, such as List my Azure Storage containers
    • The agent should be able to use the Azure MCP Server tools to complete your query
  4. Check out the documentation (learn.microsoft.com/azure/developer/azure-mcp-server) and review the troubleshooting guide for commonly asked questions
  5. We're building this in the open. Your feedback is much appreciated, and will help us shape the future of the Azure MCP server

Sovereign Cloud Support

Azure MCP Server supports connecting to Azure sovereign clouds. By default, it authenticates against the Azure Public Cloud.

Cloud Aliases
Azure Public Cloud AzureCloud, AzurePublicCloud, Public, AzurePublic
Azure China Cloud AzureChinaCloud, China, AzureChina
Azure US Government AzureUSGovernment, USGov, AzureUSGovernmentCloud, USGovernment

*The aliases are case insensitive.

Use the --cloud option when starting the server, or set the AZURE_CLOUD environment variable:

# Command line
azmcp server start --cloud AzureChinaCloud

# Environment variable (PowerShell)
$env:AZURE_CLOUD = "AzureUSGovernment"
azmcp server start

Before connecting, authenticate your local tools against the target cloud:

# Azure CLI
az cloud set --name AzureChinaCloud
az login

# Azure PowerShell
Connect-AzAccount -Environment AzureChinaCloud

For full configuration options, see the Sovereign Clouds documentation.

What can you do with the Azure MCP Server?

✨ The Azure MCP Server supercharges your agents with Azure context. Here are some cool prompts you can try:

🧮 Microsoft Foundry
  • List Microsoft Foundry models
  • Deploy Microsoft Foundry models
  • List Microsoft Foundry model deployments
  • List knowledge indexes
  • Get knowledge index schema configuration
  • Create Microsoft Foundry agents
  • List Microsoft Foundry agents
  • Connect and query Microsoft Foundry agents
  • Evaluate Microsoft Foundry agents
📊 Azure Advisor

Recommendation list and summary use subscriptions, recommendation-type-ids, and resource-types arrays, including one-element arrays for single selections. Prevalidation also uses subscriptions but retains one required recommendation-type-id. Single-target get operations and recommendation-update inputs are unchanged.

  • "List my Advisor recommendations"
  • "Show the next page of my Advisor recommendations using the returned continuation token"
  • "List Advisor recommendations for service group 'my-service-group'"
  • "Show the prioritized Advisor recommendations for service group 'my-service-group'"
  • "What should I fix first? Show my top 10 Advisor recommendations"
  • "Summarize the key themes from my Advisor recommendations"
  • "Summarize the key themes from Advisor recommendations in service group 'my-service-group'"
  • "Show the top 10 most common Advisor recommendation types"
  • "Prevalidate the selected idle resources for locks, dependencies, and recent activity without deleting or changing anything"
  • "Break down Advisor recommendations in service group 'my-service-group' by impact"
  • "Break down my Advisor recommendations by lifecycle status"
  • "Summarize active service-retirement recommendations by retirement date"
  • "Mark an Advisor recommendation as completed"
  • "Mark an Advisor recommendation as completed in service group 'my-service-group'"
  • "Dismiss an Advisor recommendation because the risk is acceptable"
  • "Postpone an Advisor recommendation in service group 'my-service-group' until <future-date-time-with-offset>"
  • "Postpone an Advisor recommendation until December 31, 2026"
  • "Postpone these selected Advisor recommendation IDs together in my service group until <future-date-time-with-offset>, with one batch approval"
  • "Before I deploy virtual machines, list the Advisor recommendation metadata that could apply to them"
  • "Show Advisor service retirements on or after March 31, 2026"
  • "Show Advisor insights for service group 'my-service-group'"
  • "Show Advisor insights for my subscription"
  • "Give me Advisor insights across all my service groups and subscriptions"
  • "How much retirement exposure has my subscription reduced or increased since its Day 1 count?"
  • "What is the status of service group 'my-service-group'?"
  • "Which mission-critical service groups need attention?"
  • "Get Advisor metadata for a recommendation type id"
  • "How do I fix an Advisor recommendation type id? Get the ARM, Bicep, CLI, PowerShell and terraform artifacts to remediate it"
🔎 Azure AI Search
  • "What indexes do I have in my Azure AI Search service 'mysvc'?"
  • "Let's search this index for 'my search query'"
🎤 Azure AI Services Speech
  • "Convert this audio file to text using Azure Speech Services"
  • "Recognize speech from my audio file with language detection"
  • "Transcribe speech from audio with profanity filtering"
  • "Transcribe audio with phrase hints for better accuracy"
  • "Convert text to speech and save to output.wav"
  • "Synthesize speech from 'Hello, welcome to Azure' with Spanish voice"
  • "Generate MP3 audio from text with high quality format"
⚙️ Azure App Configuration
  • "List my App Configuration stores"
  • "Show my key-value pairs in App Config"
⚙️ Azure App Lens
  • "Help me diagnose issues with my app"

Read the rest of the Azure README on GitHub

Questions about Azure

What is the Azure MCP server?

All Azure MCP tools to create a seamless connection between AI agents and Azure services. Azure is published by microsoft, the company behind the product, on GitHub at microsoft/mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Azure MCP server?

Add Azure to your AI app's MCP config with the command dnx Azure.Mcp --yes server start. In Claude Code, run claude mcp add --transport stdio microsoft-azure -- dnx Azure.Mcp --yes server start.

Does Azure need an API key?

The registry lists no required keys for Azure. Check the Azure README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Azure an official MCP server?

Yes. Azure is published by microsoft, the company that makes the product it connects to, so it follows that product's own API and auth.

What license is Azure under?

Azure is released under the MIT license, according to its GitHub repository. The license covers the code of Azure; the service it connects to has its own terms.