# Azure MCP Server Extension for Visual Studio Code
Easily bring the power of Model Context Protocol (MCP) to your Azure projects in VS Code.
## Table of Contents
- [Overview](#overview)
- [Getting Started](#getting-started)
- [What can you do with the Azure MCP Server?](#what-can-you-do-with-the-azure-mcp-server)
- [Complete List of Supported Azure Services](#complete-list-of-supported-azure-services)
- [Documentation](#documentation)
- [Feedback & Support](#feedback--support)
- [Contributing](#contributing)
- [License](#license)
## Overview
**Azure MCP Server** adds smart, context-aware AI tools right inside VS Code to help you work more efficiently with Azure resources. The Azure MCP Server supercharges your agents with Azure context across **28 different Azure services**.
## Getting Started
Follow these simple steps to start using Azure MCP in VS Code:
1. **Install the Extension**
- Get it from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azure-mcp-server).
2. **Start (or Auto-Start) the MCP Server**
> **VS Code (version 1.103 or above):** You can now configure MCP servers to start automatically using the `chat.mcp.autostart` setting, instead of manually restarting them after configuration changes.
#### **Enable Autostart**
1. Open **Settings** in VS Code.
2. Search for `chat.mcp.autostart`.
3. Select **newAndOutdated** to automatically start MCP servers without manual refresh.
4. You can also set this from the **refresh icon tooltip** in the Chat view, which also shows which servers will auto-start.

#### **Manual Start (if autostart is off)**
1. Open Command Palette (`Ctrl+Shift+P` / `Cmd+Shift+P`).
2. Run `MCP: List Servers`.

3. Select `Azure MCP Server ext`, then click **Start Server**.


4. **Check That It's Running**
- Go to the **Output** tab in VS Code.
- Look for log messages confirming the server started successfully.

3. (Optional) Configure tools and behavior
- Full options: control how tools are exposed and whether mutations are allowed:
```json
// Server Mode: collapse per service (default), single tool, or expose every tool
"azureMcp.serverMode": "namespace", // one of: "single" | "namespace" (default) | "all"
// Filter which namespaces to expose
"azureMcp.enabledServices": ["storage", "keyvault"],
// Run the server in read-only mode (prevents write operations)
"azureMcp.readOnly": false
```
- Changes take effect after restarting the Azure MCP server from the MCP: List Servers view. (Step 2)
Youโre all set! Azure MCP Server is now ready to help you work smarter with Azure resources in VS Code.
## What can you do with the Azure MCP Server?
Here are some cool prompts you can try across our supported Azure services:
### ๐ 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 App Configuration
* "List my App Configuration stores"
* "Show my key-value pairs in App Config"
### ๐ฆ Azure Container Registry (ACR)
* "List all my Azure Container Registries"
* "Show me my container registries in the 'myproject' resource group"
* "List all my Azure Container Registry repositories"
### โธ๏ธ Azure Kubernetes Service (AKS)
* "List my AKS clusters in my subscription"
* "Show me all my Azure Kubernetes Service clusters"
### ๐ Azure Cosmos DB
* "Show me all my Cosmos DB databases"
* "List containers in my Cosmos DB database"
### ๐งฎ Azure Data Explorer
* "Get Azure Data Explorer databases in cluster 'mycluster'"
* "Sample 10 rows from table 'StormEvents' in Azure Data Explorer database 'db1'"
### โก Azure Managed Lustre
* "List the Azure Managed Lustre clusters in resource group 'my-resourcegroup'"
* "How many IP Addresses I need to create a 128 TiB cluster of AMLFS 500?"
### ๐ Azure Monitor
* "Query my Log Analytics workspace"
### ๐ง Azure Resource Management
* "List my resource groups"
* "List my Azure CDN endpoints"
* "Help me build an Azure application using Node.js"
### ๐๏ธ Azure SQL Database
* "Show me details about my Azure SQL database 'mydb'"
* "List all databases in my Azure SQL server 'myserver'"
* "List all firewall rules for my Azure SQL server 'myserver'"
* "List all elastic pools in my Azure SQL server 'myserver'"
* "List Active Directory administrators for my Azure SQL server 'myserver'"
### ๐พ Azure Storage
* "List my Azure storage accounts"
* "Get details about my storage account 'mystorageaccount'"
* "Create a new storage account in East US with Data Lake support"
* "Show me the tables in my Storage account"
* "Get details about my Storage container"
* "Upload my file to the blob container"
* "List paths in my Data Lake file system"
* "List files and directories in my File Share"
* "Send a message to my storage queue"
## ๐ ๏ธ Currently Supported Tools
<details>
<summary>The Azure MCP Server provides tools for interacting with the following Azure services</summary>
### ๐ Azure AI Search (search engine/vector database)
* List Azure AI Search services
* List indexes and look at their schema and configuration
* Query search indexes
### โ๏ธ Azure App Configuration
* List App Configuration stores
* Manage key-value pairs
* Handle labeled configurations
* Lock/unlock configuration settings
### ๐ก๏ธ Azure Best Practices
* Get secure, production-grade Azure SDK best practices for effective code generation.
### ๐ฅ๏ธ Azure CLI Extension
* Execute Azure CLI commands directly
* Support for all Azure CLI functionality
### ๐ฆ Azure Container Registry (ACR)
* List Azure Container Registries and repositories in a subscription
* Filter container registries and repositories by resource group
* JSON output formatting
* Cross-platform compatibility
### ๐ Azure Cosmos DB (NoSQL Databases)
* List Cosmos DB accounts
* List and query databases
* Manage containers and items
* Execute SQL queries against containers
### ๐งฎ Azure Data Explorer
* List Azure Data Explorer clusters
* List databases
* List tables
* Get schema for a table
* Sample rows from a table
* Query using KQL
### ๐ฌ Azure Database for MySQL - Flexible Server
* List and query databases.
* List and get schema for tables.
* List, get configuration and get parameters for servers.
### ๐ Azure Database for PostgreSQL - Flexible Server
* List and query databases.
* List and get schema for tables.
* List, get configuration and get/set parameters for servers.
### ๐ ๏ธ Azure Developer CLI (azd) Extension
* Execute Azure Developer CLI commands directly
* Support for template discovery, template initialization, provisioning and deployment
* Cross-platform compatibility
### ๐ Azure Deploy
* Generate Azure service architecture diagrams from source code
* Create a deploy plan for provisioning and deploying the application
* Get the application service log for a specific azd environment
* Get the bicep or terraform file generation rules for an application
* Get the GitHub pipeline creation guideline for an application
### ๐งฎ Azure Foundry
* List Azure Foundry models
* Deploy foundry models
* List foundry model deployments
* List knowledge indexes
### โ๏ธ Azure Function App
* List Azure Function Apps
* Get details for a specific Function App
### ๐ Azure Key Vault
* List, create, and import certificates
* List and create keys
* List and create secrets
### โธ๏ธ Azure Kubernetes Service (AKS)
* List Azure Kubernetes Service clusters
### ๐ฆ Azure Load Testing
* List, create load test resources
* List, create load tests
* Get, list, (create) run and rerun, update load test runs
### ๐ Azure Managed Grafana
* List Azure Managed Grafana
### โก Azure Managed Lustre
* List Azure Managed Lustre filesystems
* Get the number of IP addresses required for a specific SKU and size of Azure Managed Lustre filesystem
### ๐ช Azure Marketplace
* Get details about Marketplace products
### ๐ Azure Monitor
#### Log Analytics
* List Log Analytics workspaces
* Query logs using KQL
* List available tables
#### Health Models
* Get health of an entity
#### Metrics
* Query Azure Monitor metrics for resources with time series data
* List available metric definitions for resources
### ๐ฅ Azure Service Health
* Get the availability status for a specific resource
* List availability statuses for all resources in a subscription or resource group
### โ๏ธ Azure Native ISV Services
* List Monitored Resources in a Datadog Monitor
### ๐ก๏ธ Azure Quick Review CLI Extension
* Scan Azure resources for compliance related recommendations
### ๐ Azure Quota
* List available regions
* Check quota usage
### ๐ด Azure Redis Cache
* List Redis Cluster resources
* List databases in Redis Clusters
* List Redis Cache resources
* List access policies for Redis Caches
### ๐๏ธ Azure Resource Groups
* List resource groups
### ๐ญ Azure Role-Based Access Control (RBAC)
* List role assignments
### ๐ Azure Service Bus
* Examine properties and runtime information about queues, topics, and subscriptions
### ๐๏ธ Azure SQL Database
* Show database details and properties
* List the details and properties of all databases
* List SQL server firewall rules
### ๐๏ธ Azure SQL Elastic Pool
* List elastic pools in SQL servers
### ๐๏ธ Azure SQL Server
* List Microsoft Entra ID administrators for SQL servers
### ๐พ Azure Storage
* List and create Storage accounts
* Get detailed information about specific Storage accounts
* Manage blob containers and blobs
* Upload files to blob containers
* List and query Storage tables
* List paths in Data Lake file systems
* Get container properties and metadata
* List files and directories in File Shares
### ๐ Azure Subscription
* List Azure subscriptions
### ๐๏ธ Azure Terraform Best Practices
* Get secure, production-grade Azure Terraform best practices for effective code generation and command execution
### ๐ฅ๏ธ Azure Virtual Desktop
* List Azure Virtual Desktop host pools
* List session hosts in host pools
* List user sessions on a session host
### ๐ Azure Workbooks
* List workbooks in resource groups
* Create new workbooks with custom visualizations
* Update existing workbook configurations
* Get workbook details and metadata
* Delete workbooks when no longer needed
### ๐๏ธ Bicep
* Get the Bicep schema for specific Azure resource types
### ๐๏ธ Cloud Architect
* Design Azure cloud architectures through guided questions
</details>
For the complete list of supported services and sample prompts, see our [full documentation](https://github.com/Azure/azure-mcp/blob/main/README.md#-what-can-you-do-with-the-azure-mcp-server).
## Complete List of Supported Azure Services
The Azure MCP Server provides tools for interacting with **28 Azure service areas**:
- ๐ **Azure AI Search** - Search engine/vector database operations
- โ๏ธ **Azure App Configuration** - Configuration management
- ๐ก๏ธ **Azure Best Practices** - Secure, production-grade guidance
- ๐ฅ๏ธ **Azure CLI Extension** - Direct Azure CLI command execution
- ๐ฆ **Azure Container Registry (ACR)** - Container registry management
- ๐ **Azure Cosmos DB** - NoSQL database operations
- ๐งฎ **Azure Data Explorer** - Analytics queries and KQL
- ๐ **Azure Database for PostgreSQL** - PostgreSQL database management
- ๐ฌ **Azure Database for MySQL** - MySQL database management
- ๐ ๏ธ **Azure Developer CLI (azd)** - Template and deployment management
- โก **Azure Functions** - Function App management
- ๐งฎ **Azure Foundry** - AI model management, AI model deployment, and knowledge index management
- ๐ **Azure Managed Grafana** - Monitoring dashboards
- ๐๏ธ **Azure Managed Lustre** - High-performance Lustre filesystem operations
- ๐ **Azure Key Vault** - Secrets, keys, and certificates
- โธ๏ธ **Azure Kubernetes Service (AKS)** - Container orchestration
- ๐ฆ **Azure Load Testing** - Performance testing
- ๐ช **Azure Marketplace** - Product discovery
- ๐ **Azure Monitor** - Logging, metrics, and health monitoring
- ๐ฅ **Azure Service Health** - Resource health status and availability
- โ๏ธ **Azure Native ISV Services** - Third-party integrations
- ๐ก๏ธ **Azure Quick Review CLI** - Compliance scanning
- ๐ด **Azure Redis Cache** - In-memory data store
- ๐๏ธ **Azure Resource Groups** - Resource organization
- ๐ญ **Azure RBAC** - Access control management
- ๐ **Azure Service Bus** - Message queuing
- ๐๏ธ **Azure SQL Database** - Relational database management
- ๐๏ธ **Azure SQL Elastic Pool** - Database resource sharing
- ๐๏ธ **Azure SQL Server** - Server administration
- ๐พ **Azure Storage** - Blob, table, file, and data lake storage
- ๐ **Azure Subscription** - Subscription management
- ๐๏ธ **Azure Terraform Best Practices** - Infrastructure as code guidance
- ๐ฅ๏ธ **Azure Virtual Desktop** - Virtual desktop infrastructure
- ๐ **Azure Workbooks** - Custom visualizations
- ๐๏ธ **Bicep** - Azure resource templates
- ๐๏ธ **Cloud Architect** - Guided architecture design
## Documentation
- See our [official documentation on learn.microsoft.com](https://learn.microsoft.com/azure/developer/azure-mcp-server/) to learn how to use the Azure MCP Server to interact with Azure resources through natural language commands from AI agents and other types of clients.
- For additional command documentation and examples, see our [GitHub repository section on Azure MCP Commands](https://github.com/Azure/azure-mcp/blob/main/docs/azmcp-commands.md).
## Feedback & Support
- Check the [Troubleshooting guide](https://github.com/Azure/azure-mcp/blob/main/TROUBLESHOOTING.md) to diagnose and resolve common issues with the Azure MCP Server.
- We're building this in the open. Your feedback is much appreciated, and will help us shape the future of the Azure MCP server.
- ๐ Open an issue in the public [GitHub repository](https://github.com/Azure/azure-mcp/issues) โ weโd love to hear from you!
## Contributing
Want to contribute?
Check out our [contribution guide](https://github.com/Azure/azure-mcp/blob/main/eng/vscode/CONTRIBUTING.md) to get started.
## License
This project is licensed under the [MIT License](https://github.com/Azure/azure-mcp/blob/main/LICENSE).