能力标签
mcp-proxy-for-aws MCP工具
🔌
MCP工具

mcp-proxy-for-aws MCP工具

基于 Python · 让 AI 助手直接操作你的系统与工具
英文名:mcp-proxy-for-aws
⭐ 288 Stars 🍴 45 Forks 💻 Python 📄 Apache-2.0 🏷 AI 8.2分
8.2AI 综合评分
AWSMCP协议API代理SigV4认证Python
✦ AI Skill Hub 推荐

AI Skill Hub 强烈推荐:mcp-proxy-for-aws MCP工具 是一款优质的MCP工具。AI 综合评分 8.2 分,在同类工具中表现稳健。如果你正在寻找可靠的MCP工具解决方案,这是一个值得深入了解的选择。

📚 深度解析

mcp-proxy-for-aws MCP工具 是一款基于 MCP(Model Context Protocol)标准协议的 AI 工具扩展。MCP 协议由 Anthropic 开发并开源,旨在建立 AI 模型与外部工具之间的标准化通信接口,目前已被 Claude Desktop、Claude Code、Cursor 等主流 AI 工具采纳。

通过安装 mcp-proxy-for-aws MCP工具,你的 AI 助手将获得额外的工具调用能力,可以用自然语言直接操控该工具的功能,无需学习复杂的命令行语法。MCP 工具的核心价值在于"一次配置,永久增强"——配置完成后,每次与 AI 对话时都可以无缝调用这些工具。

在技术实现上,MCP 工具通过标准的 JSON-RPC 协议与 AI 客户端通信,工具的功能以"工具列表"的形式暴露给 AI 模型,AI 可以按需调用。mcp-proxy-for-aws MCP工具 提供了结构化的工具调用接口,使 AI 模型能够精确地理解和使用每个功能点,显著降低 AI 在工具使用上的错误率。

与传统的 API 集成相比,MCP 工具的优势在于无需编写代码——用户只需在配置文件中添加几行 JSON,即可让 AI 获得全新能力。AI Skill Hub 将 mcp-proxy-for-aws MCP工具 评为 AI 评分 8.2 分,属于同类工具中的优质选择。

📋 工具概览

为AWS服务提供MCP(模型上下文协议)代理的开源工具。支持SigV4签名认证,让大模型能通过标准MCP接口调用AWS API,适合需要集成AWS服务的AI应用开发者。

mcp-proxy-for-aws MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

GitHub Stars
⭐ 288
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
Apache-2.0
AI 综合评分
8.2 分
工具类型
MCP工具
Forks
45

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

为AWS服务提供MCP(模型上下文协议)代理的开源工具。支持SigV4签名认证,让大模型能通过标准MCP接口调用AWS API,适合需要集成AWS服务的AI应用开发者。

mcp-proxy-for-aws MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。

📌 核心特色
  • 通过标准 MCP 协议与 Claude、Cursor 等主流 AI 客户端深度集成
  • 提供结构化工具调用接口,显著降低 AI 集成复杂度
  • 支持 Claude Desktop 和 Claude Code 无缝接入,开箱即用
  • 可与其他 MCP 工具组合叠加,构建完整 AI 工作站
  • 轻量无侵入设计,不影响现有系统架构
🎯 主要使用场景
  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/aws/mcp-proxy-for-aws

# 方式二:手动配置 claude_desktop_config.json
{
  "mcpServers": {
    "mcp-proxy-for-aws-mcp--": {
      "command": "npx",
      "args": ["-y", "mcp-proxy-for-aws"]
    }
  }
}

# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
📋 安装步骤说明
  1. 确认已安装 Node.js(v18 或以上版本)
  2. 打开 Claude Desktop 或 Claude Code 的 MCP 配置文件
  3. 按「交给 Agent 安装 → Claude Desktop」标签中的 JSON 配置填入 mcpServers 字段
  4. 保存配置文件并重启 Claude 客户端
  5. 重启后,在对话中即可使用本工具
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 安装后在 Claude 对话中直接使用
# 示例:
用户: 请帮我用 mcp-proxy-for-aws MCP工具 执行以下任务...
Claude: [自动调用 mcp-proxy-for-aws MCP工具 MCP 工具处理请求]

