Cover image
Try Now
2025-04-08

POC: MCP -Server mit OpenAI -Agenten SDK

3 years

Works with Finder

1

Github Watches

0

Github Forks

1

Github Stars

🚀 MCP-AWS: AI Agent for AWS EC2 Management

Welcome to MCP-AWS, a simple yet powerful AI-driven application that leverages OpenAI Agents and MCP servers to manage AWS EC2 instances. This app allows you to provision and terminate EC2 instances using natural language commands in your terminal. 🖥️✨


🎥 Demo Video

Watch the demo video to see MCP-AWS in action! 🚀

Watch the Demo


🌟 Features

  1. Provision EC2 Instances: Just tell the AI agent to create an EC2 instance, and it will handle the rest, providing you with the instance ID. 🛠️
  2. Terminate EC2 Instances: Provide the instance ID, and the agent will terminate the instance for you. ❌
  3. MCP Server Integration: Explore how custom MCP servers can be created and integrated with OpenAI Agents SDK. 🧩

🛠️ Tools in the MCP Server

The MCP server is a custom server with two tools:

  1. initiate_aws_ec2_instance: Creates an AWS EC2 instance.
  2. terminate_aws_ec2_instance: Terminates an AWS EC2 instance by its ID.

🚀 Getting Started

Prerequisites

  1. Python 3.12+ (for local setup) or Docker (for containerized setup)
  2. AWS IAM Role: Create an IAM role with the necessary permissions to manage EC2 instances.
  3. Environment Variables: Prepare a .env file with the following variables:
    • AWS_ACCESS_KEY_ID
    • AWS_SECRET_ACCESS_KEY
    • AWS_DEFAULT_REGION
    • OPENAI_API_KEY
    • AMI_ID
    • INSTANCE_TYPE
    • KEY_NAME
    • SECURITY_GROUP_IDS
    • AWS_REGION

🏃‍♂️ Running the App

  1. Clone the repository:
    git clone https://github.com/anirban1592/mcp-server-aws.git
    cd mcp-aws
    
  2. Create .env file as shown in prerequisites

Option 1: Docker Setup (Recommended)

  1. Build the Docker image:
    docker image build -t my-mcp .
    
  2. Run the container:
    docker container run -it my-mcp
    

Option 2: Local Setup

  1. Create and activate virtual environment:

    pip install uv
    uv venv .venv
    # Windows
    .venv\Scripts\activate
    # Unix/MacOS
    source .venv/bin/activate
    
  2. Run the application:

    cd openai-agent/
    uv run agent.py
    

💬 Using the AI Agent

  1. To create an EC2 instance:

    Enter your command: Create an EC2 instance
    
  2. To terminate an EC2 instance:

    Enter your command: Terminate EC2 instance with ID <instance-id>
    

⚠️ Word of Caution

  • IAM Role and Credentials: Please create AWS IAM roles and credentials at your own risk. Ensure you follow AWS best practices for security.
  • Billing and Security: This app is a proof of concept (POC) and is intended for learning purposes only. We are not responsible for any billing issues or security incidents.

📚 Learnings

This project demonstrates:

  1. How to integrate MCP servers with OpenAI Agents SDK
  2. How to build a simple AI-driven application for AWS resource management

Enjoy exploring the power of AI and MCP servers! 🌟

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • tomoyoshi hirata
  • Sony α7IIIマニュアルアシスタント

  • apappascs
  • Entdecken Sie die umfassendste und aktuellste Sammlung von MCP-Servern auf dem Markt. Dieses Repository dient als zentraler Hub und bietet einen umfangreichen Katalog von Open-Source- und Proprietary MCP-Servern mit Funktionen, Dokumentationslinks und Mitwirkenden.

  • jae-jae
  • MCP -Server für den Fetch -Webseiteninhalt mit dem Headless -Browser von Dramatikern.

  • ravitemer
  • Ein leistungsstarkes Neovim -Plugin für die Verwaltung von MCP -Servern (Modellkontextprotokoll)

  • patruff
  • Brücke zwischen Ollama und MCP -Servern und ermöglicht es lokalen LLMs, Modellkontextprotokoll -Tools zu verwenden

  • pontusab
  • Die Cursor & Windsurf -Community finden Regeln und MCPs

  • av
  • Führen Sie mühelos LLM -Backends, APIs, Frontends und Dienste mit einem Befehl aus.

  • Mintplex-Labs
  • Die All-in-One-Desktop & Docker-AI-Anwendung mit integriertem Lappen, AI-Agenten, No-Code-Agent Builder, MCP-Kompatibilität und vielem mehr.

  • WangRongsheng
  • 🧑‍🚀 全世界最好的 llm 资料总结(数据处理、模型训练、模型部署、 O1 模型、 MCP 、小语言模型、视觉语言模型) | Zusammenfassung der weltbesten LLM -Ressourcen.

  • modelcontextprotocol
  • Modellkontext -Protokollserver

    Reviews

    3 (1)
    Avatar
    user_hExfsFEu
    2025-04-17

    As a dedicated user of mcp-server-aws, I can confidently say that it is a robust and reliable solution for managing servers on AWS. Developed by anirban1592, this tool has streamlined our deployment processes significantly, ensuring efficiency and ease of use. The documentation is thorough and the welcoming information was very helpful for getting started. Highly recommend for anyone working with AWS!