Skip to main content

AWS Model Context Protocol Server

Project description

AWS MCP Server

CI PyPI Code Coverage Linter: Ruff Docker Image

Give Claude access to all 200+ AWS services through the AWS CLI.

Demo

Demo

What It Does

This MCP server lets Claude run AWS CLI commands on your behalf. Instead of wrapping each AWS API individually, it wraps the CLI itself—giving Claude complete AWS access through just two tools:

Tool Purpose
aws_cli_help Get documentation for any AWS command
aws_cli_pipeline Execute AWS CLI commands with optional pipes (jq, grep, etc.)

Claude learns commands on-demand using --help, then executes them. Your IAM policy controls what it can actually do.

flowchart LR
    Claude[Claude] -->|MCP| Server[AWS MCP Server]
    Server --> CLI[AWS CLI]
    CLI --> AWS[AWS Cloud]
    IAM[Your IAM Policy] -.->|controls| AWS

Quick Start

Prerequisites

Claude Code

Add to your MCP settings (Cmd+Shift+P → "Claude: Open MCP Config"):

{
  "mcpServers": {
    "aws": {
      "command": "uvx",
      "args": ["aws-mcp"]
    }
  }
}

Claude Desktop

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "aws": {
      "command": "uvx",
      "args": ["aws-mcp"]
    }
  }
}

Docker (More Secure)

Docker provides stronger isolation by running commands in a container:

{
  "mcpServers": {
    "aws": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-v",
        "~/.aws:/home/appuser/.aws:ro",
        "ghcr.io/alexei-led/aws-mcp-server:latest"
      ]
    }
  }
}

Note: Replace ~/.aws with the full path on Windows (e.g., C:\Users\YOU\.aws).

AWS Credentials

The server uses the standard AWS credential chain. Your credentials are discovered automatically from:

  1. Environment variables: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY
  2. Credentials file: ~/.aws/credentials
  3. Config file: ~/.aws/config (for profiles and region)
  4. IAM role: When running on EC2, ECS, or Lambda

To use a specific profile:

{
  "mcpServers": {
    "aws": {
      "command": "uvx",
      "args": ["aws-mcp"],
      "env": {
        "AWS_PROFILE": "my-profile"
      }
    }
  }
}

Configuration

AWS Settings

Environment Variable Description Default
AWS_PROFILE AWS profile to use default
AWS_REGION AWS region (also accepts AWS_DEFAULT_REGION) us-east-1
AWS_CONFIG_FILE Custom path to AWS config file ~/.aws/config
AWS_SHARED_CREDENTIALS_FILE Custom path to credentials file ~/.aws/credentials

Server Settings

Environment Variable Description Default
AWS_MCP_TIMEOUT Command execution timeout in seconds 300
AWS_MCP_MAX_OUTPUT Maximum output size in characters 100000
AWS_MCP_TRANSPORT Transport protocol (stdio or sse) stdio
AWS_MCP_SANDBOX Sandbox mode (auto, disabled, required) auto
AWS_MCP_SANDBOX_CREDENTIALS Credential passing (env, aws_config, both) both

Security

Your IAM policy is your security boundary. This server executes whatever AWS commands Claude requests—IAM controls what actually succeeds.

Best practices:

  • Use a least-privilege IAM role (only permissions Claude needs)
  • Never use root credentials
  • Consider Docker for additional host isolation

For detailed security architecture, see Security Documentation.

Documentation

License

MIT License — see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_mcp-1.5.5.tar.gz (5.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_mcp-1.5.5-py3-none-any.whl (32.1 kB view details)

Uploaded Python 3

File details

Details for the file aws_mcp-1.5.5.tar.gz.

File metadata

  • Download URL: aws_mcp-1.5.5.tar.gz
  • Upload date:
  • Size: 5.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for aws_mcp-1.5.5.tar.gz
Algorithm Hash digest
SHA256 cba79e525c7abe79d1268b1c52b2dd7906c297e4112c3a5d64feb835f42b517a
MD5 af5e25c434e94722f70ee119033ed8cb
BLAKE2b-256 aa628880667c8ed88c6dbd2d7b0eb48fe785aad57c81718bce2c589a895bc330

See more details on using hashes here.

File details

Details for the file aws_mcp-1.5.5-py3-none-any.whl.

File metadata

  • Download URL: aws_mcp-1.5.5-py3-none-any.whl
  • Upload date:
  • Size: 32.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for aws_mcp-1.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fa4e31a34f19b1db92e019836f9ef865d0bf0e868f5caf6f64e1a1ddd367455d
MD5 3e12393e4a61dc5716536fa25f0bf9d0
BLAKE2b-256 691f15f46e0e579df222937176c783a4417131f6b0c6423c9d21e8b42f892a10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page