google openai mcp
A custom server with tools that enable AI agents to provision and terminate AWS EC2 instances through natural language commands.
A custom server with tools that enable AI agents to provision and terminate AWS EC2 instances through natural language commands.
POC: Integrating A2A, MCP, and OpenAI Agents for AWS Tasks ?️✨
Watch the demo video to see MCP-AWS in action! ?
? Seamless Protocol Integration: Demonstrates the successful integration of the Agent-to-Agent (A2A) protocol with a Model Context Protocol (MCP) server for robust multi-agent communication.
? Leverages OpenAI Agents SDK: Built upon the powerful OpenAI Agents SDK to create intelligent agents capable of understanding and acting on user prompts.
☁️ Automated Cloud Management: Enables direct provisioning and termination of AWS EC2 instances through simple user interactions, showcasing practical tool execution via the MCP.
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.
.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
git clone https://github.com/anirban1592/google_openai_mcp.git
cd google_openai_mcp
Create .env
file as shown in prerequisites
Run the remote agent example:
cd openai-agent/
uv run .
git clone https://github.com/google/A2A.git
cd demo/ui
echo "GOOGLE_API_KEY=your_api_key_here" >> .env
bash
uv run main.py
To create an EC2 instance:
Enter your command: Create an EC2 instance
To terminate an EC2 instance:
Enter your command: Terminate EC2 instance with ID <instance-id>
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! ?