S3

io.github.ofershap由 GitHub 帳號 ofershap 發布v1.0.1更新於 Oct 24, 2026

AWS S3 MCP — list buckets, browse objects, upload/download, presigned URLs.

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理管理 AWS S3:列出儲存貯體與物件、讀取與上傳文字物件、刪除鍵,並產生預簽章 URL。

可以做什麼
列出儲存貯體,檢查儲存貯體是否存在並取得基本資訊,並可依前綴篩選列出貯體內的物件。以文字形式下載並讀取物件內容。將文字內容上傳為 S3 物件。從儲存貯體刪除物件。為物件產生臨時預簽章 URL。
適用情境
適合已在使用 AWS S3、希望直接請助理瀏覽儲存貯體、下載設定檔、上傳文字內容或產生臨時分享連結,而不必記住命令列語法的情境。
執行需求
透過 npx 在本機執行(需要 Node.js)。需要 AWS 憑證,走標準憑證鏈:AWS_ACCESS_KEY_ID、AWS_SECRET_ACCESS_KEY 與 AWS_REGION 環境變數,或共用憑證檔案,或 IAM 角色。憑證需具備列出、讀取、寫入、刪除與檢查儲存貯體等 S3 權限。
安裝前請注意
伺服器會用你的憑證操作真實的 AWS 帳戶:put_object 會寫入資料,delete_object 會永久刪除物件。預簽章 URL 會讓任何持有連結的人取得臨時存取權。憑證透過環境變數或共用憑證檔案傳入,請勿放入共用設定。上傳與讀取僅限文字內容。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 S3,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

mcp-server-s3

[npm version] [npm downloads] [CI] [TypeScript] [License: MIT] [Agent Plugins]

Manage AWS S3 buckets and objects from your AI assistant. Browse files, upload and download content, and generate presigned URLs.

bash
npx mcp-server-s3

Works with Claude Desktop, Cursor, VS Code Copilot, and any MCP client. Uses your existing AWS credentials (~/.aws/credentials or environment variables).

[MCP server for AWS S3 bucket management and file operations]

Demo built with remotion-readme-kit

Why

S3 is the most widely used cloud storage service, but managing it from the command line means remembering aws s3 ls, aws s3 cp, presigned URL syntax, and various flags. Google has an official MCP for GCS, Cloudflare has one for R2, but AWS S3 doesn't have a polished standalone MCP server on npm. This one lets you ask your assistant to list buckets, download a config file, upload content, or generate a temporary sharing link. It uses the standard AWS credential chain, so if your CLI already works, this works too.

Tools

ToolWhat it does
list_bucketsList all S3 buckets in your AWS account.
list_objectsList objects in a bucket, with optional prefix filter.
get_objectDownload and read an object's content as text.
put_objectUpload text content to an S3 object.
delete_objectDelete an object from a bucket.
presigned_urlGenerate a temporary presigned URL for an object.
bucket_infoCheck if a bucket exists and get basic info.

Quick Start

Cursor

Add to .cursor/mcp.json:

json
{  "mcpServers": {    "s3": {      "command": "npx",      "args": ["mcp-server-s3"],      "env": {        "AWS_REGION": "us-east-1",        "AWS_ACCESS_KEY_ID": "your-access-key",        "AWS_SECRET_ACCESS_KEY": "your-secret-key"      }    }  }}

Claude Desktop

Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):

json
{  "mcpServers": {    "s3": {      "command": "npx",      "args": ["mcp-server-s3"],      "env": {        "AWS_REGION": "us-east-1",        "AWS_ACCESS_KEY_ID": "your-access-key",        "AWS_SECRET_ACCESS_KEY": "your-secret-key"      }    }  }}

VS Code

Configure the MCP server to run npx mcp-server-s3 with AWS_REGION, AWS_ACCESS_KEY_ID, and AWS_SECRET_ACCESS_KEY in the environment.

Authentication

The server uses the standard AWS credential chain:

  1. Environment variables: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_REGION
  2. Shared credentials file: ~/.aws/credentials
  3. IAM roles: when running on EC2, ECS, Lambda, or similar

Set AWS_REGION (defaults to us-east-1) and make sure your credentials have the necessary S3 permissions: s3:ListBuckets, s3:ListBucket, s3:GetObject, s3:PutObject, s3:DeleteObject, s3:HeadBucket.

Agent Plugins

This repo is an Agent Plugins 1.0.0 package: plugin.json, portable mcp.json, and skills/ ship together with the MCP server.

For Cursor, clone the repo and copy or symlink it to ~/.cursor/plugins/local/mcp-server-s3, then reload the window. Skills and MCP show up under Customize > Plugins.

Agent Plugins v1 does not ship OAuth or AWS SSO wiring. Set AWS_REGION and credentials via env or ~/.aws/credentials in the MCP client host. One-click install is not offered because secrets stay in env.

FAQ

What is mcp-server-s3?

An MCP server for S3: list buckets and objects, read/upload text objects, delete keys, presigned URLs, and bucket checks.

How does authentication work?

Standard AWS credential chain: env vars, shared credentials file, or IAM role on the machine running the MCP server.

Which env vars should I set in MCP config?

At minimum AWS_REGION. Often AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY unless you rely on ~/.aws/credentials or a role.

Can I install it as an Agent Plugin in Cursor?

Yes, via ~/.cursor/plugins/local/mcp-server-s3. Ensure the Cursor process can read the same AWS credentials as your CLI.

Why no one-click Cursor button?

AWS keys cannot be embedded in a portable install link. Use the JSON under Quick Start.

Example prompts

  • "List all my S3 buckets"
  • "Show me the files in my-bucket/uploads/"
  • "Download the config.json from my-bucket"
  • "Upload this content to my-bucket/notes.txt"
  • "Generate a presigned URL for this file that expires in 1 hour"

Development

bash
npm installnpm run typechecknpm run buildnpm testnpm run formatnpm run lint

See also

More MCP servers and developer tools on my portfolio.

Author

[Made by ofershap]

[LinkedIn] [GitHub]


README built with README Builder

License

MIT © 2026 Ofer Shapira

來源:README.md,提交 f16b371

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v1.0.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分