KG

kalivaraprasad-gonapa/azure-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

19 stars 7 forks 质量 65 趋势 22MIT

一个模式背景协议(MCP)执行,使克洛德桌面能够与Azure服务互动.

概览

一个模式背景协议(MCP)执行,使克洛德桌面能够与Azure服务互动. 这种整合使得克洛德可以通过自然语言对话直接查询和管理Azure资源. - 与 Azure 资源管理客户端的接口 - : 列出并管理 Azure 订阅 - : 列出并选择 Azure 租户 - : 灵活认证方法的Levages Default Azure Creditic - : 为瞬间故障进行重试的强力错误处理 - : 与 Claude 桌面兼容的正确格式化的响应 - Node.js (v18或更高) - Claude桌面应用程序 - Azure 账户有适当的权限 - Azure CLI(可选,用于基于CLI的认证) 3. 配置 Claude 桌面: - 打开 Claude desktop config.

概述(AI 翻译)

一个模式背景协议(MCP)执行,使克洛德桌面能够与Azure服务互动. 这种整合使得克洛德可以通过自然语言对话直接查询和管理Azure资源.

□ 特性

  • ** 祖尔资源管理**: 与 Azure 资源管理客户端的接口
  • ** 订阅管理**: 列出和管理 Azure 订阅
  • ** 十年管理**: 列出和选择 Azure 租户
  • ** 自动认证**: 灵活认证方法的证书
  • ** 不当处理**: 对瞬间故障的重试进行强力错误处理
  • ** 干净反应格式**: 与 Claude 桌面兼容的正确格式化的回复

□ 先决条件

  • 节点.js(v18或以上)
  • 克洛德桌面应用程序
  • 经适当许可的Azure账户
  • Azure CLI(可选,用于基于CLI的认证)

□ 安装

手动安装

  1. 清除储存库:

  2. 安装依赖性:

  3. 配置克洛德桌面 :

  • 打开claude_desktop_config.json
  • 添加以下MCP配置:

□ 认证

该服务器通过默认AzureCreditic支持多种认证方法:

本页由 AI 翻译,技术细节请以原文为准。

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

  1. Clone the repository:
git clone https://github.com/Streen9/azure-mcp.git
cd azure-mcp
  1. Install dependencies:
npm install
  1. Configure Claude Desktop:
    • Open claude_desktop_config.json
    • Add the following MCP configuration:
{
  "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

  1. Close Claude Desktop if it’s running (check Task Manager)
  2. Start Claude Desktop
  3. 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

在 GitHub 查看完整 README

安装

npx -y @modelcontextprotocol/server-sequential-thinking
新手?先看 mcpskill.org 教程 →

配置

{ "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" ] } } }