txn2/mcp-s3¶
An MCP server that connects AI assistants to Amazon S3 and S3-compatible object storage. Browse buckets, read and write objects, and generate presigned URLs for secure file sharing.
Unlike other MCP servers, mcp-s3 is designed as a composable Go library. Import it into your own MCP server to add S3 capabilities with custom authentication, tenant isolation, and audit logging. The standalone server works out of the box; the library lets you build exactly what your organization needs.
Two Ways to Use¶
-
Use the Server
Connect Claude, Cursor, or any MCP client to S3 with secure defaults.
- Read-only mode by default
- Size limits enforced
- Multi-account support
-
Build Custom MCP
Import the Go library for enterprise servers with auth, tenancy, and compliance.
- OAuth, API keys, SSO
- Bucket/prefix isolation
- SOC2 / HIPAA audit logs
Core Capabilities¶
-
Composable Architecture
Import as a Go library to build custom MCP servers with authentication, tenant isolation, and audit logging without forking.
-
Multi-Provider Support
Works with AWS S3, SeaweedFS, LocalStack, and any S3-compatible storage. Connect to multiple accounts from a single installation.
-
Multi-Account
Query production, staging, and development S3 buckets from a single MCP installation with unified credentials.
-
Secure Defaults
Read-only mode prevents accidental writes. Size limits prevent abuse. Prefix ACLs restrict access to specific paths.
Available Tools¶
| Tool | Description |
|---|---|
s3_list_buckets |
List all accessible S3 buckets |
s3_list_objects |
List objects with prefix/delimiter filtering |
s3_get_object |
Retrieve object content |
s3_get_object_metadata |
Get object metadata without downloading |
s3_put_object |
Upload an object (disabled in read-only mode) |
s3_delete_object |
Delete an object (disabled in read-only mode) |
s3_copy_object |
Copy an object within or between buckets |
s3_presign_url |
Generate presigned GET or PUT URLs |
s3_list_connections |
List configured S3 connections |
Quick Start¶
Next Steps¶
- Installation Guide - Detailed installation instructions
- Configuration - Environment variables and setup options
- Tools Reference - Complete tool documentation
- Library Usage - Use mcp-s3 as a Go library