S3 Cloud Storage
Store and retrieve files from S3-compatible storage. Works with AWS S3, MinIO, Cloudflare R2, and Google Cloud Storage (S3-compatible mode).Requires the
@aws-sdk/client-s3 and @aws-sdk/s3-request-presigner peer dependencies.Quick Start
Config
S3 bucket name. Falls back to
S3_BUCKET env var.AWS region. Falls back to
AWS_REGION env var.Custom endpoint URL for S3-compatible services (MinIO, R2, GCS).
Force path-style addressing. Enable for MinIO.
AWS Access Key ID. Falls back to
AWS_ACCESS_KEY_ID env var.AWS Secret Access Key. Falls back to
AWS_SECRET_ACCESS_KEY env var.Tools
| Tool | Description |
|---|---|
s3_upload | Upload content to a bucket. |
s3_download | Download an object and return its text content. |
s3_list | List objects with optional prefix filter. |
s3_delete | Delete an object. |
s3_presign_url | Generate a pre-signed URL for temporary access (default 1 hour). |
Peer Dependencies
S3-Compatible Services
- AWS S3
- MinIO
- Cloudflare R2
Environment Variables
| Variable | Description |
|---|---|
S3_BUCKET | Default bucket name |
AWS_REGION | AWS region |
AWS_ACCESS_KEY_ID | AWS access key |
AWS_SECRET_ACCESS_KEY | AWS secret key |