Azure MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Azure MCP Serverlist my virtual machines"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Azure MCP Server
A Model Context Protocol (MCP) server built with mcp-framework that provides tools for interacting with Azure services.
Quick Start
# Install dependencies
npm install
# Build the project
npm run build
# Start the server
npm startRelated MCP server: Azure DevOps MCP Server with PAT Authentication
Project Structure
azure-mcp-server/
├── src/
│ ├── tools/ # MCP Tools
│ │ ├── Storage/ # Azure Storage tools
│ │ ├── VirtualMachine/ # Azure VM tools
│ │ └── AppService/ # Azure App Service tools
│ └── index.ts # Server entry point
├── package.json
└── tsconfig.jsonAzure Tools Overview
This server provides tools for interacting with multiple Azure services:
Service | Tool Prefix | Description |
Storage |
| Blob storage operations |
Virtual Machines |
| VM management operations |
App Service |
| App Service operations |
Authentication
All tools use DefaultAzureCredential from @azure/identity, which tries multiple authentication methods in the following order:
Environment variables (AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET)
Managed Identity
Azure CLI credentials
Visual Studio Code credentials
Interactive browser login (as a fallback)
Available Tools
Azure Storage Tools
Required Permissions
Storage Account Contributor: For managing storage account settings
Storage Blob Data Contributor: For CRUD operations on blobs and containers
Container Operations
Tool | Description | Example Input |
azure_list_containers | List containers |
|
azure_create_container | Create container |
|
azure_delete_container | Delete container |
|
Blob Operations
Tool | Description | Example Input |
azure_list_blobs | List blobs |
|
azure_upload_blob | Upload blob |
|
azure_download_blob | Download blob |
|
azure_delete_blob | Delete blob |
|
Azure Virtual Machine Tools
Required Permissions
Virtual Machine Contributor: For managing VMs
Reader: For listing and viewing VM details
VM Operations
Tool | Description | Example Input |
azure_vms_list | List VMs |
|
azure_vms_start | Start VM |
|
azure_vms_stop | Stop VM |
|
azure_vms_restart | Restart VM |
|
azure_vms_delete | Delete VM |
|
Azure App Service Tools
Required Permissions
Website Contributor: For managing App Services
Reader: For listing and viewing App Service details
App Service Operations
Tool | Description | Example Input |
azure_apps_list | List App Services |
|
azure_apps_get | Get App Service details |
|
azure_apps_get_config | Get App Service config |
|
azure_apps_start | Start App Service |
|
azure_apps_stop | Stop App Service |
|
azure_apps_restart | Restart App Service |
|
Tool Development
Creating a New Tool
import { MCPTool } from 'mcp-framework';
import { z } from 'zod';
interface MyToolInput {
message: string;
}
class MyTool extends MCPTool<MyToolInput> {
name = 'my_tool';
description = 'Describes what your tool does';
schema = {
message: {
type: z.string(),
description: 'Description of this input parameter'
}
};
async execute(input: MyToolInput) {
// Your tool logic here
return `Processed: ${input.message}`;
}
}
export default MyTool;Debugging
If you encounter issues with the Azure tools, check the console logs for detailed debugging information. Common issues include:
Authentication failures
Missing permissions
Non-existent resources
Network connectivity problems
Building and Testing
Make changes to your tools
Run
npm run buildto compileThe server will automatically load your tools on startup
Learn More
This server cannot be deployed
Maintenance
Related MCP Connectors
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Manage brainCloud apps, cloud code, hooks and servers; API lookups to help generate client code.
Unified API to query AWS, GCP, Azure and generate Terraform/CLI execution kits for AI agents.
- ZopDev MCPOAuthdev.zop
Cloud cost, inventory and governance on AWS/Azure/GCP. Read-only by default, optional scoped writes
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides tools for listing and querying Azure resources directly from any MCP client, allowing you to efficiently browse your Azure infrastructure and analyze costs without leaving your workflow.3-
- FlicenseBqualityDmaintenanceEnables interaction with Azure DevOps services through Personal Access Token authentication. Provides 75 tools for managing work items, builds, repositories, pull requests, and other DevOps operations via both CLI and HTTP API interfaces.701-
- FlicenseNot gradedqualityNot gradedmaintenanceEnables management of Azure Key Vault secrets and certificates, including creation, retrieval, deletion, format conversion (PEM/CRT to PFX), certificate chain imports, and self-signed certificate generation.-
- AlicenseBqualityDmaintenanceEnables intelligent interaction with Azure resources through natural language by translating requests into safe, auditable Azure CLI commands with plan/review workflows and direct access to 8 Azure services including Storage, Cosmos DB, Key Vault, and more.31MIT