AWS S3 MCP Server
Manage AWS S3 operations, providing secure access to S3 buckets through pre-signed URLs.
AWS S3 MCP Server
MCP Server for AWS S3 operations, providing secure access to S3 buckets through pre-signed URLs.
Tools
-
list_objects- List objects in an S3 bucket
- Input:
prefix(string, optional): Prefix filter for object keys
- Returns: Array of objects with keys, sizes, and last modified dates
-
get_object- Generate a pre-signed URL for accessing an object
- Inputs:
key(string, required): Object key to retrieveexpiry(number, optional): URL expiration time in seconds (default: 3600)
- Returns:
object_urlcontaining the pre-signed URL
-
put_object- Generate a pre-signed URL for uploading an object
- Inputs:
key(string, required): Object key to uploadexpiry(number, optional): URL expiration time in seconds (default: 3600)
- Returns:
upload_urlcontaining the pre-signed URL
-
delete_object- Delete an object from the bucket
- Input:
key(string, required): Object key to delete
- Returns:
successboolean indicating deletion status
Setup
Environment Variables
The server requires the following environment variables:
BUCKET_NAME: The name of your S3 bucket (required)REGION: AWS region (default: "ap-southeast-1")
AWS credentials should be configured using standard AWS credential configuration methods (environment variables, IAM roles, or AWS credentials file).
Usage with Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"aws-ow-s3-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"BUCKET_NAME",
"-e",
"REGION",
"-e",
"AWS_ACCESS_KEY_ID",
"-e",
"AWS_SECRET_ACCESS_KEY",
"mcp/aws-ow-s3-mcp"
],
"env": {
"BUCKET_NAME": "<YOUR_BUCKET_NAME>",
"REGION": "<AWS_REGION>",
"AWS_ACCESS_KEY_ID": "<YOUR_ACCESS_KEY>",
"AWS_SECRET_ACCESS_KEY": "<YOUR_SECRET_KEY>"
}
}
}
}
NPX Command
{
"mcpServers": {
"aws-ow-s3-mcp": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-aws-ow-s3-mcp"
],
"env": {
"BUCKET_NAME": "<YOUR_BUCKET_NAME>",
"REGION": "<AWS_REGION>",
"AWS_ACCESS_KEY_ID": "<YOUR_ACCESS_KEY>",
"AWS_SECRET_ACCESS_KEY": "<YOUR_SECRET_KEY>"
}
}
}
}
Build
Docker build:
docker build -t mcp/aws-ow-s3-mcp-server .
Development
The server is built using:
- Node.js
- TypeScript
- @modelcontextprotocol/sdk
- @aws-sdk/client-s3
- @aws-sdk/s3-request-presigner
License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.
Related Servers
Hindsight
Hindsight: Agent Memory That Works Like Human Memory
Intersight MCP
A comprehensive MCP server for configuring and managing Cisco Intersight.
Pinata
Interact with Public and Private IPFS through Pinata's API. Requires a Pinata account and API key.
CData IBM Cloud Object Storage
A read-only MCP server for IBM Cloud Object Storage, powered by CData. Requires a separate CData JDBC Driver license.
s3-tools MCP Server
Provides tools for interacting with AWS S3 buckets.
AWS S3
Retrieve files like PDFs from an AWS S3 bucket. Requires AWS credentials for access.
DropBin
Remote SSE MCP server for hosting HTML webpages and sharing content through temporary URLs without authentication
MCP Backup Server
A server for backing up and restoring data for AI agents and code editing tools.
RAGStack-Lambda
Serverless document and media processing with AI chat.
Cloudinary MCP Server
Upload images and videos to Cloudinary from compatible MCP clients.