Back to MCP directory
publicPublicdnsLocal runtime

mcp-server-with-fargate

使用AWS Fargate在AWS上部署MCP服务器

article

README

🚀 使用 AWS Fargate 部署 MCP 服务器到 AWS

本项目可帮助您利用 AWS Fargate 将 MCP 服务器部署至 AWS,有效解决在 AWS 上部署 MCP 服务器的难题,为您提供便捷高效的部署方案。

🚀 快速开始

部署步骤

  1. 确保已安装最新版本的 AWS CDK:
npm install -g aws-cdk@latest
  1. 运行以下命令进行部署:
cdk deploy
  1. 使用 HTTP 作为传输层创建您的 MCP 客户端。
  2. 向服务器发起 ping 请求。

📦 安装指南

安装 AWS CDK

要保证安装了最新版本的 AWS CDK,可执行如下命令:

npm install -g aws-cdk@latest

💻 使用示例

基础用法

创建 MCP 客户端

使用 HTTP 作为传输层创建 MCP 客户端。

发起 ping 请求

向服务器发起 ping 请求以验证连接。

📚 详细文档

架构图

架构图 此架构图展示了使用 AWS Fargate 部署 MCP 服务器到 AWS 的整体架构。

help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client