All How-To Guides

3 Ways to Deploy to AWS with Claude Code

How to deploy to AWS with Claude Code?

3 MCP servers featured

Deploying to AWS involves managing infrastructure, configurations, and deployment pipelines. MCP servers can give Claude secure access to AWS services for deployment automation. Here are the best options for AWS integration.

Recommended MCP Servers

AWS MCP Server

alexei-mcp/aws-mcp-server

>500

Comprehensive AWS integration supporting EC2, S3, Lambda, and other core AWS services.

Key Features

  • EC2 instance management
  • S3 bucket operations
  • Lambda function deployment
  • CloudWatch monitoring

Installation

pip install aws-mcp-server

This AWS MCP provides broad coverage of AWS services. Deploy Lambda functions, manage EC2 instances, and work with S3—all through Claude. A good starting point for AWS automation.

Best for: General AWS management View on GitHub

Shell MCP + AWS CLI

anthropics/mcp-server-shell

>2k

Use the official Shell MCP to run AWS CLI commands for any AWS operation.

Key Features

  • Full AWS CLI access
  • Any AWS service
  • Existing IAM credentials
  • Complete flexibility

Installation

npx @modelcontextprotocol/server-shell

The most flexible approach: let Claude run AWS CLI commands directly. If you have the AWS CLI configured with appropriate credentials, Claude can execute any AWS operation you could run manually.

Best for: Complex AWS operations View on GitHub

Cloudflare MCP

cloudflare/mcp-server-cloudflare

>1k

Official Cloudflare integration for Workers, Pages, and edge deployment.

Key Features

  • Workers deployment
  • Pages site management
  • KV and D1 database access
  • Official Cloudflare support

Installation

npx @cloudflare/mcp-server-cloudflare

While not AWS, Cloudflare MCP is worth mentioning for edge deployments. Deploy Workers, manage Pages sites, and work with Cloudflare's database services. An alternative for serverless edge computing.

Best for: Cloudflare/edge deployments View on GitHub

Quick Comparison

MCPStarsBest ForProsCons
AWS MCP>500Core AWS servicesStructured APILimited services
Shell + CLI>2kAny AWS operationFull flexibilityLess structured
Cloudflare MCP>1kEdge deploymentOfficial supportNot AWS

Getting Started

To deploy to AWS with Claude Code:

  1. Configure AWS credentials in your environment (aws configure).

  2. For most flexibility, use Claude Code's built-in bash:

    "Deploy the updated Lambda function to production."
    
  3. For structured AWS access, install an AWS MCP server.

Example prompt: "Deploy this new version of my Lambda function and update the API Gateway to point to it."

Related Guides