aws-mcp

aws-mcp

Runs on Cloudflare Workers to let MCP clients execute AWS API commands with your own credentials via SigV4-signed HTTPS requests. Supports common S3, EC2, IAM, Lambda, and STS operations plus a generic escape-hatch for any AWS API call.

Category
Visit Server

README

aws-mcp

A remote MCP (Model Context Protocol) server that runs on Cloudflare Workers and lets an MCP client (like Claude) execute AWS commands with your own credentials.

How it works (and an important note about the "AWS CLI")

Cloudflare Workers run in a lightweight V8 isolate — there is no filesystem, no subprocesses, and no Python, so the real aws CLI binary cannot run there. Instead, this Worker talks to AWS the same way the CLI does under the hood: it builds SigV4-signed HTTPS requests to the AWS service APIs. The result is the same capability — "give it keys and run AWS commands" — implemented in a way that actually runs on Cloudflare, with zero runtime dependencies (SigV4 is hand-rolled with the Web Crypto API).

The MCP client (Claude) knows the AWS APIs, so it can drive the generic aws_api_request tool to perform essentially any operation, plus there are ready-made convenience tools for common tasks.

Tools exposed

Tool What it does
aws_api_request Escape hatch — run ANY AWS API call (choose service, region, method, path, query, headers, body). Returns raw HTTP status + body.
sts_get_caller_identity Who am I? Verifies the credentials are wired up.
s3_list_buckets List all S3 buckets.
s3_list_objects List objects in a bucket (optional prefix).
ec2_describe_instances Describe EC2 instances in a region.
ec2_describe_regions List available regions.
iam_list_users List IAM users.
lambda_list_functions List Lambda functions.

Deploy to Cloudflare (via the GitHub form you have open)

The repo is already set up for Cloudflare's "Import a repository" flow:

  • Build command: (leave empty)
  • Deploy command: npx wrangler deploy

Click Deploy. Cloudflare installs dependencies and runs Wrangler, which reads wrangler.toml and publishes the Worker named aws-mcp.

After the first deploy — add your secrets

The Worker needs credentials. Set them as secrets (never commit them). Either in the dashboard (Workers & Pages → aws-mcp → Settings → Variables and Secrets → Add → Encrypt) or from a terminal:

npx wrangler secret put MCP_AUTH_TOKEN         # a long random string YOU invent
npx wrangler secret put AWS_ACCESS_KEY_ID
npx wrangler secret put AWS_SECRET_ACCESS_KEY
# optional, only for temporary/STS credentials:
npx wrangler secret put AWS_SESSION_TOKEN

The default region lives in wrangler.toml (AWS_DEFAULT_REGION); override per call with a region argument.

Security: MCP_AUTH_TOKEN is what stops the public internet from using your AWS keys. Always set it. Give AWS keys the least privilege you need — this server can do whatever those keys can do.

Connect an MCP client

Add the Worker URL (e.g. https://aws-mcp.<your-subdomain>.workers.dev) as a Streamable HTTP MCP server, sending your token:

Authorization: Bearer <MCP_AUTH_TOKEN>

For Claude Code / CLI:

claude mcp add --transport http aws https://aws-mcp.<your-subdomain>.workers.dev \
  --header "Authorization: Bearer <MCP_AUTH_TOKEN>"

Clients that can't set headers may instead append ?token=<MCP_AUTH_TOKEN> to the URL.

Quick checks

# health (no auth needed)
curl https://aws-mcp.<your-subdomain>.workers.dev/health

# list tools
curl -X POST https://aws-mcp.<your-subdomain>.workers.dev \
  -H "Authorization: Bearer <MCP_AUTH_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

# who am I
curl -X POST https://aws-mcp.<your-subdomain>.workers.dev \
  -H "Authorization: Bearer <MCP_AUTH_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"sts_get_caller_identity","arguments":{}}}'

Local development

npm install
cp .dev.vars.example .dev.vars   # fill in your keys
npm run dev

Layout

src/index.ts   MCP JSON-RPC over HTTP (Streamable HTTP transport) + routing/auth
src/aws.ts     AWS request execution + tool definitions
src/sigv4.ts   AWS Signature V4 signer (Web Crypto, no dependencies)
wrangler.toml  Cloudflare Worker config

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured