{"id":26648372,"url":"https://github.com/aws-samples/sample-mcp-server-s3","last_synced_at":"2025-03-25T00:02:05.247Z","repository":{"id":270516617,"uuid":"907453245","full_name":"aws-samples/sample-mcp-server-s3","owner":"aws-samples","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-31T20:39:47.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-31T21:26:48.019Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit-0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aws-samples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-12-23T16:04:25.000Z","updated_at":"2024-12-31T20:39:50.000Z","dependencies_parsed_at":"2024-12-31T21:26:52.905Z","dependency_job_id":"4c76f419-1401-45ed-8890-446efdb85757","html_url":"https://github.com/aws-samples/sample-mcp-server-s3","commit_stats":null,"previous_names":["aws-samples/sample-mcp-server-s3"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-samples%2Fsample-mcp-server-s3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-samples%2Fsample-mcp-server-s3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-samples%2Fsample-mcp-server-s3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-samples%2Fsample-mcp-server-s3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aws-samples","download_url":"https://codeload.github.com/aws-samples/sample-mcp-server-s3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245372378,"owners_count":20604491,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-25T00:01:49.553Z","updated_at":"2025-03-25T00:02:05.237Z","avatar_url":"https://github.com/aws-samples.png","language":"Python","readme":"# Sample S3 Model Context Protocol Server\n\nAn MCP server implementation for retrieving  data such as PDF's from S3.\n\n## Features\n### Resources\nExpose 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.\n\n\n### Tools\n- **ListBuckets**\n  - Returns a list of all buckets owned by the authenticated sender of the request\n- **ListObjectsV2**\n  - Returns some or all (up to 1,000) of the objects in a bucket with each request\n- **GetObject**\n  - 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\n\n\n## Configuration\n\n### Setting up AWS Credentials\n1. Obtain AWS access key ID, secret access key, and region from the AWS Management Console and configure credentials files using **Default** profile as shown [**here**](https://docs.aws.amazon.com/cli/v1/userguide/cli-configure-files.html)\n2. Ensure these credentials have appropriate permission READ/WRITE  permissions for S3.\n\n### Usage with Claude Desktop\n\n#### Claude Desktop\n\nOn MacOS: `~/Library/Application\\ Support/Claude/claude_desktop_config.json`\nOn Windows: `%APPDATA%/Claude/claude_desktop_config.json`\n\n\u003cdetails\u003e\n  \u003csummary\u003eDevelopment/Unpublished Servers Configuration\u003c/summary\u003e\n\n```json\n{\n  \"mcpServers\": {\n    \"s3-mcp-server\": {\n      \"command\": \"uv\",\n      \"args\": [\n        \"--directory\",\n        \"/Users/user/generative_ai/model_context_protocol/s3-mcp-server\",\n        \"run\",\n        \"s3-mcp-server\"\n      ]\n    }\n  }\n}\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003ePublished Servers Configuration\u003c/summary\u003e\n\n```json\n{\n  \"mcpServers\": {\n    \"s3-mcp-server\": {\n      \"command\": \"uvx\",\n      \"args\": [\n        \"s3-mcp-server\"\n      ]\n    }\n  }\n}\n  ```\n\u003c/details\u003e\n\n## Development\n\n### Building and Publishing\n\nTo prepare the package for distribution:\n\n1. Sync dependencies and update lockfile:\n```bash\nuv sync\n```\n\n2. Build package distributions:\n```bash\nuv build\n```\n\nThis will create source and wheel distributions in the `dist/` directory.\n\n3. Publish to PyPI:\n```bash\nuv publish\n```\n\nNote: You'll need to set PyPI credentials via environment variables or command flags:\n- Token: `--token` or `UV_PUBLISH_TOKEN`\n- Or username/password: `--username`/`UV_PUBLISH_USERNAME` and `--password`/`UV_PUBLISH_PASSWORD`\n\n### Debugging\n\nSince MCP servers run over stdio, debugging can be challenging. For the best debugging\nexperience, we strongly recommend using the [MCP Inspector](https://github.com/modelcontextprotocol/inspector).\n\n\nYou can launch the MCP Inspector via [`npm`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) with this command:\n\n```bash\nnpx @modelcontextprotocol/inspector uv --directory /Users/user/generative_ai/model_context_protocol/s3-mcp-server run s3-mcp-server\n```\n\n\nUpon launching, the Inspector will display a URL that you can access in your browser to begin debugging.\n\n\n## Security\n\nSee [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.\n\n## License\n\nThis library is licensed under the MIT-0 License. See the LICENSE file.","funding_links":[],"categories":["Cloud \u0026 Infrastructure","Community Servers","🤖 AI/ML","MCP 服务器精选列表","Cloud Storage","File Management","Table of Contents","Mcp Server Directories \u0026 Lists","🗂️ Extensions by Category"],"sub_categories":["AWS","☁️ 云平台与服务集成 (AWS, Cloudflare, Azure, K8s, etc.)","Cloud Storage","🧠 Knowledge Base"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-samples%2Fsample-mcp-server-s3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faws-samples%2Fsample-mcp-server-s3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-samples%2Fsample-mcp-server-s3/lists"}