# 多云存储连接器
## 基本信息
- Slug: `xuanwo-mcp-server-opendal`
- Source: modelscope
- Publisher: @Xuanwo/mcp-server-opendal
- Categories: cloud-storage / file-systems
- Hosted: No
- License: Apache License 2.0
- Source URL: https://www.modelscope.cn/mcp/servers/@Xuanwo/mcp-server-opendal
## 简介
一个模型上下文协议服务器，通过 Apache OpenDAL™ 提供对多种存储服务的无缝访问，包括 S3、Azure Blob 存储和 Google Cloud 存储。
## 安装提示

```bash
pip install mcp-server-opendal
```

## MCP Server 详情

# Model Context Protocol Server for Apache OpenDAL™
一个实现了模型上下文协议（MCP）的服务器，通过 [Apache OpenDAL™](https://opendal.apache.org/) 提供对多种存储服务的访问。

[![PyPI - Version](https://img.shields.io/pypi/v/mcp-server-opendal)](https://pypi.org/project/mcp-server-opendal/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/mcp-server-opendal)](https://pypi.org/project/mcp-server-opendal/)
[![Lint and Test](https://github.com/Xuanwo/mcp-server-opendal/actions/workflows/test.yml/badge.svg)](https://github.com/Xuanwo/mcp-server-opendal/actions/workflows/test.yml)

## 特性

- 无缝访问多种存储服务，包括 S3、Azure Blob Storage、Google Cloud Storage 等
- 列出存储服务中的文件和目录
- 自动检测文本/二进制读取文件内容
- 基于环境变量的配置

## 安装

```shell
pip install mcp-server-opendal
```


## 使用

通过设置环境变量来配置存储服务。每个服务需要一个前缀以及特定的配置选项。

例如，要使用别名 "mys3" 配置一个 S3 服务：

```
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
```


之后，您可以使用 `read` 和 `list` 工具，并以 `mys3://path/to/file` 的方式指定路径。

`mcp-server-opendal` 也会从 `.env` 文件中加载配置。

## 开发

```shell
npx @modelcontextprotocol/inspector \
  uv run mcp-server-opendal
```

