================== /// MCP /// /// AZU /// ================== [server:online] [protocol:ready]
azure-cli-mcp
by jdubois
Java-based MCP server that wraps the Azure CLI, adds prompt-enhancements and exposes it through the Model Context Protocol (stio transport).
73
13
Open Source01
azure-cli-mcp
MCP tool that wraps the Azure CLI, letting you run any Azure CLI command (list, create, update, delete Azure resources, etc.) through the MCP interface.
Installation
1. Prerequisites
• Java 17 or newer (JDK) installed and available on PATH.
• Maven 3.8+ (if you prefer using the wrapper, mvnw is included in the repository).
• Azure CLI installed and logged-in (az login) – the server delegates all cloud operations to Azure CLI.
2. Clone the repository
git clone https://github.com/jdubois/azure-cli-mcp.git
cd azure-cli-mcp
3. Build the project
./mvnw clean package -DskipTests
# or
mvn clean package -DskipTests
The fat-jar will be generated in target/azure-cli-mcp-<version>.jar
4. Launch the MCP server
java -jar target/azure-cli-mcp-<version>.jar
# The server starts on port 8080 by default. Override with:
java -jar target/azure-cli-mcp-<version>.jar --server.port=9090
5. First time configuration (optional)
• Ensure az is authenticated to the desired subscription.
• Export AZURE_SUBSCRIPTION_ID and any additional environment variables the model needs.
6. Using Docker (alternative runtime)
docker build -t azure-cli-mcp .
docker run -p 8080:8080 -e AZURE_SUBSCRIPTION_ID=<id> azure-cli-mcp
7. Updating
git pull origin main && ./mvnw clean package
8. Uninstall
Simply stop the running process or remove the Docker container.
Documentation
License: MIT License
Updated 7/30/2025