Sample S3 Model Context Protocol Server logo

Sample S3 Model Context Protocol Server

by aws-samples

An MCP server implementation for retrieving data such as PDFs from S3. It exposes AWS S3 data through Resources to load information into LLM's context.

View on GitHub

Last updated: N/A

What is Sample S3 Model Context Protocol Server?

This is a Model Context Protocol (MCP) server that allows you to expose data stored in Amazon S3 buckets to Large Language Models (LLMs). It currently supports retrieving PDF documents from S3.

How to use Sample S3 Model Context Protocol Server?

  1. Configure AWS credentials with appropriate READ/WRITE permissions for S3. 2. Configure the MCP server within your Claude Desktop environment by modifying the claude_desktop_config.json file. You can configure it as a 'Development/Unpublished Server' or a 'Published Server' depending on your needs. 3. Use the provided configuration examples to set the command and arguments for running the server. 4. For debugging, use the MCP Inspector.

Key features of Sample S3 Model Context Protocol Server

  • Exposes S3 data as Resources

  • Supports PDF documents

  • Provides tools for listing buckets, listing objects, and getting objects

  • Integrates with Claude Desktop

  • Supports up to 1000 objects per bucket

Use cases of Sample S3 Model Context Protocol Server

  • Providing context to LLMs from documents stored in S3

  • Enabling LLMs to access and process data stored in S3

  • Building LLM-powered applications that leverage data in S3

  • Creating knowledge bases for LLMs from S3 data

  • Retrieving specific documents or data snippets from S3 based on LLM queries

FAQ from Sample S3 Model Context Protocol Server

What types of files are supported?

Currently, only PDF documents are supported.

What is the object limit?

The server is limited to 1000 objects per bucket.

How do I configure AWS credentials?

Obtain AWS access key ID, secret access key, and region from the AWS Management Console and configure credentials files using the Default profile.

How do I debug the server?

Use the MCP Inspector for the best debugging experience.

What license is this project under?

This library is licensed under the MIT-0 License.