EA

erikhoward/adls-mcp-server

开发工具

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

6 stars 6 forks 质量 64 趋势 14MIT

Microsoft Azure Data Lake Storage MCP Server

概览

A Model Context Protocol (MCP) server implementation for Azure Data Lake Storage Gen2. This service provides a standardized interface for interacting with ADLS2 storage, enabling file operations through MCP tools. Open claude_desktop_config.json and add the following configuration. On MacOs, the file is located here: ~/Library/Application Support/Claude Desktop/claude_desktop_config.json. On Windows, the file is located here: %APPDATA%\Claude Desktop\claude_desktop_config.json. The following is a table of available environment configuration variables: If AZURE_STORAGE_ACCOUNT_KEY is not set, the server will attempt to authenticate using Azure CLI credentials.

README

以下为原文 README 节选,完整内容请查看原文。

ADLS2 MCP Server 🚀

A Model Context Protocol (MCP) server implementation for Azure Data Lake Storage Gen2. This service provides a standardized interface for interacting with ADLS2 storage, enabling file operations through MCP tools.

Setup 🛠️

Installation 📦

Requires Python 3.13 or higher.

Install the package using uv:

uv pip install adls2-mcp-server

MCP Configuration ⚙️

Claude Desktop Configuration

1 - Edit Claude Desktop Configuration:

Open claude_desktop_config.json and add the following configuration.

On MacOs, the file is located here: ~/Library/Application Support/Claude Desktop/claude_desktop_config.json.

On Windows, the file is located here: %APPDATA%\Claude Desktop\claude_desktop_config.json.

{
    "mcpServers": {
        "adls2": {
            "command": "adls2-mcp-server",
            "env": {
                "LOG_LEVEL": "DEBUG",
                "UPLOAD_ROOT": "/path/to/store/uploads",
                "DOWNLOAD_ROOT": "/path/to/store/downloads",
                "AZURE_STORAGE_ACCOUNT_NAME": "your-azure-adls2-storage-account-name",
                "READ_ONLY_MODE": "false"
            }
        }
    }
}

The following is a table of available environment configuration variables:

Variable Description Default
LOG_LEVEL Logging level INFO
UPLOAD_ROOT Root directory for file uploads ./uploads
DOWNLOAD_ROOT Root directory for file downloads ./downloads
AZURE_STORAGE_ACCOUNT_NAME Azure ADLS2 storage account name None
AZURE_STORAGE_ACCOUNT_KEY Azure ADLS2 storage account key (optional) None
READ_ONLY_MODE Whether the server should operate in read-only mode true

If AZURE_STORAGE_ACCOUNT_KEY is not set, the server will attempt to authenticate using Azure CLI credentials. Ensure you have logged in with Azure CLI before running the server:

az login

2 - Restart Claude Desktop.

Available Tools 🔧

Filesystem (container) Operations

  • list_filesystems - List all filesystems in the storage account
  • create_filesystem - Create a new filesystem
  • delete_filesystem - Delete an existing filesystem

File Operations

  • upload_file - Upload a file to ADLS2
  • download_file - Download a file from ADLS2
  • file_exists - Check if a file exists
  • rename_file - Rename/move a file
  • get_file_properties - Get file properties
  • get_file_metadata - Get file metadata
  • set_file_metadata - Set file metadata
在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "adls2": { "command": "adls2-mcp-server", "env": { "LOG_LEVEL": "DEBUG", "UPLOAD_ROOT": "/path/to/store/uploads", "DOWNLOAD_ROOT": "/path/to/store/downloads", "AZURE_STORAGE_ACCOUNT_NAME": "your-azure-adls2-storage-account-name", "READ_ONLY_MODE": "false" } } } }