AWS CLI Bridge

v1.0.0Cloud Servicesstable

A lightweight service that enables AI assistants to execute AWS CLI commands (in safe containerized environment) through the Model Context Protocol (MCP). Bridges Claude, Cursor, and other MCP-aware AI tools with AWS CLI for enhanced cloud infrastruc

ai-assistantawsaws-automationclaudecloud-infrastructure
Share:
182
Stars
0
Downloads
0
Weekly
0/5

What is AWS CLI Bridge?

AWS CLI Bridge is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to lightweight service that enables ai assistants to execute aws cli commands (in safe containerized environment) through the model context protocol (mcp). bridges claude, cursor, and other mcp-aware ai ...

A lightweight service that enables AI assistants to execute AWS CLI commands (in safe containerized environment) through the Model Context Protocol (MCP). Bridges Claude, Cursor, and other MCP-aware AI tools with AWS CLI for enhanced cloud infrastruc

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A lightweight service that enables AI assistants to execute

Use Cases

Execute AWS CLI commands safely
Cloud infrastructure management
Containerized execution
alexei-led

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedApr 24, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx aws-model-context-protocol-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use AWS CLI Bridge

The AWS MCP Server bridges AI assistants like Claude and Cursor with the AWS CLI, letting them discover and execute any AWS command through two focused tools: one for fetching CLI help documentation and one for running commands with optional Unix pipeline processing. Commands run inside a safe sandboxed environment, and all AWS credential management is handled through the standard AWS config/credentials files or environment variables. This server is ideal for DevOps engineers and cloud architects who want to manage AWS infrastructure — querying resources, deploying stacks, inspecting logs — through natural language without switching context to a terminal.

Prerequisites

  • Docker installed (required for the default sandboxed execution mode)
  • AWS CLI configured with valid credentials (via ~/.aws/credentials or environment variables)
  • Python 3.11+ and uv package manager, or Docker for the containerized deployment
  • An IAM user or role with permissions matching the operations you intend to perform
  • An MCP-compatible client such as Claude Desktop or Claude Code
1

Install via uvx (stdio transport)

The simplest deployment uses uvx to run the server directly. AWS credentials are picked up from your standard ~/.aws directory.

uvx aws-mcp
2

Alternative: run with Docker (HTTP transport)

For remote or team deployments, run as a container with Streamable HTTP transport. Mount your AWS credentials as read-only.

docker run --rm -p 8000:8000 \
  -e AWS_MCP_TRANSPORT=streamable-http \
  -v ~/.aws:/home/appuser/.aws:ro \
  ghcr.io/alexei-led/aws-mcp-server:latest
3

Configure AWS credentials

Set the AWS_PROFILE and AWS_REGION environment variables in the MCP server config if you want to use a non-default profile or region.

4

Add the server to your MCP client

Add the server block to your claude_desktop_config.json or Claude Code settings. The uvx command requires no additional installation steps.

5

Test with a safe read-only command

Ask the assistant to list your S3 buckets or describe EC2 instances. The server will first learn the command syntax via --help, then execute it.

AWS CLI Bridge Examples

Client configuration

Add to your claude_desktop_config.json. Optionally set AWS_PROFILE and AWS_REGION to target a specific account and region.

{
  "mcpServers": {
    "aws": {
      "command": "uvx",
      "args": ["aws-mcp"],
      "env": {
        "AWS_PROFILE": "default",
        "AWS_REGION": "us-east-1",
        "AWS_MCP_TIMEOUT": "300",
        "AWS_MCP_SANDBOX": "auto"
      }
    }
  }
}

Prompts to try

Example prompts covering common AWS operations from resource discovery to cost analysis.

- "List all my S3 buckets and their creation dates"
- "Describe all running EC2 instances in us-east-1 and show their instance types"
- "Show me the last 50 CloudWatch log events from the /aws/lambda/my-function log group"
- "List all CloudFormation stacks and their statuses"
- "What IAM policies are attached to the role named MyLambdaRole?"
- "Get the current AWS bill estimate for this month"

Troubleshooting AWS CLI Bridge

Commands fail with 'Unable to locate credentials'

Ensure ~/.aws/credentials exists and contains a [default] profile (or set AWS_PROFILE to a valid profile name). When using Docker, confirm the volume mount -v ~/.aws:/home/appuser/.aws:ro is present in the run command.

Sandbox mode blocks command execution

Set AWS_MCP_SANDBOX=disabled in the env block if you want commands to run without the sandbox. Note: only do this in trusted environments since it removes the execution isolation layer.

Output is truncated for large AWS responses

Increase AWS_MCP_MAX_OUTPUT beyond the default of 100000 characters, or use the pipeline feature (jq/grep) to filter results before they reach the output limit.

Frequently Asked Questions about AWS CLI Bridge

What is AWS CLI Bridge?

AWS CLI Bridge is a Model Context Protocol (MCP) server that lightweight service that enables ai assistants to execute aws cli commands (in safe containerized environment) through the model context protocol (mcp). bridges claude, cursor, and other mcp-aware ai tools with aws cli for enhanced cloud infrastruc It connects AI assistants to external tools and data sources through a standardized interface.

How do I install AWS CLI Bridge?

Follow the installation instructions on the AWS CLI Bridge GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with AWS CLI Bridge?

AWS CLI Bridge works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is AWS CLI Bridge free to use?

Yes, AWS CLI Bridge is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "aws-model-context-protocol-server": { "command": "npx", "args": ["-y", "aws-model-context-protocol-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use AWS CLI Bridge?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides