minio_mcp
Provides tools to upload text and base64 encoded content to MinIO buckets, featuring automatic object path generation with anti-collision strategies and support for custom bucket selection.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@minio_mcpupload this log text to the 'logs' bucket as system.log"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
FastMCP + MinIO 上传服务(STDIO)
这是一个基于 FastMCP 的 MCP 服务,使用 STDIO 方式对外提供工具,并把内容上传到 MinIO。
1. 安装依赖
pip install -r requirements.txtRelated MCP server: @zhigang1992/uploadfile-mcp
2. 配置环境变量
复制 .env.example 并按实际环境修改:
# Windows (cmd)
copy .env.example .env主要配置项:
MINIO_ENDPOINT:例如127.0.0.1:9000MINIO_ACCESS_KEYMINIO_SECRET_KEYMINIO_SECURE:true/falseMINIO_DEFAULT_BUCKET:默认 bucketMINIO_AUTO_CREATE_BUCKET:bucket 不存在时是否自动创建MINIO_OBJECT_PREFIX:对象路径前缀(默认uploads)MCP_HOST:默认0.0.0.0MCP_PORT:默认8000
3. 本地启动(调试)
python server.py服务将以 FastMCP STDIO transport 启动。
4. 打包与安装(给其他服务器)
本项目已提供 Python 打包文件 pyproject.toml,并暴露命令入口:minio-mcp。
4.1 从 GitHub 安装(推荐)
注意:必须使用
git+前缀,否则会出现 cannot detect archive format。
pip install "git+https://github.com/ClearMind1/minio_mcp.git"指定分支或标签:
pip install "git+https://github.com/ClearMind1/minio_mcp.git@main"
# 或
pip install "git+https://github.com/ClearMind1/minio_mcp.git@v0.1.0"4.2 全局工具化安装(可选)
pipx install "git+https://github.com/ClearMind1/minio_mcp.git"
# 或
uv tool install "git+https://github.com/ClearMind1/minio_mcp.git"安装后验证命令:
# Windows
where minio-mcp
# Linux / macOS
which minio-mcp5. 可用工具
upload_base64_to_minio
上传 base64 编码内容到 MinIO。
参数:
file_namecontent_base64bucket(可选)object_name(可选,传入则覆盖自动生成策略)content_type(可选,默认application/octet-stream)
upload_file_to_minio
上传本地文件到 MinIO。
参数:
file_path:本地文件路径(必填)file_name(可选,默认取file_path的文件名)bucket(可选)object_name(可选,传入则覆盖自动生成策略)content_type(可选,默认自动按文件名猜测,失败则application/octet-stream)
默认对象路径策略(防重名)
未传 object_name 时,服务自动生成对象路径:
{MINIO_OBJECT_PREFIX}/YYYY/MM/DD/{uuid}_{safe_filename}
示例:
uploads/2026/02/10/6c0ecb7d3e4f4d24a7f6f512a8d57f4f_hello.txt
6. AstrBot 下载使用
使用webui上的pip下载,库名填写
git+https://github.com/ClearMind1/minio_mcp.git
PyPI仓库的链接填写
https://pypi.org/simple
7. MCP 客户端配置示例(stdio)
{
"mcpServers": {
"minio": {
"type": "stdio",
"command": "minio-mcp",
"args": [],
"env": {
"MINIO_ENDPOINT": "127.0.0.1:9000",
"MINIO_ACCESS_KEY": "your-access-key",
"MINIO_SECRET_KEY": "your-secret-key",
"MINIO_SECURE": "false",
"MINIO_REGION": "us-east-1",
"MINIO_DEFAULT_BUCKET": "your-bucket"
},
"disabled": false,
"alwaysAllow": []
}
}
}如果不使用全局命令,也可以直接用 Python 启动:
{
"mcpServers": {
"minio": {
"type": "stdio",
"command": "python",
"args": ["server.py"],
"cwd": "d:/code/MCP/minio_mcp",
"disabled": false,
"alwaysAllow": []
}
}
}Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
2 tool updates
v0.1.2- First observed
upload_base64_to_minio - First observed
upload_file_to_minio
TDQS
Scored across 2 tools
The two tools have overlapping purposes—both upload files to MinIO—with only minor distinctions in input format (base64 vs. local file). An agent could easily misselect between them if the input format isn't clearly specified, as the core action is identical. The descriptions help differentiate, but the fundamental overlap in functionality creates ambiguity.
The tool names follow a perfectly consistent verb_noun pattern: both start with 'upload', followed by a descriptor ('base64' or 'file'), and end with 'to_minio'. This predictable naming scheme makes it easy for agents to understand and select tools without confusion.
With only 2 tools, the server feels severely under-scoped for a MinIO integration, which typically involves operations like listing, downloading, deleting, or managing buckets. The count is too low to cover the basic CRUD/lifecycle needs of file storage, limiting agent functionality.
The tool surface is extremely incomplete for a MinIO server, covering only upload operations with no ability to retrieve, list, delete, or manage files or buckets. This creates significant gaps that will cause agent failures in most file storage workflows, as agents cannot perform basic operations beyond uploading.
Maintenance
Related MCP Connectors
MCP server for InsForge BaaS — database, storage, edge functions, and deployments
Tigris MCP Server seamlessly connects AI agents to Tigris bucket and object management.
MCP server for MiniMax H3 multimodal video generation
MCP server for the FFmpeg Micro video transcoding API — create, monitor, download transcodes.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceAn MCP server for managing and publishing 3D files using S3-compatible storage providers like Cloudflare R2 and AWS S3. It enables users to upload models, generate interactive 3D viewers, and manage temporary access via presigned URLs.-
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables users to upload local files to S3-compatible storage and retrieve shareable public URLs. Files are automatically organized into unique UUID-based folders to prevent naming conflicts while preserving original filenames.13 npmMIT
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that provides a bridge between MCP-compatible clients and MinIO object storage. It exposes MinIO operations as MCP tools for seamless bucket management and object operations.4-
- FlicenseNot gradedqualityDmaintenanceEnables uploading files to MinIO (S3 compatible) via MCP tools. Supports Base64 file upload and optional curl command generation.-