minio_mcp
A FastMCP-based server that enables uploading text and base64-encoded content to MinIO object storage through an HTTP transport. It supports automated bucket management and secure file path generation to streamline remote storage operations.
README
FastMCP + MinIO 上传服务(STDIO)
这是一个基于 FastMCP 的 MCP 服务,使用 STDIO 方式对外提供工具,并把内容上传到 MinIO。
1. 安装依赖
pip install -r requirements.txt
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-mcp
5. 可用工具
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": []
}
}
}
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。