AWS S3 Management via MCP
Use this skill when you need to manage S3 buckets, browse objects, upload/download files, or generate presigned URLs.
Available Tools
| Tool | What it does |
|---|---|
list_buckets |
List all S3 buckets in the AWS account |
list_objects |
List objects in a bucket with optional prefix filter |
get_object |
Download and read an object's content as text |
put_object |
Upload text content to an S3 object |
delete_object |
Delete an object from a bucket |
presigned_url |
Generate a temporary presigned URL for an object |
bucket_info |
Check if a bucket exists and get basic info |
Workflow
- Start with
list_bucketsto discover available buckets - Use
list_objectswith a prefix to browse directories within a bucket get_objectreads text content; for binary files, usepresigned_urlinsteadpresigned_urlgenerates a temporary shareable link (default 1 hour expiry)
Key Patterns
list_objectsuses prefix-based filtering (S3 doesn't have real directories):prefix: "uploads/2026/"get_objectreturns text content only; it won't work for images, binaries, or large filesput_objecttakes string content; use it for config files, JSON, text, not binary uploadspresigned_urlis the right tool for sharing files or accessing binary content
Error Scenarios
- AccessDenied: IAM policy missing S3 actions for the bucket/key
- NoSuchBucket or NoSuchKey: verify names with
list_buckets/list_objects get_objectgarbled or failed: object may be binary or too large; usepresigned_urlinstead- Region errors: set
AWS_REGIONto the bucket's region
Safety
- Always confirm before
delete_object; S3 deletions are permanent (unless versioning is enabled) - Always confirm before
put_objectto an existing key; it overwrites without warning - Presigned URLs grant temporary access to anyone with the link; warn users about this