S3 MCP Server
Overview
- Listing available S3 buckets
- Listing objects within a bucket
- Retrieving object contents
Installation
Prerequisites
- Node.js 18 or higher
- npm or yarn
- AWS credentials configured (either through environment variables or AWS credentials file)
Setup
- Install via npm:
- If building from source:
- Configure AWS credentials and S3 access:
Configuration
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
[object Object] | [object Object] | [object Object] |
Running the Server
Debugging on MCP Inspector
Connecting to Claude Desktop
- Edit your Claude Desktop configuration file: - macOS: `~/Library/Application Support/Claude/claude_desktop_config.json` - Windows: `%APPDATA%\Claude\claude_desktop_config.json`
- Add the S3 MCP server to the configuration:
**Important**: Please note the following when using the configuration above - Replace `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` with your actual credentials - `S3_BUCKETS` should contain a comma-separated list of buckets you want to allow access to - `AWS_REGION` should be set to the region where your buckets are located
If error occurs on Claude Desktop
Available Tools
list-buckets
list-objects
- `bucket` (required): Name of the S3 bucket to list objects from
- `prefix` (optional): Prefix to filter objects (like a folder path)
- `maxKeys` (optional): Maximum number of objects to return
get-object
- `bucket` (required): Name of the S3 bucket
- `key` (required): Key (path) of the object to retrieve
Security Considerations
- The server will only access buckets specified in the `S3_BUCKETS` environment variable
- AWS credentials must have appropriate permissions to the buckets
- Use the principle of least privilege when configuring AWS permissions
- For production use, consider using IAM roles with specific S3 permissions
Usage with Claude
- "List all my S3 buckets"
- "Summarize PDF files in my-documents-bucket"
- "Get the README.txt file from my-documents-bucket"