Azure MCP Server
Click on "Install 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 startProject 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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/matthewfreshit/azure-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server