KG

kalivaraprasad-gonapa/azure-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

19 stars 7 forks 品質 65 トレンド 22MIT

Claude DesktopがAzureサービスとやり取りすることを可能にするモデルコンテキストプロトコル(MCP)の実装.

概要

Claude DesktopがAzureサービスとやり取りすることを可能にするモデルコンテキストプロトコル(MCP)の実装。 この統合により、Claude は、自然言語の会話から直接 Azure リソースを照会および管理できます。 - : Azure Resource Management クライアントとのインターフェイス - : Azure サブスクリプションの一覧と管理 - : リストと select Azure テナント - : 柔軟な認証方法の DefaultAzureCredential をレバレッジする - : 過渡障害に対するレトリーによるエラー処理 - : Claude デスクトップと互換性のある適切にフォーマットされた応答 - Node.js(v18以上) - デスクトップアプリケーション - 適切な権限を持つAzureアカウント - Azure CLI(オプション、CLIベースの認証) 3。 Claudeデスクトップの設定: - claude desktop configを開きます.

概要(AI 翻訳)

Claude DesktopがAzureサービスとやり取りすることを可能にするモデルコンテキストプロトコル(MCP)の実装。 この統合により、Claude は、自然言語の会話から直接 Azure リソースを照会および管理できます。

##特徴

-アジュールリソース管理: Azureリソース管理クライアントとのインターフェイス

  • サブスクリプション管理: Azureサブスクリプションの一覧と管理
  • テナント管理: Azureテナントリストと選択
  • 自動認証: 柔軟な認証方法のDefaultAzureCredentialを活用 -エラー処理: 過渡障害に対するリトリーズによる誤差処理
  • クリーン レスポンスの書式: Claudeデスクトップと互換性のある適切にフォーマットされた応答

前提条件

  • Node.js(v18以上)
  • クロードデスクトップアプリケーション
  • 適切な権限を持つAzureアカウント
  • Azure CLI(オプション、CLIベース認証)

インストール

手動インストール

  1. リポジトリのクローン化:

  2. 依存関係を取付けて下さい:

  3. Claudeデスクトップの設定:

  • [claude_desktop_config.jsonを開く
  • 次のMCP構成を追加します。

##認証

サーバは DefaultAzureCredential で複数の認証方法をサポートしています

このページは 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
MCP 初心者?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" ] } } }