# 查看可用工具列表
# 在 Claude 中输入:"列出所有可用的 MCP 工具"
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
// claude_desktop_config.json 配置示例
{
  "mcpServers": {
    "mcp-proxy-for-aws_mcp__": {
      "command": "npx",
      "args": ["-y", "mcp-proxy-for-aws"],
      "env": {
        // "API_KEY": "your-api-key-here"
      }
    }
  }
}

// 保存后重启 Claude Desktop 生效
📑 README 深度解析 真实文档 完整度 95/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

MCP Proxy for AWS

Overview

The MCP Proxy for AWS package provides two ways to connect AI applications to MCP servers on AWS:

  1. Using it as a proxy - It becomes a lightweight, client-side bridge between MCP clients (AI assistants like Claude Desktop, Kiro CLI) and MCP servers on AWS. (See MCP Proxy)
  2. Using it as a library - Programmatically connect popular AI agent frameworks (LangChain, LlamaIndex, Strands Agents, etc.) to MCP servers on AWS. (See Programmatic Access)

Which Feature Should I Use?

Use as a proxy if you want to: - Connect MCP clients like Claude Desktop or Kiro CLI to MCP servers on AWS with IAM credentials - Add MCP servers on AWS to your AI assistant's configuration - Use a command-line tool that runs as a bridge between your MCP client and AWS

Use as a library if you want to: - Build AI agents programmatically using popular frameworks like LangChain, Strands Agents, or LlamaIndex - Integrate AWS IAM-secured MCP servers directly into your Python applications - Have fine-grained control over the MCP session lifecycle in your code

Prerequisites

---

Installation

Using PyPi

```bash

Build the Docker image

docker build -t mcp-proxy-for-aws . ```

Setup Examples

Add the following configuration to your MCP client config file (e.g., for Kiro CLI, edit ~/.kiro/settings/mcp.json): Note Add your own endpoint by replacing <SigV4 MCP endpoint URL>

Running from local - using uv

{
  "mcpServers": {
    "<mcp server name>": {
      "disabled": false,
      "type": "stdio",
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/mcp_proxy_for_aws",
        "run",
        "server.py",
        "<SigV4 MCP endpoint URL>",
        "--service",
        "<your service code>",
        "--profile",
        "default",
        "--region",
        "us-east-1",
        "--read-only",
        "--log-level",
        "INFO",
      ]
    }
  }
}
[!NOTE] Cline users should not use --log-level argument because Cline checks the log messages in stderr for text "error" (case insensitive).

Using Docker

Using the pre-built public ECR image:

{
  "mcpServers": {
    "<mcp server name>": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "--volume",
        "/full/path/to/.aws:/app/.aws:ro",
        "public.ecr.aws/mcp-proxy-for-aws/mcp-proxy-for-aws:latest",
        "<SigV4 MCP endpoint URL>"
      ],
      "env": {}
    }
  }
}

Or using a locally built image:

{
  "mcpServers": {
    "<mcp server name>": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "--volume",
        "/full/path/to/.aws:/app/.aws:ro",
        "mcp-proxy-for-aws",
        "<SigV4 MCP endpoint URL>"
      ],
      "env": {}
    }
  }
}

---

Installation

The client library is included when you install the package:

pip install mcp-proxy-for-aws

For development:

git clone https://github.com/aws/mcp-proxy-for-aws.git
cd mcp-proxy-for-aws
uv sync

---

Running Examples

Explore complete working examples for different frameworks in the ./examples/mcp-client directory:

Available examples: - LangChain - LlamaIndex - Microsoft Agent Framework - Strands Agents SDK

Run examples individually:

cd examples/mcp-client/[framework]  # e.g. examples/mcp-client/strands
uv run main.py

Configuration Parameters

ParameterDescriptionDefaultRequired
endpointMCP endpoint URL (e.g., https://your-service.us-east-1.amazonaws.com/mcp)N/AYes
------------
--serviceAWS service name for SigV4 signing, if omitted we try to infer this from the urlInferred from endpoint if not providedNo
--profileAWS profile(s) to use. First profile is the default. Additional profiles enable per-call switching via aws_profile tool parameter (e.g., --profile prod-readonly dev staging)Falls back to AWS_PROFILE if --profile and AWS_MCP_PROXY_PROFILES are not setNo
--regionAWS region to useUses AWS_REGION environment variable if not setNo
--metadataMetadata to inject into MCP requests as key=value pairs (e.g., --metadata KEY1=value1 KEY2=value2)AWS_REGION is automatically injected based on --region if not providedNo
--read-onlyDisable tools which may require write permissions (tools which DO NOT require write permissions are annotated with [readOnlyHint=true](https://modelcontextprotocol.io/specification/2025-06-18/schema#toolannotations-readonlyhint))FalseNo
--retriesConfigures number of retries done when calling upstream services, setting this to 0 disables retries.0No
--log-levelSet the logging level (DEBUG/INFO/WARNING/ERROR/CRITICAL)INFONo
--timeoutSet desired timeout in seconds across all operations180No
--connect-timeoutSet desired connect timeout in seconds60No
--read-timeoutSet desired read timeout in seconds120No
--write-timeoutSet desired write timeout in seconds180No
--tool-timeoutMaximum seconds a tool call may take before being cancelled. When set, returns a graceful error to the agent instead of hanging indefinitely300No
--skip-authSkip request signing when AWS credentials are unavailable instead of failingFalseNo
--disable-telemetryDisables telemetry data collectionFalseNo

Optional Environment Variables

Set the environment variables for the MCP Proxy for AWS:

```bash

Via environment variable (same behavior, for plugin integration)

AWS_MCP_PROXY_PROFILES="prod-readonly dev staging" mcp-proxy-for-aws https://aws-mcp.us-east-1.api.aws/mcp


**How it works:**

- The proxy injects an `aws_profile` parameter into auth-requiring tools
- The agent can pass `aws_profile` on any call to route it through a specific profile's credentials
- If `aws_profile` is omitted, the default (first) profile is used
- Invalid profiles are rejected with an error listing allowed values
- Each non-default profile gets its own dedicated connection to the backend

**Example MCP config (Kiro):**
json { "mcpServers": { "aws": { "command": "uvx", "args": ["mcp-proxy-for-aws@1.6.0", "https://aws-mcp.us-east-1.api.aws/mcp"], "env": { "AWS_MCP_PROXY_PROFILES": "prod-readonly dev staging" } } } } ```

Via CLI flag (first profile is default, rest are switchable)

mcp-proxy-for-aws https://aws-mcp.us-east-1.api.aws/mcp --profile prod-readonly dev staging

When Do You Need This Package?

  • You want to connect to MCP servers on AWS (e.g., using Amazon Bedrock AgentCore) that use AWS IAM authentication (SigV4) instead of OAuth
  • You're using MCP clients (like Claude Desktop, Kiro CLI) that don't natively support AWS IAM authentication
  • You're building AI agents with popular frameworks like LangChain, Strands Agents, LlamaIndex, etc., that need to connect to MCP servers on AWS
  • You want to avoid building custom SigV4 request signing logic yourself

How This Package Helps

The Problem: The official MCP specification supports OAuth-based authentication, but MCP servers on AWS can also use AWS IAM authentication (SigV4). Standard MCP clients don't know how to sign requests with AWS credentials.

The Solution: This package bridges that gap by: - Handling SigV4 authentication automatically - Uses your local AWS credentials (from AWS CLI, environment variables, or IAM roles) to sign all MCP requests using SigV4 - Providing seamless integration - Works with existing MCP clients and frameworks - Eliminating custom code - No need to build your own MCP client with SigV4 signing logic

Integration Patterns

The library supports two integration patterns depending on your framework:

Pattern 1: Client Factory Integration

Use with: Frameworks that accept a factory function that returns an MCP client, e.g. Strands Agents, Microsoft Agent Framework. The aws_iam_streamablehttp_client is passed as a factory to the framework, which handles the connection lifecycle internally.

Example - Strands Agents:

from mcp_proxy_for_aws.client import aws_iam_streamablehttp_client

mcp_client_factory = lambda: aws_iam_streamablehttp_client(
    endpoint=mcp_url,    # The URL of the MCP server
    aws_region=region,   # The region of the MCP server
    aws_service=service  # The underlying AWS service, e.g. "bedrock-agentcore"
)

with MCPClient(mcp_client_factory) as mcp_client:
    mcp_tools = mcp_client.list_tools_sync()
    agent = Agent(tools=mcp_tools, ...)

Example - Microsoft Agent Framework:

from mcp_proxy_for_aws.client import aws_iam_streamablehttp_client

mcp_client_factory = lambda: aws_iam_streamablehttp_client(
    endpoint=mcp_url,    # The URL of the MCP server
    aws_region=region,   # The region of the MCP server
    aws_service=service  # The underlying AWS service, e.g. "bedrock-agentcore"
)

mcp_tools = MCPStreamableHTTPTool(name="MCP Tools", url=mcp_url)
mcp_tools.get_mcp_client = mcp_client_factory

async with mcp_tools:
    agent = ChatAgent(tools=[mcp_tools], ...)

Pattern 2: Direct MCP Session Integration

Use with: Frameworks that require direct access to the MCP sessions, e.g. LangChain, LlamaIndex. The aws_iam_streamablehttp_client provides the authenticated transport streams, which are then used to create an MCP ClientSession.

Example - LangChain:

from mcp_proxy_for_aws.client import aws_iam_streamablehttp_client

mcp_client = aws_iam_streamablehttp_client(
    endpoint=mcp_url,    # The URL of the MCP server
    aws_region=region,   # The region of the MCP server
    aws_service=service  # The underlying AWS service, e.g. "bedrock-agentcore"
)

async with mcp_client as (read, write, session_id_callback):
    async with ClientSession(read, write) as session:
        mcp_tools = await load_mcp_tools(session)
        agent = create_langchain_agent(tools=mcp_tools, ...)

Example - LlamaIndex:

from mcp_proxy_for_aws.client import aws_iam_streamablehttp_client

mcp_client = aws_iam_streamablehttp_client(
    endpoint=mcp_url,    # The URL of the MCP server
    aws_region=region,   # The region of the MCP server
    aws_service=service  # The underlying AWS service, e.g. "bedrock-agentcore"
)

async with mcp_client as (read, write, session_id_callback):
    async with ClientSession(read, write) as session:
        mcp_tools = await McpToolSpec(client=session).to_tool_list_async()
        agent = ReActAgent(tools=mcp_tools, ...)

Multi-profile switching (alternative to --profile flag, useful for plugin integration)

export AWS_MCP_PROXY_PROFILES="prod-readonly dev staging" ```

Note: AWS_MCP_PROXY_PROFILES takes precedence over --profile / AWS_PROFILE when set.

Troubleshooting

🇨🇳 中文文档镜像 AI 翻译 2026-06-03
英文原文章节由系统翻译为中文摘要,便于快速理解。完整原文见上方 "📑 README 深度解析"。
📌 简介

MCP Proxy for AWS 是一个用于连接 AI 应用程序到 MCP 服务器的包,提供两种连接方式:使用它作为代理或使用它作为库。它可以作为一个轻量级的客户端桥梁,连接 MCP 客户端(如 Claude Desktop、Kiro CLI)和 MCP 服务器。

⚡ 功能介绍

如果您想使用 MCP Proxy for AWS 作为代理,则可以连接 MCP 客户端(如 Claude Desktop 或 Kiro CLI)到 MCP 服务器上,使用 IAM 凭证。您还可以将 MCP 服务器添加到您的 AI 助手的配置中,使用命令行工具作为桥梁。

📋 环境依赖

环境依赖与系统要求:Python 3.10+、uv 包管理器和 AWS 凭证配置(通过 AWS CLI)

🛠 安装步骤(Docker/pip/源码)

安装步骤:使用 PyPi 安装、构建 Docker 镜像、设置示例和运行本地示例

🚀 使用教程

使用教程:运行示例、探索完整的工作示例和使用不同的框架(如 LangChain、LlamaIndex 等)

⚙️ 配置说明(含 MCP / env)

配置参数:MCP 服务器、环境变量和关键参数

🔄 工作流/模块

工作流 / 模块说明:连接 MCP 服务器、使用 MCP 客户端和解决问题

❓ FAQ 摘要

FAQ 摘要:解决常见问题和疑难杂症

🎯 aiskill88 AI 点评 A 级 2026-05-20

288星活跃项目,解决MCP与AWS集成的关键问题。SigV4认证设计专业,代码质量较好,生态意义重大。

📚 实用指南(长尾问题)
适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • Docker:mcp-proxy-for-aws 提供官方镜像,docker compose up 一键启动
  • CLI:直接 npm install -g / pip install,命令行调用
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
mcp-proxy-for-aws 中文教程mcp-proxy-for-aws 安装报错怎么办mcp-proxy-for-aws MCP 配置mcp-proxy-for-aws Docker 部署mcp-proxy-for-aws Agent 工作流mcp-proxy-for-aws 与同类工具对比mcp-proxy-for-aws 最佳实践mcp-proxy-for-aws 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
  • Python 依赖冲突:建议用 venv / uv 隔离环境

👥 适合人群

Claude Desktop / Claude Code 用户AI 工具开发者需要扩展 AI 能力的专业人士自动化工程师

🎯 使用场景

  • 在 Claude Desktop 对话中直接调用本地工具,实现 AI 与系统的深度联动
  • 通过自然语言驱动复杂的多步骤自动化任务,代替繁琐手动操作
  • 将多个 MCP 工具组合使用,构建个人专属 AI 工作站

⚖️ 优点与不足

✅ 优点
  • +Apache-2.0 协议,可免费商用
  • +标准化 MCP 协议,生态互联性强
  • +与 Claude 官方生态无缝对接
  • +即插即用,配置简单快捷
⚠️ 不足
  • 依赖 Claude 客户端,非 Claude 用户无法使用
  • MCP 协议仍在持续演进,接口可能变更
  • 需要一定的配置步骤
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。

🔗 相关工具推荐

📚 相关教程推荐
📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

使用环境变量或AWS凭证文件配置Access Key和Secret Key,代理会自动处理SigV4签名。
💡 AI Skill Hub 点评

总体来看,mcp-proxy-for-aws MCP工具 是一款质量优秀的MCP工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

⬇️ 获取与下载
⬇ 下载源码 ZIP

✅ Apache-2.0 协议 · 可免费商用 · 直接从 aiskill88 服务器下载,无需跳转 GitHub

📚 深入学习 mcp-proxy-for-aws MCP工具
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 mcp-proxy-for-aws
原始描述 开源MCP工具:AWS MCP Proxy Server。⭐288 · Python
Topics AWSMCP协议API代理SigV4认证Python
GitHub https://github.com/aws/mcp-proxy-for-aws
License Apache-2.0
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/aws/mcp-proxy-for-aws

收录时间:2026-05-18 · 更新时间:2026-05-19 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →