An MCP (Model Context Protocol) server that lets you generate and execute AWS CLI commands directly from Claude.
- Execute AWS CLI commands through the MCP protocol
- Get detailed information about AWS services
- List available AWS services
- Full access to AWS CLI capabilities
-
execute-aws-command: Execute AWS CLI commands
- Parameters:
command
: AWS service (e.g., s3, ec2, lambda)subcommand
(optional): Command to execute (e.g., ls, describe-instances)options
(optional): Command options as key-value pairs
- Parameters:
-
get-service-details: Get details about a specific AWS service
- Parameters:
service
: AWS service name (e.g., s3, ec2, lambda)
- Parameters:
- aws-services://list: List available AWS services
- Node.js (v20 or later recommended)
- npm or yarn
- AWS CLI installed and configured with credentials
- TypeScript
- Clone this repository:
git clone https://github.com/IcyKallen/aws-cli-mcp-server
cd aws-cli-mcp-server
- Install dependencies:
npm install
- Build the project:
npm run build
- Ensure AWS CLI is configured:
aws configure
- Start the MCP server:
npm start
Add this to your claude_desktop_config.json
:
After building the project, you can use:
{
"mcpServers": {
"aws-cli": {
"command": "node",
"args": [
"/path/to/aws-cli-mcp-server/dist/index.js"
]
}
}
}
I need to list my S3 buckets.
Create a new S3 bucket named "my-test-bucket" in the us-west-2 region.
What EC2 commands are available?
- This server executes AWS CLI commands with the same permissions as your configured AWS credentials
- Be careful about who can access this server
- Consider implementing additional authentication for production use
MIT License