s3-mcp
Enables managing and interacting with any S3-compatible storage endpoint through MCP tools for listing, reading, writing, copying, and deleting buckets and objects.
README
s3-mcp
A generic S3-protocol MCP server (stdio) that works against any S3-compatible endpoint — RustFS, MinIO, Cloudflare R2, Backblaze B2, AWS S3 — not just AWS.
Single Python package, one boto3 client created at startup, configuration via
environment variables only. Built on the official mcp
SDK (high-level server API) and boto3.
Configuration (environment variables)
| Variable | Required | Default | Description |
|---|---|---|---|
S3_ENDPOINT_URL |
no | (unset) | S3-compatible endpoint; omit to target real AWS |
AWS_REGION |
no | us-east-1 |
Region for signing and bucket creation |
AWS_ACCESS_KEY_ID |
yes | — | Access key |
AWS_SECRET_ACCESS_KEY |
yes | — | Secret key |
S3_PATH_STYLE |
no | true |
Path-style addressing (https://host/bucket/key) — required by most non-AWS stores |
S3_TLS_INSECURE |
no | false |
true disables TLS certificate verification (self-signed endpoints) |
Booleans accept true/false/1/0/yes/no (case-insensitive). Missing credentials
or invalid booleans abort startup with a clear error.
Tools
| Tool | Read-only hint |
|---|---|
list_buckets() |
yes |
list_objects(bucket, prefix="", max_keys=1000) |
yes |
get_object(bucket, key) → text if UTF-8 else {base64, content_type} |
yes |
stat_object(bucket, key) |
yes |
presign_get(bucket, key, expires_s=3600) |
yes |
put_object(bucket, key, body, base64=false) |
no |
delete_object(bucket, key) |
no |
copy_object(src_bucket, src_key, dst_bucket, dst_key) |
no |
create_bucket(bucket) |
no |
delete_bucket(bucket) |
no |
presign_put(bucket, key, expires_s=3600) |
no |
Tool errors are raised as short RuntimeError messages and surfaced by MCP as
error results. Presigned URLs are capped at 7 days (604800 s), per SigV4.
Example configurations
RustFS with a self-signed certificate
{
"mcpServers": {
"s3-mcp": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "S3_ENDPOINT_URL=https://rustfs.local:9000",
"-e", "S3_TLS_INSECURE=true",
"-e", "AWS_REGION=us-east-1",
"-e", "AWS_ACCESS_KEY_ID",
"-e", "AWS_SECRET_ACCESS_KEY",
"ghcr.io/jakeperalta7/s3-mcp:latest"
]
}
}
}
-e VAR without a value passes the variable through from your shell, so
credentials never appear in the config file.
MinIO
{
"mcpServers": {
"s3-mcp": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "S3_ENDPOINT_URL=http://localhost:9000",
"-e", "AWS_REGION=us-east-1",
"-e", "AWS_ACCESS_KEY_ID",
"-e", "AWS_SECRET_ACCESS_KEY",
"ghcr.io/jakeperalta7/s3-mcp:latest"
]
}
}
}
AWS S3
Omit S3_ENDPOINT_URL; standard AWS credential/region resolution applies:
{
"mcpServers": {
"s3-mcp": {
"command": "docker",
"args": [
"run", "-i", "--rm",
"-e", "AWS_REGION",
"-e", "AWS_ACCESS_KEY_ID",
"-e", "AWS_SECRET_ACCESS_KEY",
"ghcr.io/jakeperalta7/s3-mcp:latest"
]
}
}
}
Without Docker (uv)
uvx --from git+https://github.com/JakePeralta7/s3-mcp s3-mcp
{
"mcpServers": {
"s3-mcp": {
"command": "uvx",
"args": ["--from", "git+https://github.com/JakePeralta7/s3-mcp", "s3-mcp"],
"env": {
"S3_ENDPOINT_URL": "http://localhost:9000",
"AWS_ACCESS_KEY_ID": "...",
"AWS_SECRET_ACCESS_KEY": "..."
}
}
}
}
Development
uv sync --group dev # install deps into .venv
uv run pytest -q # unit tests (boto3 mocked, no network)
docker build -t s3-mcp:dev .
Entrypoint: python -m s3_mcp (stdio transport only).
Releasing
Every push to main runs tests, then publishes
ghcr.io/<owner>/<repo>:<version> + :latest, where <version> is read from
version in pyproject.toml. To release, bump the version and merge to main.
Git tags are not used.
License
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.