s3-mcp

v0.1.0
s3-mcp Checked 14 hours ago Published 11 months ago

MCP Server for AWS S3 operations with presigned URL support

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

s3_list_objects List S3 Bucket Objects

List objects in an S3 bucket with optional prefix filtering and pagination. This tool retrieves a list of objects (files) from an S3 bucket. Use it to: - Browse bucket contents - Find specific files by prefix - Paginate through large result sets

ParameterTypeDescription
bucket_name *stringS3 bucket name (3-63 characters, lowercase, numbers, hyphens, dots)
continuation_tokenToken from previous response to get next page
limitintegerMax objects to return per request (1-1000, default: 20)
prefixstringFilter objects by key prefix (e.g., 'logs/2024/' to find all logs from 2024)
response_formatstringOutput format - 'markdown' (default) or 'json'

s3_get_object Generate Presigned URL for Download

Generate a time-limited presigned URL for downloading an S3 object. This tool creates a secure URL that allows downloading an object without AWS credentials. The URL is time-limited and automatically expires. Use cases: - Share files with users who don't have AWS access - Download objects in browser or HTTP client - Integrate S3 downloads in applications without AWS SDK

ParameterTypeDescription
bucket_name *stringS3 bucket name
key *stringObject key (path within bucket, e.g., 'data/report.pdf')
expires_inintegerURL expiration in seconds (1-604800, default: 3600 = 1 hour)
response_content_dispositionOverride Content-Disposition (e.g., 'attachment; filename=report.pdf')
response_content_typeOverride Content-Type (e.g., 'application/pdf')
response_formatstringOutput format - 'markdown' (default) or 'json'

s3_put_object Generate Presigned URL for Upload

Generate a time-limited presigned URL for uploading an object to S3. This tool creates a secure URL that allows uploading a file without AWS credentials. The URL is time-limited and enforces specified upload parameters (encryption, ACL, etc.). Use cases: - Allow users to upload files directly to S3 from browsers - Integrate uploads in applications without AWS SDK - Enforce upload policies (encryption, content type, etc.)

ParameterTypeDescription
bucket_name *stringS3 bucket name
key *stringDestination object key (path, e.g., 'uploads/document.pdf')
aclAccess control ('private', 'public-read', 'public-read-write', etc.)
content_typeMIME type (e.g., 'image/png', 'application/pdf')
expires_inintegerURL expiration in seconds (1-604800, default: 3600 = 1 hour)
metadataCustom metadata as key-value pairs
response_formatstringOutput format - 'markdown' (default) or 'json'
server_side_encryptionEncryption algorithm ('AES256' or 'aws:kms')

s3_delete_object Delete S3 Object

Delete an object from an S3 bucket. ⚠️ WARNING: This is a DESTRUCTIVE operation. Deleted objects cannot be recovered unless versioning is enabled on the bucket. Use this tool to: - Remove unwanted or obsolete files - Clean up temporary uploads - Delete specific versions in versioned buckets

ParameterTypeDescription
bucket_name *stringS3 bucket name
key *stringObject key to delete (e.g., 'temp/old-file.txt')
response_formatstringOutput format - 'markdown' (default) or 'json'
version_idSpecific version to delete (for versioned buckets only)