OpenDAL MCP server

Integrates with OpenDAL to provide unified access to diverse storage backends, enabling LLMs to read from and write to various storage systems for data management tasks.
Back to servers
Setup instructions
Provider
Xuanwo
Release date
Mar 05, 2025
Language
Python
Package
Stats
881 downloads
33 stars

Model Context Protocol (MCP) Server for Apache OpenDAL is a versatile tool that provides standardized access to numerous storage services through the Apache OpenDAL framework. This server implementation allows you to seamlessly interact with cloud storage providers like S3, Azure Blob Storage, Google Cloud Storage, and many more using a consistent interface.

Features

  • Access multiple storage services including S3, Azure Blob Storage, Google Cloud Storage, and more
  • List files and directories from connected storage services
  • Read file contents with automatic text/binary detection
  • Simple configuration using environment variables

Installation

Install the MCP server using pip:

pip install mcp-server-opendal

Usage with Claude Desktop

To use this server with Claude Desktop, add the following configuration to your claude_desktop_config.json file:

{
  "mcpServers": {
    "opendal": {
      "command": "uvx",
      "args": [
        "mcp-server-opendal"
      ],
      "env": {
        "YOUR_ENV_VAR": "YOUR_ENV_VALUE"
      }
    }
  }
}

This setup requires uv to be installed on your system. You can find installation instructions at the official uv documentation.

Configuration

Environment Variables

You can configure storage services by setting environment variables. Each service requires a specific prefix and configuration options.

For example, to configure an S3 service with the alias "mys3":

OPENDAL_MYS3_TYPE=s3
OPENDAL_MYS3_BUCKET=mybucket
OPENDAL_MYS3_REGION=us-east-1
OPENDAL_MYS3_ENDPOINT=http://localhost:9000
OPENDAL_MYS3_ACCESS_KEY_ID=myaccesskey
OPENDAL_MYS3_SECRET_ACCESS_KEY=mysecretkey

After configuration, you can use tools like read and list with the URI format mys3://path/to/file.

The server also supports loading configuration from a .env file in your working directory.

Basic Operations

Listing Files

Once configured, you can list files and directories in your storage service.

Reading Files

The server automatically detects if a file is text or binary and provides appropriate access to the file contents.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "opendal" '{"command":"uvx","args":["mcp-server-opendal"],"env":{"YOUR_ENV_VAR":"YOUR_ENV_VALUE"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "opendal": {
            "command": "uvx",
            "args": [
                "mcp-server-opendal"
            ],
            "env": {
                "YOUR_ENV_VAR": "YOUR_ENV_VALUE"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "opendal": {
            "command": "uvx",
            "args": [
                "mcp-server-opendal"
            ],
            "env": {
                "YOUR_ENV_VAR": "YOUR_ENV_VALUE"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later