Home / MCP / AWS CLI MCP Server

AWS CLI MCP Server

Provides AWS CLI command generation and execution via MCP, enabling service details, service listing, and full AWS CLI capabilities.

typescript
Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
    "mcpServers": {
        "aws_cli": {
            "command": "node",
            "args": [
                "/path/to/aws-cli-mcp-server/dist/index.js"
            ]
        }
    }
}

You can run an MCP server that lets you generate and execute AWS CLI commands directly from Claude. This server exposes AWS CLI capabilities through the MCP protocol, enabling you to list services, view details, and run commands with your existing AWS credentials.

How to use

Use an MCP client to connect to the AWS CLI MCP Server. You can send requests to execute AWS CLI commands, query service details, or list available AWS services. Commands execute with the same permissions as your configured AWS credentials, so you can manage resources across AWS services from Claude through the MCP server.

How to install

Prerequisites you need to prepare before installing.

Install Node.js (v20 or later recommended) and a package manager such as npm or yarn. Make sure the AWS CLI is installed and configured with credentials, and you have TypeScript tooling available.

# 1) Clone the MCP server repository
git clone https://github.com/IcyKallen/aws-cli-mcp-server
cd aws-cli-mcp-server

# 2) Install dependencies
npm install

# 3) Build the project
npm run build

# 4) Ensure AWS CLI is configured with credentials
aws configure

# 5) Start the MCP server
npm start

Claude Desktop integration and usage example

Configure Claude Desktop to load the MCP server so you can invoke AWS CLI commands from conversations.

{
  "mcpServers": {
    "aws-cli": {
      "command": "node",
      "args": [
        "/path/to/aws-cli-mcp-server/dist/index.js"
      ]
    }
  }
}

Available tools

execute-aws-command

Execute AWS CLI commands by specifying the service, optional subcommand, and options as key-value pairs.

get-service-details

Retrieve detailed information about a specific AWS service by name.