MCP ExplorerExplorer

Mcp Aws S3upload

@adhika28on a year ago
1 MIT
FreeCommunity
AI Systems
This MCP automate MoP document creation and auto upload to centralized S3 bucket.

Overview

What is Mcp Aws S3upload

MCP-AWS-S3Upload is an application designed to automate the creation of Method of Procedure (MoP) documents and their subsequent upload to a centralized AWS S3 bucket using a Large Language Model (LLM) from OpenAI.

Use cases

Use cases include automating the documentation process for provisioning cloud resources, generating operational procedures, and maintaining a centralized repository of MoP documents for compliance and auditing purposes.

How to use

To use MCP-AWS-S3Upload, clone the repository, set up a virtual environment, install the required dependencies, configure environment variables for OpenAI and AWS, and run the main script ‘run_mop.py’ to generate and upload MoP documents.

Key features

Key features include automated MoP document generation using GPT-4, local file saving, and direct upload to AWS S3. The application aims to minimize manual effort and improve efficiency in document management.

Where to use

MCP-AWS-S3Upload can be used in IT operations, cloud management, and any field that requires the creation and storage of procedural documents, particularly in environments utilizing AWS services.

Content

MCP MoP Uploader

Purpose

This application is built to automate the generation and storage of Method of Procedure (MoP) documents using a Large Language Model (LLM) from OpenAI, integrated with AWS S3 via a custom [Model Context Protocol (MCP)] tool.
The goal is to reduce manual effort in creating MoP documents and streamline their delivery to cloud storage systems.


Setup Instructions

1. Clone the repository

git clone https://github.com/adhika28/MCP-AWS-S3Upload.git
cd MCP-AWS-S3Upload

2. Create a virtual environment

python3 -m venv .venv
source .venv/bin/activate

3. Install dependencies

pip install -r requirements.txt

4. Set environment variables

You can set them via terminal or create a .env file:

export OPENAI_API_KEY="your-openai-api-key"
export AWS_ACCESS_KEY_ID="your-aws-access-key-id"
export AWS_SECRET_ACCESS_KEY="your-aws-secret-key"
export S3_BUCKET="your-s3-bucket-name"

Usage

Run the main script:

python run_mop.py

You will be prompted to enter a scenario:

MoP apa yang ingin kamu buat? provisioning EC2 with Amazon Linux

The app will:

  1. Generate a MoP document using OpenAI’s GPT-4.
  2. Save it locally as Generated_MoP.docx.
  3. Upload the file to s3://test-mcp-bucket/MoP/Generated_MoP.docx.

Project Structure

.
├── run_mop.py                # Main application
├── requirements.txt          # Python dependencies
├── mcp/tools/base.py         # Simulated MCP toolbase
└── examples/tools/s3_uploader.py  # Custom S3 uploader tool

imitations and Known Issues

  • No input validation or prompt quality check is implemented.
  • Document approval workflow or versioning is not included.
  • S3 permissions must be correctly configured; otherwise, upload will fail with AccessDenied.

Future Improvements

  • Add web UI for user input
  • Implement version tracking and metadata tagging for MoP files
  • Add approval flow

Made with 💻 by Putu

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers