
MCP S3 File Uploader
Enables secure file uploads to Amazon S3 with progress tracking and presigned URL generation. Provides automatic UUID-based file naming and time-limited access URLs for uploaded files.
README
MCP S3 File Manager
S3 file operations for AI workflows - Upload, download, and manage files in Amazon S3 through Model Context Protocol (MCP).
Perfect for AI assistants like Claude, Cursor, and any MCP-compatible client.
⚡ Quick Start
# Install and run (requires AWS credentials)
uvx mcp-s3 --root ~/uploads
# Or install globally
pip install mcp-s3
🔧 Setup
1. AWS Credentials
Create .env
file in your project:
AWS_ACCESS_KEY_ID=your_access_key
AWS_SECRET_ACCESS_KEY=your_secret_key
AWS_DEFAULT_REGION=us-east-1
S3_BUCKET_NAME=your-bucket-name
2. Add to Your AI Tool
Cursor IDE - Add to settings.json
:
{
"mcp": {
"servers": {
"s3": {
"command": "uvx",
"args": ["mcp-s3", "--root", "~/uploads"],
"env": {
"AWS_ACCESS_KEY_ID": "your_key",
"AWS_SECRET_ACCESS_KEY": "your_secret",
"S3_BUCKET_NAME": "your-bucket"
}
}
}
}
}
Claude Desktop - Add to config:
{
"mcpServers": {
"s3": {
"command": "mcp-s3",
"args": ["--root", "~/uploads"],
"env": {
"AWS_ACCESS_KEY_ID": "your_key",
"AWS_SECRET_ACCESS_KEY": "your_secret",
"S3_BUCKET_NAME": "your-bucket"
}
}
}
}
🛠️ What You Can Do
Upload Files
@mcp Upload my config.json file to S3
@mcp Upload the backup.zip with 2-hour expiration
@mcp Upload report.pdf with force overwrite enabled
- Preserves original filenames (
config.json
→config.json
) - Prevents accidental overwrites (fails if file exists)
- Force overwrite option for intentional replacements
- Progress tracking for large files
Download Files
@mcp Download config.json from S3 to ./downloads/
@mcp Download backup-2024.zip from S3
List Files
@mcp List all files in S3
@mcp List files starting with "logs/"
@mcp Show me the first 50 files in the bucket
Get File Info
@mcp Get info about config.json in S3
@mcp Show details for backup.zip
🚀 For Software Engineers
Common Workflows
1. Backup & Share Code
# Upload project files
@mcp Upload my entire src/ directory to S3
@mcp Generate a 7-day URL for team-config.json
2. CI/CD Integration
# In your deployment scripts
mcp-s3 --root ./build upload dist.tar.gz
3. Log Management
# Upload application logs
@mcp Upload today's error.log to S3
@mcp List all log files from this month
4. Asset Management
# Manage project assets
@mcp Upload design-assets.zip
@mcp Download latest-assets.zip to ./assets/
Development Setup
git clone https://github.com/dayongd1/mcp-s3.git
cd mcp-s3
uv sync
uv run mcp-s3 --root ~/test-uploads
Testing
# Test basic functionality
python examples/test_mcp_server.py
# Test naming conflicts
python examples/test_naming_conflicts.py
# Test all features
python examples/test_download.py
python examples/test_list_files.py
python examples/test_get_file_info.py
🔒 Security Notes
- Path Safety: Prevents directory traversal attacks
- Credential Management: Uses environment variables (never hardcode keys)
- Presigned URLs: Time-limited access (default 24 hours)
- Conflict Detection: Prevents accidental file overwrites
📦 Installation Options
# Run without installing (recommended)
uvx mcp-s3
# Install globally
pip install mcp-s3
# Development install
git clone && uv sync
🚨 Troubleshooting
"Bucket not found"
# Check your bucket name and region
aws s3 ls s3://your-bucket-name
"Access denied"
# Verify AWS credentials
python examples/test_aws_connection.py
"File already exists"
# Use force overwrite or rename the file
@mcp Upload config.json with force overwrite enabled
📚 Links
- PyPI: https://pypi.org/project/mcp-s3/
- GitHub: https://github.com/dayongd1/mcp-s3
- MCP Docs: https://modelcontextprotocol.io/
- AWS S3 Setup: See
AWS_SETUP_GUIDE.md
Built with FastMCP | Python 3.10+ | MIT License
推荐服务器

Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。