๐ MCP-AWS: AI Agent for AWS EC2 Management
@anirban1592
About ๐ MCP-AWS: AI Agent for AWS EC2 Management
POC : MCP server with openAI agents SDK
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-server-aws-anirban1592": {
"command": "docker",
"args": [
"image",
"build",
"-t",
"my-mcp",
"."
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MCP-AWS?
MCP-AWS is an AI-driven application that combines OpenAI Agents with a custom MCP server to manage AWS EC2 instances via natural language commands in the terminal. It is designed for developers who want to provision and terminate EC2 instances using conversational instructions.
How to use MCP-AWS?
- Install Python 3.12+ (or Docker) and set up an AWS IAM role with EC2 permissions.
- Clone the repository and create a
.envfile withAWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_DEFAULT_REGION,OPENAI_API_KEY,AMI_ID,INSTANCE_TYPE,KEY_NAME,SECURITY_GROUP_IDS, andAWS_REGION. - Run the app either via Docker (
docker image build -t my-mcpthendocker container run -it my-mcp) or locally (create a virtual environment withuv, thencd openai-agent/anduv run agent.py). - At the prompt, enter commands such as โCreate an EC2 instanceโ or โTerminate EC2 instance with ID โ.
Key features of MCP-AWS
- Provision EC2 instances using natural language commands
- Terminate EC2 instances by providing their instance ID
- Integrates OpenAI Agents SDK with a custom MCP server
- Supports both Docker and local Python setup
- All AWS configuration passed via environment variables
Use cases of MCP-AWS
- Quickly spin up an EC2 instance without using the AWS Management Console
- Automate the termination of running EC2 instances through conversational prompts
- Learn how to build and integrate custom MCP servers with the OpenAI Agents SDK
- Prototype natural-language-driven AWS resource management for educational purposes
FAQ from MCP-AWS
What does MCP-AWS do?
MCP-AWS leverages OpenAI Agents and a custom MCP server to provision and terminate AWS EC2 instances using natural language commands entered in the terminal.
What are the prerequisites for using MCP-AWS?
You need Python 3.12+ or Docker, an AWS IAM role with EC2 permissions, and a .env file containing AWS credentials, the OpenAI API key, and EC2 configuration variables (AMI ID, instance type, key name, security group IDs, region).
How do I run MCP-AWS?
You can either build and run the Docker container (docker image build -t my-mcp then docker container run -it my-mcp) or set up a local Python environment with uv and run uv run agent.py from the openai-agent/ directory.
What tools does the MCP server provide?
The MCP server exposes two tools: initiate_aws_ec2_instance to create an EC2 instance, and terminate_aws_ec2_instance to terminate an instance by its ID.
Is MCP-AWS production-ready?
No. The README states it is a proof of concept intended for learning purposes only. It cautions about IAM role security and AWS billing risks, and disclaims responsibility for any issues that arise.
More Cloud & Infrastructure MCP servers

Aws Kb Retrieval Server
modelcontextprotocolModel Context Protocol Servers
tfmcp: Terraform Model Context Protocol Tool
nwiizo๐ Terraform Model Context Protocol (MCP) Tool - An experimental CLI tool that enables AI assistants to manage and operate Terraform environments. Supports reading Terraform configurations, analyzing plans, applying configurations, and managing state with Claude Desktop integrati
MCP Gateway
mcp-ecosystem๐งฉ MCP Gateway - A lightweight gateway service that instantly transforms existing MCP Servers and APIs into MCP servers with zero code changes. Features Docker deployment and management UI, requiring no infrastructure modifications.
Run Model Context Protocol (MCP) servers with AWS Lambda
awslabsRun existing Model Context Protocol (MCP) stdio-based servers in AWS Lambda functions
Supabase MCP Server
supabase-communityConnect Supabase to your AI assistants
Comments