AS

aws-samples/sample-mcp-server-s3

Productivity workflow공식

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

79 stars 19 forks 품질 72 트렌드 0MIT-0

aws-samples/sample-mcp-server-s3는 MCP 서버 후보자는 https://github.com/aws-samples/sample-mcp-server-s3.]에서 수입했습니다

개요

aws-samples/sample-mcp-server-s3는 MCP 서버 후보자는 https://github.com/aws-samples/sample-mcp-server-s3.]에서 수입했습니다

개요(AI 번역)

S3의 PDF와 같은 데이터를 검색하는 MCP 서버 구현.

특징

자원

AWS S3 Data through Resources. (Get endpoints와 같은 이러한 종류의 저장; 그들은 LLM의 컨텍스트로 정보를로드하는 데 사용됩니다). 현재 단지 PDF 문서 지원 및 1000 개체.

도구

  • ** 목록**
  • 요청의 정통 sender에 의해 소유 한 모든 물통의 목록을 반환
  • **ListObjectsV2 **
  • 각 요청을 가진 물통에 있는 물체의 몇몇 또는 전부 (최대 1,000)를 돌려보냅니다
  • **GetObject **
  • Amazon S3의 객체를 검색합니다. GetObject 요청에서 객체의 전체 키 이름을 지정합니다. 범용 버킷 - 가상 호스트 스타일 요청과 경로를 모두 지원

구성

AWS Credentials 설정

  1. AWS 액세스 키 ID, 비밀 액세스 키 및 AWS 관리 콘솔의 영역 얻기.
  2. 이 자격 증명에는 AWS S3에 적합한 권한이 있습니다.

Claude 데스크탑 사용

Claude 데스크탑

MacOS에서: ~/Library/Application\ Support/Claude/claude_desktop_config.json Windows에서: %APPDATA%/Claude/claude_desktop_config.json

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

Sample S3 Model Context Protocol Server

An MCP server implementation for retrieving data such as PDF’s from S3.

Features

Resources

Expose AWS S3 Data through Resources. (think of these sort of like GET endpoints; they are used to load information into the LLM’s context). Currently only PDF documents supported and limited to 1000 objects.

Tools

  • ListBuckets
    • Returns a list of all buckets owned by the authenticated sender of the request
  • ListObjectsV2
    • Returns some or all (up to 1,000) of the objects in a bucket with each request
  • GetObject
    • Retrieves an object from Amazon S3. In the GetObject request, specify the full key name for the object. General purpose buckets - Both the virtual-hosted-style requests and the path-style requests are supported

Configuration

Setting up AWS Credentials

  1. Obtain AWS access key ID, secret access key, and region from the AWS Management Console.
  2. Ensure these credentials have appropriate permissions for AWS S3.

Usage with Claude Desktop

Claude Desktop

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json On Windows: %APPDATA%/Claude/claude_desktop_config.json

Development

Building and Publishing

To prepare the package for distribution:

  1. Sync dependencies and update lockfile:
uv sync
  1. Build package distributions:
uv build

This will create source and wheel distributions in the dist/ directory.

  1. Publish to PyPI:
uv publish

Note: You’ll need to set PyPI credentials via environment variables or command flags:

  • Token: --token or UV_PUBLISH_TOKEN
  • Or username/password: --username/UV_PUBLISH_USERNAME and --password/UV_PUBLISH_PASSWORD

Debugging

Since MCP servers run over stdio, debugging can be challenging. For the best debugging experience, we strongly recommend using the MCP Inspector.

You can launch the MCP Inspector via npm with this command:

npx @modelcontextprotocol/inspector uv --directory /Users/user/generative_ai/model_context_protocol/s3-mcp-server run s3-mcp-server

Upon launching, the Inspector will display a URL that you can access in your browser to begin debugging.

Security

GitHub에서 전체 README 보기

설치

uvx s3-mcp-server
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "s3-mcp-server": { "command": "uv", "args": [ "--directory", "/Users/user/generative_ai/model_context_protocol/s3-mcp-server", "run", "s3-mcp-server" ] } } }