SA

samuraikun/aws-s3-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

30 stars 20 forks 质量 71 趋势 0MIT

samuraikun/aws-s3-mcp 是从 https://github.com/samuraikun/aws-s3-mcp. 导入的 MCP 服务器候选

概览

samuraikun/aws-s3-mcp 是从 https://github.com/samuraikun/aws-s3-mcp. 导入的 MCP 服务器候选

概述(AI 翻译)

这是一台亚马逊S3模型上下文协议(MCP)服务器,提供与S3桶和对象交互的工具。

https://github.com/user-attachments/assets/d05ff0f1-e2bf-43b9-8d0c-82605abfb666

特色

🚀 MCP运输支持

  • ✅ STDIO Transport - Claude Desktop 的直接进程通信
  • ✅ HTTP 传输 - 支持 Web 客户端的 REST API,支持服务器发送事件
  • ✅ 可流媒体 HTTP - 响应式交互的实时流媒体

🛠️ 可用工具

  • ✅ list-buckets - 带有过滤功能的列表可访问S3桶
  • ✅ list-objects - 带前缀过滤的桶内对象浏览
  • ✅ get-object - 检索对象内容(支持文本/二进制)

🐳 部署选项

  • ✅ 本地Node.js - 直接执行,npm/节点
  • ✅ Docker CLI - 带自定义配置的容器化部署
  • ✅ Docker Compose - 全栈 MinIO 用于本地测试
  • ✅ MCP Inspector - 内置调试和测试接口

概述

该 MCP 服务器允许大型语言模型(LLM)如 Claude 与 AWS S3 存储交互。它提供以下工具:

  • 列出可用的S3桶
  • 在桶内列出对象

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

S3 MCP Server

An Amazon S3 Model Context Protocol (MCP) server that provides tools for interacting with S3 buckets and objects.

https://github.com/user-attachments/assets/d05ff0f1-e2bf-43b9-8d0c-82605abfb666

Features

🚀 MCP Transport Support

  • ✅ STDIO Transport - Direct process communication for Claude Desktop
  • ✅ HTTP Transport - REST API with Server-Sent Events for web clients
  • ✅ Streamable HTTP - Real-time streaming for responsive interactions

🛠️ Available Tools

  • ✅ list-buckets - List accessible S3 buckets with filtering
  • ✅ list-objects - Browse objects within buckets with prefix filtering
  • ✅ get-object - Retrieve object contents (text/binary support)

🐳 Deployment Options

  • ✅ Local Node.js - Direct execution with npm/node
  • ✅ Docker CLI - Containerized deployment with custom configuration
  • ✅ Docker Compose - Full stack with MinIO for local testing
  • ✅ MCP Inspector - Built-in debugging and testing interface

Overview

This MCP server allows Large Language Models (LLMs) like Claude to interact with AWS S3 storage. It provides tools for:

  • Listing available S3 buckets
  • Listing objects within a bucket
  • Retrieving object contents

The server is built using TypeScript and the MCP SDK, providing a secure and standardized way for LLMs to interface with S3.

Installation

Prerequisites

  • Node.js 18 or higher
  • npm or yarn
  • AWS credentials configured (either through environment variables or AWS credentials file)
  • Docker (optional, for containerized setup)

Setup

  1. Install via npm:
# Install globally via npm
npm install -g aws-s3-mcp

# Or as a dependency in your project
npm install aws-s3-mcp
  1. If building from source:
# Clone the repository
git clone https://github.com/samuraikun/aws-s3-mcp.git
cd aws-s3-mcp

# Install dependencies and build
npm install
npm run build
  1. Configure AWS credentials and S3 access:

Create a .env file with your AWS configuration:

AWS_REGION=us-east-1
在 GitHub 查看完整 README

安装

npx aws-s3-mcp --stdio
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "s3": { "command": "npx", "args": ["aws-s3-mcp", "--stdio"], "env": { "AWS_REGION": "us-east-1", "S3_BUCKETS": "bucket1,bucket2,bucket3", "S3_MAX_BUCKETS": "5", "AWS_ACCESS_KEY_ID": "your-access-key", "AWS_SECRET_ACCESS_KEY": "your-secret-key" } } } }