AWS S3 MCP Server
Published · Updated
At a glance
- Category
- Cloud & DevOps
- GitHub repository
- aws-samples/sample-mcp-server-s3
- Watch out for
- An AWS sample, not a supported product.
sample-mcp-server-s3 is an AWS sample, published under aws-samples, that shows how to build an MCP server for Amazon S3. It is worth being clear that this is example code to learn from and adapt, not a maintained AWS product.
It is intentionally small. It exposes three tools that mirror S3 API calls: ListBuckets returns the buckets owned by the authenticated account, ListObjectsV2 lists up to 1,000 objects in a bucket per request, and GetObject retrieves an object by its key. It also exposes S3 data as MCP resources, which clients can load into the model's context, though only PDF documents are supported as resources and only up to 1,000 objects.
That makes it suitable for a specific job: letting an assistant read documents, such as PDFs of reports or contracts, stored in S3. There are no tools for uploading, deleting or changing permissions, so the risk is mostly about what it can read. Because it uses your normal AWS credentials, the safest setup is a profile whose IAM policy only allows reading from the buckets you want the assistant to see. For broader or production use, look at the servers in AWS's awslabs/mcp repository.
How it connects
Your AI app
An assistant or agent that supports MCP
AWS S3 MCP Server
Runs as
- Python (uv / pip)
Gives the agent
- ListBuckets
- ListObjectsV2
- GetObject
- PDF resources
AWS S3
The data or system the tools act on
What it can do
- ListBuckets
- Returns all buckets owned by the authenticated account.
- ListObjectsV2
- Lists up to 1,000 objects in a bucket per request.
- GetObject
- Retrieves an object by its full key.
- PDF resources
- Exposes PDF documents in S3 as MCP resources a client can load, up to 1,000 objects.
Setting it up
Set up an AWS access key ID, secret access key and region with S3 permissions, as the README describes, ideally a named profile with an IAM policy limited to s3:ListBucket and s3:GetObject on specific buckets. Clone the sample and add a server to Claude Desktop that runs uv with --directory pointing at the s3-mcp-server folder and the run s3-mcp-server arguments, or run the published package with uvx. Use the MCP Inspector command in the README to test it before connecting a client.
Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)
Where it helps
- Letting an assistant read and summarise PDF reports stored in S3
- Browsing what is in a bucket without opening the console
- Using the code as a starting point for your own S3 server
- Pulling a specific document into a conversation by key
Limitations and things to watch
- An AWS sample, not a supported product.
- Resources only support PDFs and up to 1,000 objects.
- No write, delete or permission tools.
- ListBuckets shows every bucket your credentials can see; restrict with IAM.
Sources
Written from the project's own documentation, checked November 2026.
- github.com /aws-samples/sample-mcp-server-s3
- docs.aws.amazon.com /AmazonS3/latest/API/API_ListObjectsV2.html
- docs.aws.amazon.com /AmazonS3/latest/API/API_GetObject.html
- docs.aws.amazon.com /AmazonS3/latest/API/Welcome.html
How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.