S3 MCP Server

S3 MCP Server

Enables interaction with AWS S3 through MCP, supporting bucket and object management, lifecycle configurations, tagging, policies, CORS settings, presigned URLs, and file uploads/downloads.

Category
Visit Server

README

Overview

This server enables you to:

  • Manage S3 buckets and objects
  • Handle lifecycle configurations
  • Set and retrieve object tags
  • Manage bucket policies
  • Configure CORS settings

Installation

There are multiple ways to use this server depending on your setup.

Cursor (recommended)

Add this to your Cursor MCP configuration:

{
  "mcpServers": {
    "s3-mcp": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "AWS_SECRET_ACCESS_KEY=your_access_key",
        "-e",
        "AWS_ACCESS_KEY_ID=your_access_key",
        "-e",
        "AWS_REGION=your_region",
        "ashgw/s3-mcp:latest"
      ]
    }
  }
}

If you prefer pinning to a specific Docker image build (e.g., 20250413-165732), use that tag instead of latest. Browse available versions on Docker Hub.

Cursor will route that request through the MCP server automatically.

Make sure it's green and all the tools are available. <img width="951" height="430" alt="image" src="https://github.com/user-attachments/assets/c1c0b425-d44b-4cd7-b34d-1621bab2a05d" />


Docker (manual)

You can run the S3 MCP server manually via Docker:

docker run --rm -it \
  -e AWS_ACCESS_KEY_ID=your_access_key \
  -e AWS_SECRET_ACCESS_KEY=your_secret_key \
  -e AWS_REGION=your_region \
  ashgw/s3-mcp

This uses the pre-built image published at ashgw/s3-mcp.


Repo

Clone the repository and cd into it, then build with:

docker build -t s3-mcp .

Then run with:

docker run --rm -e AWS_ACCESS_KEY_ID=your_access_key -e AWS_SECRET_ACCESS_KEY=your_secret_key -e AWS_REGION=your_region s3-mcp

Environment Variables

Set the following environment variables for AWS credentials:

export AWS_ACCESS_KEY_ID=your_access_key
export AWS_SECRET_ACCESS_KEY=your_secret_key
export AWS_REGION=your_region

Features

  • List Buckets: Retrieve a list of all S3 buckets.
  • Create Bucket: Create a new S3 bucket with optional configurations.
  • List Objects: List all objects in a specified bucket.
  • Get Object: Retrieve the content of a specified object.
  • Put Object: Upload an object to a specified bucket.
  • Delete Object: Remove an object from a specified bucket.
  • Generate Presigned URL: Create a presigned URL for accessing or uploading an object.
  • Set Bucket Policy: Update or set a policy for a specified bucket.
  • Get Bucket Policy: Retrieve the current policy for a specified bucket.
  • Delete Bucket Policy: Remove the current policy for a specified bucket.
  • Lifecycle Configuration: Manage lifecycle rules for S3 buckets.
  • Object Tagging: Set and retrieve tags for S3 objects.
  • CORS Configuration: Get and set CORS rules for a bucket.
  • Copy Object: Copy an object from one location to another within S3.
  • Download File to Local: Download a file from a specified S3 bucket to a local path.
  • Upload Local File: Upload a local file to a specified S3 bucket.

Few Usage Examples

List Buckets

response = await tool("list_buckets")
print(response)

Create a Bucket

response = await tool("create_bucket", {
    "bucket_name": "my-new-bucket",
    "region": "us-west-1",
    "config": {
        "blockPublicAccess": {
            "BlockPublicAcls": True,
            "IgnorePublicAcls": True,
            "BlockPublicPolicy": True,
            "RestrictPublicBuckets": True
        },
        "versioning": True,
        "encryption": "AES256"
    }
})
print(response)

Upload a File

response = await tool("upload_local_file", {
    "bucket_name": "my-new-bucket",
    "local_path": "/path/to/local/file.txt",
    "key": "file.txt"
})
print(response)

Get Object Tags

response = await tool("get_object_tagging", {
    "bucket_name": "my-new-bucket",
    "key": "file.txt"
})
print(response)

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured