MinIO Client
$ mc Official Med RiskMinIO Client (mc) provides UNIX-like commands (mc alias set, ls, cat, cp, mirror, watch, admin) across local filesystems, MinIO servers, and S3-compatible object stores. Passing --json (or MC_JSON=true) emits clean JSON lines across all operations.
brew install minio-client mc handles high-speed object transfers, mirroring, and cluster admin ops locally via S3 APIs—never route binary object payloads through MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Global --json flag and MC_JSON=true env var produce consistent NDJSON output, and MC_HOST_<alias> allows completely stateless auth.
- Global
--jsonandMC_JSON=trueacross subcommands MC_HOST_<alias>supports zero-config-file env authentication
Supports --disable-pager and requires --force on recursive rm / rb, though mc mirror --remove and mc admin carry high impact if mis-targeted.
- Requires
--forcefor recursive object removal (mc rm -r --force)
Single static Go binary across macOS, Linux, and Windows, though mc binary name collides with Midnight Commander on some systems.
- Static Go binary via
brew install minio-clientanddl.min.io
Covers both standard S3 operations (ls, cp, mirror, diff, find) and MinIO server administration (mc admin).
- Rich UNIX-like verb set including
mc diff,mc find, andmc mirror
Official MinIO tool (minio/mc), though AGPL-3.0 licensing requires attention in commercial redistributions.
- Official
minio/mcrepository under AGPL-3.0
Comprehensive MinIO reference docs and inline -h help.
- Official reference documentation at min.io/docs
Security, Auth & Guardrails
Stores named S3/MinIO aliases in ~/.mc/config.json or reads ephemeral MC_HOST_<alias> URLs from environment variables.
AGPL-3.0 open-source CLI; connects to self-hosted MinIO or S3-compatible endpoints.
# MinIO Client (mc) Agent Rules - Always pass `--json` (before the subcommand) or set `MC_JSON=true`. - Remember that the binary name `mc` can collide with Midnight Commander on some Linux distros; verify `mc --version`. - Never run `mc rm --recursive --force`, `mc rb --force`, or `mc mirror --remove` without explicit user confirmation.
Agent-Ready Command Recipes
Safe Read-Only Queries
mc --json ls myminio/my-bucket/
Emits JSON lines describing buckets, keys, sizes, and ETags.
mc --json stat myminio/my-bucket/archive.tar.gz
Returns structured object metadata, checksum, and content type.
Controlled Writes & Previews
mc --json cp --disable-multipart=false ./dist/app.zip myminio/releases/
Uploads a specific local artifact with structured JSON progress/status output.
Strengths for Agents
- + Global
--json/MC_JSON=trueworks consistently across data and admin commands. - +
MC_HOST_<alias>env vars avoid mutating~/.mc/config.jsonin ephemeral sandboxes. - + Rich UNIX-style verbs (
diff,find,mirror,watch) across any S3-compatible store.
Caveats & Pitfalls
- ! Binary name
mcmay conflict with Midnight Commander (mc) if both are installed. - !
mcuses AGPL-3.0 license;--jsonmust be placed before the subcommand.