bucket_helper.mcp module

Bucket Helper: Model Context Protocol (MCP) surface.

A thin adapter that exposes the FastAPI app from bucket_helper.api as MCP tools, so any MCP-aware host (an agent runtime, an IDE integration, a custom shell) can call the bucket-helper utilities — upload, download, delete, exists, list, make-bucket, tempfile, strip-path — as first-class tools, against AWS S3 or any S3-compatible endpoint (MinIO, R2, B2, Spaces, Wasabi). Uses fastapi-mcp (https://github.com/tadata-org/fastapi_mcp): one wrapper publishes the whole existing HTTP surface, so the routes are never duplicated.

Install the extra to pull in fastapi-mcp:

pip install "bucket-helper[mcp]"

Then run the server (HTTP API + MCP endpoint at /mcp):

bucket-helper-mcp                 # console entry point
python -m bucket_helper.mcp       # equivalent

Author

Warith Harchaoui, Ph.D. — https://linkedin.com/in/warith-harchaoui/

bucket_helper.mcp.main()[source]

Console entry point (bucket-helper-mcp): serve the API + MCP endpoint.

Boots the FastAPI app (now serving both the /upload//download/… routes and the /mcp MCP endpoint) with uvicorn in a single worker. Local-first by default: binds to loopback (override with BUCKET_HELPER_HOST / BUCKET_HELPER_PORT).

Return type:

None