Labsco
kalivaraprasad-gonapa logo

Azure

โ˜… 18

from kalivaraprasad-gonapa

Interact with and manage Azure services using natural language.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

Azure MCP (Model Context Protocol) for Claude Desktop

smithery badge

A Model Context Protocol (MCP) implementation that enables Claude Desktop to interact with Azure services. This integration allows Claude to query and manage Azure resources directly through natural language conversations.

Features

  • Azure Resource Management: Interface with Azure Resource Management client
  • Subscription Management: List and manage Azure subscriptions
  • Tenant Management: List and select Azure tenants
  • Automatic Authentication: Leverages DefaultAzureCredential for flexible authentication methods
  • Error Handling: Robust error handling with retries for transient failures
  • Clean Response Formatting: Properly formatted responses compatible with Claude Desktop

Authentication

The server supports multiple authentication methods through DefaultAzureCredential:

  • Environment Variables
  • Managed Identity
  • Azure CLI
  • Visual Studio Code
  • Interactive Browser

The server will automatically try these methods in sequence until one succeeds.

Development

Project Structure

azure-mcp/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ launcher.ts       # Server entry point
โ”‚   โ”œโ”€โ”€ AzureServer.ts    # Main MCP server implementation
โ”‚   โ””โ”€โ”€ LoggerService.ts  # Logging utility
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ README.md

Key Components

  • AzureMCPServer: Main server class implementing the MCP protocol
  • HandleCallTool: Processes incoming tool requests
  • ExecuteWithRetry: Implements retry logic for resilient operations

Security Note

This implementation follows Azure security best practices:

  • No hardcoded credentials
  • Secure credential chain implementation
  • Proper error handling and sanitization

For security concerns or vulnerabilities, please create an issue.