Azure MCP Server

Azure MCP Server

Azure MCP Server

Category
Visit Server

README

🌟 Azure MCP Server

Install with NPX in VS Code Install with NPX in VS Code Insiders

The Azure MCP Server implements the MCP specification to create a seamless connection between AI agents and key Azure services like Azure Storage, Cosmos DB, and more.

Please note that this project is in Public Preview and implementation may significantly change prior to our General Availability.

🎯 Overview

✨ 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:

🔍 Explore Your Azure Resources

  • "List my Azure storage accounts"
  • "Show me all my Cosmos DB databases"
  • "List my resource groups"
  • "Show me the tables in my Storage account"
  • "List containers in my Cosmos DB database"
  • "Get details about my Storage container"

📊 Query & Analyze

  • "Query my Log Analytics workspace"

⚙️ Manage Configuration

  • "List my App Configuration stores"
  • "Show my key-value pairs in App Config"

🔧 Advanced Azure Operations

  • "List my Azure CDN endpoints"
  • "Help me build an Azure application using Node.js"

🔍 How It Works

The Azure MCP Server creates a seamless integration between AI agents and Azure services through:

  • 🔄 Smart JSON communication that AI agents understand
  • 🏗️ Natural language commands that get translated to Azure operations
  • 💡 Intelligent parameter suggestions and auto-completion
  • ⚡ Consistent error handling that makes sense

🛠️ Currently Supported Tools

The Azure MCP Server provides tools for interacting with the following Azure services:

📊 Azure Cosmos DB (NoSQL Databases)

  • List Cosmos DB accounts
  • List and query databases
  • Manage containers and items
  • Execute SQL queries against containers

💾 Azure Storage

  • List Storage accounts
  • Manage blob containers and blobs
  • List and query Storage tables
  • Get container properties and metadata

📈 Azure Monitor (Log Analytics)

  • List Log Analytics workspaces
  • Query logs using KQL
  • List available tables
  • Configure monitoring options

⚙️ Azure App Configuration

  • List App Configuration stores
  • Manage key-value pairs
  • Handle labeled configurations
  • Lock/unlock configuration settings

📦 Azure Resource Groups

  • List resource groups
  • Resource group management operations

🔧 Azure CLI Extension

  • Execute Azure CLI commands directly
  • Support for all Azure CLI functionality
  • JSON output formatting
  • Cross-platform compatibility

🚀 Azure Developer CLI (azd) Extension

  • Execute Azure Developer CLI commands directly
  • Support for template discovery, template initialization, provisioning and deployment
  • Cross-platform compatibility

For detailed command documentation and examples, see Azure MCP Commands.

🔌 Getting Started

The Azure MCP Server requires Node.js to install and run the server. If you don't have it installed, follow the instructions here.

VS Code + GitHub Copilot

The Azure MCP Server provides Azure data plane tools. It can be used alone or with the GitHub Copilot for Azure extension in VS Code. If you're interested in broad developer support across a variety of Azure development scenarios not included in the Azure MCP Server, such as searching documentation on Microsoft Learn, we recommend this extension as well.

Prerequisites

  1. Install either the stable or Insiders release of VS Code:
  2. Install the GitHub Copilot and GitHub Copilot Chat extensions
  3. Open VS Code in an empty folder

Installation

✨ One-Click Install

Click one of these buttons to install the Azure MCP Server for VS Code or VS Code Insiders.

Install with NPX in VS Code Install with NPX in VS Code Insiders

Once you've installed the Azure MCP Server, make sure you select GitHub Copilot Agent Mode and refresh the tools list. To learn more about Agent Mode, visit the VS Code Documentation.

🔧 Manual Install

For a step-by-step installation, follow these instructions:

  1. Add .vscode/mcp.json:
{
  "servers": {
    "Azure MCP Server": {
      "command": "npx",
      "args": [
        "-y",
        "@azure/mcp@latest",
        "server",
        "start"
      ]
    }
  }
}

🧪 Test the Azure MCP Server

  1. Open GitHub Copilot in VS Code and switch to Agent mode
  2. 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"
  4. The agent should be able to use the Azure MCP Server tools to complete your query

🤖 Custom MCP Clients

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 or SSE.

Using standard IO

Configure the MCP client to execute: npx -y @azure/mcp@latest server start. For instructions on using VS Code, follow instructions in One-Click Install or Manual Install.

Using SSE

  1. Open a terminal window and execute: npx -y @azure/mcp@latest server start --transport sse
  2. The server starts up and is hosted at: http://localhost:5008. To use another port, append --port {YOUR-PORT-NUMBER}.
  3. Open your MCP client and add the SSE configuration value. This may differ between MCP clients. In VS Code, it will look like:
    {
       "servers": {
         "Azure MCP Server": {
           "type": "sse",
           "url": "http://localhost:5008/sse"
         }
       }
     }
    

More end-to-end MCP client/agent guides are coming soon!

📝 Troubleshooting

See Troubleshooting guide for help with common issues and logging.

🔑 Authentication

The Azure MCP Server seamlessly integrates with your host operating system's authentication mechanisms, making it super easy to get started! We use Azure Identity under the hood via DefaultAzureCredential, which tries these credentials in order:

  1. Environment Variables (EnvironmentCredential) - Perfect for CI/CD pipelines
  2. Shared Token Cache (SharedTokenCacheCredential) - Uses cached tokens from other tools
  3. Visual Studio (VisualStudioCredential) - Uses your Visual Studio credentials
  4. Azure CLI (AzureCliCredential) - Uses your existing Azure CLI login
  5. Azure PowerShell (AzurePowerShellCredential) - Uses your Az PowerShell login
  6. Azure Developer CLI (AzureDeveloperCliCredential) - Uses your azd login
  7. Interactive Browser (InteractiveBrowserCredential) - Falls back to browser-based login if needed

If you're already logged in through any of these methods, the Azure MCP Server will automatically use those credentials.

If you're running into any issues with authentication, visit our troubleshooting guide.

Production Credentials

By default, the Azure MCP Server excludes production credentials like Managed Identity and Workload Identity. To enable these credentials, set the environment variable:

AZURE_MCP_INCLUDE_PRODUCTION_CREDENTIALS=true

This is useful when running on Azure services where you want to use managed identities.

🛡️ Security Note

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.

👥 Contributing

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:

  • 🛠️ Setting up your development environment
  • ✨ Adding new commands
  • 📝 Code style and testing requirements
  • 🔄 Making pull requests

🤝 Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured