aws/mcp-proxy-for-aws
AWS MCP Proxy Server
MCP Proxy for AWS — Explained
What It Is
A tool that lets AI applications (like Claude Desktop or Kiro CLI) talk to MCP servers hosted on AWS — even though those servers use AWS's own authentication method (called SigV4) instead of the standard OAuth that most MCP clients expect.
The Problem It Solves
- MCP servers on AWS can require AWS IAM authentication (SigV4) — a way of signing requests with AWS credentials.
- Standard MCP clients (Claude Desktop, Kiro CLI, etc.) only know how to do OAuth, not SigV4.
- So without this tool, you'd have to write your own code to sign every request with AWS credentials.
The Solution
This package automatically signs all MCP requests using your local AWS credentials (from AWS CLI, environment variables, or IAM roles). You don't write any signing logic yourself.
Two Ways to Use It
1. As a Proxy (CLI tool)
A lightweight bridge between your MCP client and the AWS MCP server. You run a command, and it handles authentication in the background.
Install: mcp-proxy-for-aws-cli — a version-pinned distribution that freezes all dependencies to tested versions (safer for fresh installs).
Run:
uvx mcp-proxy-for-aws-cli@latest <SigV4 MCP endpoint URL>
Also available via Docker (pre-built images on AWS ECR) or from a local clone of the repo.
2. As a Library (Python)
For developers building AI agents programmatically with frameworks like LangChain, LlamaIndex, or Strands Agents. You import mcp_proxy_for_aws and get an authenticated client you can plug into your framework.
Install: mcp-proxy-for-aws — the library distribution with loose dependency ranges so it co-resolves with your own dependencies.
Key Features
- Automatic SigV4 signing — uses your AWS credentials, no custom code.
- Multi-account support — you can specify multiple AWS profiles and switch between them per tool call (via an
aws_profileparameter). - Dynamic tool discovery — the proxy automatically finds and exposes available tools.
- Metadata injection — attach extra context (like tracking IDs) to MCP requests.
- Read-only mode — disables tools that require write permissions.
- Retries and timeouts — configurable.
- Telemetry — can be disabled.
Configuration (CLI)
Key parameters (all optional unless noted):
| Parameter | Purpose | Default |
|---|---|---|
endpoint (required) |
The MCP server URL | — |
--service |
AWS service name for signing (e.g., bedrock-agentcore) |
Inferred from URL |
--profile |
AWS profile(s) to use; first is default, others enable per-call switching | Falls back to AWS_PROFILE |
--region |
AWS region | AWS_REGION env var |
--read-only |
Disable write tools | False |
--retries |
Number of retries for upstream calls | 0 |
--timeout |
Overall timeout in seconds | 180 |
--skip-auth |
Skip signing if credentials unavailable | False |
--disable-telemetry |
Turn off telemetry | False |
Library Usage (Python)
The core function is aws_iam_streamablehttp_client(). It returns an authenticated MCP client.
Two integration patterns:
- Client Factory — pass the function as a factory to frameworks that manage the connection lifecycle (e.g., Strands Agents, Microsoft Agent Framework).
- Direct Session — use the returned streams to create an MCP
ClientSessionyourself (e.g., with LangChain or LlamaIndex).
Example (LangChain):
from mcp_proxy_for_aws.client import aws_iam_streamablehttp_client
mcp_client = aws_iam_streamablehttp_client(
endpoint=mcp_url,
aws_region=region,
aws_service=service
)
async with mcp_client as (read, write, session_id_callback):
async with ClientSession(read, write) as session:
mcp_tools = await load_mcp_tools(session)
# ... build your agent
Prerequisites
- Python 3.11+
uvpackage manager- AWS credentials configured (via AWS CLI, env vars, or IAM roles)
- Optional: Docker Desktop for container usage
When to Use Which
- Proxy (CLI): You want to connect an existing MCP client (Claude Desktop, Kiro) to an AWS MCP server, or add it to your assistant's config.
- Library: You're building a Python AI agent and want to integrate AWS MCP servers directly into your code.
All information above is drawn directly from the project's README.
Related
- Project
- Project
- Project
- Project
- Project