
kalivaraprasad-gonapa/azure-mcp
Developer toolsЭта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал
Реализация протокола Model Context Protocol (MCP), который позволяет Claude Desktop взаимодействовать с сервисами Azure.
Обзор
Реализация протокола Model Context Protocol (MCP), который позволяет Claude Desktop взаимодействовать с сервисами Azure. Эта интеграция позволяет Клоду запрашивать и управлять ресурсами Azure непосредственно через разговоры на естественном языке. - Интерфейс с клиентом Azure Resource Management - : Список и управление подписками Azure - : Список и выбор арендаторов Azure - : Использование DefaultAzureCredential для гибких методов аутентификации - : Надежная обработка ошибок с повторными запросами на временные сбои - : Правильно отформатированные ответы, совместимые с Claude Desktop Node.js (v18 или выше) - Приложение Claude Desktop - Учетная запись Azure с соответствующими разрешениями - Azure CLI (необязательно для аутентификации на основе CLI) 3. Configure Claude Desktop: - Open claude desktop config.
Обзор (машинный перевод)
Реализация протокола Model Context Protocol (MCP), который позволяет Claude Desktop взаимодействовать с сервисами Azure. Эта интеграция позволяет Клоду запрашивать и управлять ресурсами Azure непосредственно через разговоры на естественном языке.
Особенности
Управление природными ресурсами: Интерфейс клиента Azure Resource Management ** Управление подпиской**: Список и управление подписками Azure ** Менеджмент-тенант**: Список и выбор арендаторов Azure ** Автоматическая аутентификация**: Использование DefaultAzureCredential для гибких методов аутентификации ** Обработка ошибок** Надежная обработка ошибок с повторными запросами для переходных отказов Чистый формат ответа: Правильно отформатированные ответы, совместимые с Claude Desktop
Предпосылки
Node.js (v18 или выше) Приложение Claude Desktop Учетная запись Azure с соответствующими разрешениями Azure CLI (необязательно для аутентификации на основе CLI)
##Установка
Ручная установка
-
Клонировать хранилище:
-
Установить зависимости:
3.Настройка Claude Desktop:
- Открыть
claude_desktop_config.json - Добавить следующую конфигурацию MCP:
Аутентификация
Сервер поддерживает несколько методов аутентификации через DefaultAzureCredential:
Эта страница переведена автоматически. Технические детали смотрите в оригинале.
README
Показан фрагмент оригинального README. Открыть оригинал.
Azure MCP (Model Context Protocol) for Claude Desktop
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
Prerequisites
- Node.js (v18 or higher)
- Claude Desktop Application
- Azure Account with appropriate permissions
- Azure CLI (optional, for CLI-based authentication)
Installation
Manual Installation
- Clone the repository:
git clone https://github.com/Streen9/azure-mcp.git
cd azure-mcp
- Install dependencies:
npm install
- Configure Claude Desktop:
- Open
claude_desktop_config.json - Add the following MCP configuration:
- Open
{
"mcpServers": {
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
},
"azure": {
"command": "tsx",
"args": [
"C:/Users/[YourUsername]/path/to/azure-mcp/src/launcher.ts"
]
}
}
}
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.
Usage
- Close Claude Desktop if it’s running (check Task Manager)
- Start Claude Desktop
- In the chat, you can now ask Azure-related questions like:
- “Can you get all the available Azure accounts and subscriptions?”
- “List all resource groups in my subscription”
- “Show me all virtual machines in a specific resource group”
Example Conversation
You: Can you get all the available Azure accounts and subscriptions?
Claude: I'll help you list all available Azure tenants and subscriptions.
[Claude will then use the Azure MCP to fetch and display the information]
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
Установка
npx -y @modelcontextprotocol/server-sequential-thinkingКонфигурация
{
"mcpServers": {
"sequential-thinking": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-sequential-thinking"
]
},
"azure": {
"command": "tsx",
"args": [
"C:/Users/[YourUsername]/path/to/azure-mcp/src/launcher.ts"
]
}
}
}