minio-mcp-server
minio-mcp-server
An MCP server exposing MinIO/S3 object storage operations as tools for LLM agents.
Tools
list_buckets— list all bucketslist_objects(bucket, prefix, recursive)— list objects in a bucketget_object(bucket, name)— read a text object's contentput_object(bucket, name, content)— write text content to an objectmake_bucket(bucket)— create a bucket if it doesn't existremove_object(bucket, name)— delete an objectpresigned_url(bucket, name, expires_seconds)— generate a presigned GET URL
Setup
Create a virtual environment and install dependencies:
python3 -m venv venv source venv/bin/activate pip install -r requirements.txtCopy
.env.exampleto.envand fill in your MinIO credentials:cp .env.example .envVariable
Description
MINIO_ENDPOINTHost and port of your MinIO server, e.g.
localhost:9000MINIO_ACCESS_KEYMinIO access key
MINIO_SECRET_KEYMinIO secret key
MINIO_SECUREtrueto use HTTPS,falsefor HTTPRun the server:
python server.py
Security
.env is gitignored and must never be committed — it contains live credentials. Use dedicated, least-privilege MinIO credentials for this server rather than the root/admin account.