Integrations
Supports configuration through environment variables, allowing users to set S3/Kodo credentials, control bucket access limits, and specify which buckets to interact with.
Provides compatibility with Linux systems for running the server with specific activation commands for Linux environments.
Supports macOS environments with specific activation commands tailored for macOS systems.
Qiniu MCP Server
一个基于 MCP (Model Control Protocol) 的 S3 资源服务器,支持访问和管理七牛云 Kodo 存储服务。
功能特性
- 支持列举存储桶(Buckets)
- 支持列举对象(Objects)
- 支持读取对象内容
- 支持文本和图片等多种类型的内容展示
- 支持配置指定的存储桶访问
- 支持并发处理多个存储桶
前置要求
- Python 3.12 或更高版本
- uv 包管理器
如果还没有安装 uv,可以使用以下命令安装:
安装
- 克隆仓库:
- 创建并激活虚拟环境:
- 安装依赖:
配置
- 复制环境变量模板:
- 编辑
.env
文件,配置以下参数:
使用方法
启动服务器
- 使用标准输入输出(stdio)模式启动(默认):
- 使用 SSE 模式启动(用于 Web 应用):
可用工具
服务器提供以下工具:
- ListBuckets
- 列举所有可用的存储桶
- 参数:
prefix
:(可选)存储桶名称前缀max_buckets
:(可选)返回的最大存储桶数量
- ListObjectsV2
- 列举存储桶中的对象
- 参数:
bucket
:(必需)存储桶名称prefix
:(可选)对象键前缀max_keys
:(可选)返回的最大对象数量
- GetObject
- 获取对象内容
- 参数:
bucket
:(必需)存储桶名称key
:(必需)对象键名
支持的文件类型
服务器支持以下文件类型的处理:
- 文本文件
- 图片文件
- 所有标准图片格式(image/*)
测试
强烈推荐使用 Model Control Protocol Inspector 进行测试。
This server cannot be installed
An S3 resource server based on Model Control Protocol (MCP) that supports accessing and managing Qiniu Cloud Kodo storage services, enabling users to list buckets, browse objects, read content, and handle multiple storage buckets concurrently.