Azure CLI MCP Server logo

Azure CLI MCP Server

by jdubois

This MCP Server wraps the Azure CLI, adding a nice prompt to improve how it works, and exposes it through the Model Context Protocol. It allows you to interact with Azure resources using natural language through tools like VS Code and Claude Desktop.

View on GitHub

Last updated: N/A

What is Azure CLI MCP Server?

The Azure CLI MCP Server is a wrapper around the Azure CLI that exposes it as an MCP server. This allows you to interact with Azure resources using natural language through tools that support the Model Context Protocol.

How to use Azure CLI MCP Server?

The server can be installed using Docker or as a Java executable JAR file. It can then be configured to work with tools like VS Code and Claude Desktop by adding the server configuration to the respective configuration files. The server uses the stio transport and requires Azure credentials to be configured.

Key features of Azure CLI MCP Server

  • Access to the full Azure CLI functionality

  • Improved prompt for better interaction

  • Integration with VS Code and Claude Desktop

  • Support for creating, configuring, and managing Azure resources

  • Ability to fix configuration and security issues

Use cases of Azure CLI MCP Server

  • Listing Azure resources and checking their configuration

  • Fixing configuration or security issues in Azure resources

  • Creating Azure resources like Container Apps, Container Registries, and connecting them using managed identity

  • Automating Azure tasks using natural language

  • Getting rate limits of models deployed to Azure OpenAI

FAQ from Azure CLI MCP Server

Is it safe to use?

It is recommended to validate the commands generated by the LLM driving the MCP server. Use at your own risk, as the software is provided "AS IS" without warranty of any kind.

Is it secured, and should I run this on a remote server?

No. The current implementation only works with the stio transport and is supposed to run locally on your machine, using your Azure CLI credentials.

How do I install it?

The server can be installed using Docker or as a Java executable JAR file. Instructions for both methods are provided in the README.

What Azure credentials do I need?

You need to create an Azure Service Principal with the appropriate permissions and configure the AZURE_CREDENTIALS environment variable with the JSON output from the Service Principal creation.

Can I use the http transport?

Currently, only the stio transport is available. The http transport will be available later.