jdubois/azure-cli-mcp
FreeAzure CLI 命令行包装器,允许直接与 Azure 对话。
FreeFree tier
Inputs: textOutputs: text
About jdubois/azure-cli-mcp
This is an MCP Server that wraps the Azure CLI, adds a prompt to improve how it works, and exposes it. It provides full access to the Azure CLI, allowing users to list resources, check configurations, fix security issues, and create Azure resources via natural language conversations.
Key Features
Full Azure CLI access: can run any az command
Enhanced with a prompt to improve LLM-generated commands
Supports listing resources and checking configurations
Can fix configuration and security issues
Can create Azure resources (e.g., Container Apps, Container Registry)
Works with Claude Desktop and VS Code
Uses stdio transport for local execution
Pros & Cons
Pros
- Leverages powerful LLMs like Claude 3.7 and GPT-4o with strong Azure training data
- Enables natural language interaction with Azure CLI, reducing manual commands
- Open-source and free to use
- Quick setup with Claude Desktop or VS Code
- Can automate complex multi-step Azure tasks
Cons
- Not secure for remote use; only supports local stdio transport
- Requires user to validate commands generated by the LLM
- Requires Java JVM 17+ and Azure CLI pre-installed
- Current implementation may be vulnerable to command injection if used maliciously
- Limited to local machine execution (no remote server support yet)
Best For
Managing Azure resources via natural languageChecking and fixing security configurationsAutomating Azure resource creationListing and querying Azure resourcesIntegrating with Claude Desktop or VS Code for interactive Azure management
FAQ
Is it safe to use?
The software is provided 'as is' without warranty. It is recommended to be careful and validate the commands generated by the LLM. Using a good LLM like Claude 3.7 or GPT-4o, which has excellent Azure training data, results in a good experience.
Is it secured, and should I run this on a remote server?
No, it is not secured for remote use. The current implementation only works with the stdio transport, intended to run locally on your machine using your Azure CLI credentials. It is vulnerable to attackers if exposed. Future versions may support HTTP transport and Azure token authentication.
How do I install it?
Prerequisites: Install Azure CLI and authenticate with 'az login'. Then download the latest azure-cli-mcp.jar from the GitHub Releases page using 'gh release download --repo jdubois/azure-cli-mcp --pattern='azure-cli-mcp.jar''. Configure with Claude Desktop or VS Code by adding the server configuration pointing to the jar file.