Back to MCP directory
publicPublicdnsLocal runtime

mcp-s3-server

MCP是一个基于Python的对象存储服务协议,支持桶和对象的基本操作管理。

article

README

🚀 对象存储服务MCP

对象存储服务MCP(模型上下文协议)服务器,可支持对象存储的一系列操作,为对象存储提供便捷的服务。

🚀 快速开始

环境要求

Python >= 3.11

安装指南

  1. 将本项目拉取到本地
  2. 安装依赖
uv sync

使用示例

基础用法

在mcp客户端中配置server:

{
  "mcpServers": {
    "bilibili": {
      "command": "uv",
      "args": [
        "--directory",
        "/your-project-path/src/s3-server",
        "run",
        "server.py"
      ],
      "env": {
        "ENDPOINT": "endpoint",
        "ACCESS_KEY_ID": "your access key",
        "ACCESS_KEY_SECRET": "your access secret"
      }
    }
  }
}

支持操作

  • list-buckets:列出所有桶
  • exists-bucket:判断桶是否存在
  • create-bucket:创建一个新的桶
  • delete-bucket:删除桶
  • list-objects:查询桶下的对象
  • get-object:获取对象,保存到本地文件
  • put-object:上传本地文件到桶中
  • delete-object:删除对象
  • get-object-metadata:获取对象元数据
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client