
aws-solutions-library-samples/guidance-for-deploying-model-context-protocol-servers-on-aws
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
このガイダンスは、コンテナ化されたアーキテクチャを用いてAWSクラウド上でモデルコンテキストプロトコル(MCP)サーバーを安全に運用する方法を示しています。これは、組織が業界標準のOAuth 2を実装するのに役立ちます。
概要
このガイダンスでは、Amazon Cognitoを用いて安全な認証を備えたモデルコンテキストプロトコル(MCP)サーバーをAWS上で展開する方法を示し、OAuth 2.0保護リソースメタデータ(RFC9728)を実装しています。これにより、標準準拠のOAuth 2.0認証フローを通じてセキュリティを維持しつつ、リモートアクセス可能なMCPサーバーをホストできます。 このソリューションは、いくつかの重要な課題に対応しています。 - AWSインフラ上でのMCPサーバーの安全なホスティング - OAuth 2.0保護リソースメタデータ(RFC9728)を用いた標準準拠認証 - 安全なStreamableHTTPトランスポートを通じたMCPサーバーへのリモートアクセス - クライアントサポートのためのステートレスサーバーアーキテクチャ - AWS CDKを用いたスケーラブルかつ保守可能な展開 1. WAF保護付きグローバルコンテンツ配信 2.トラフィック配信およびSSL終端用 3.コンテナ化およびサーバーレスMCPサーバー向け 4.OAuth 2.0認証サーバー機能用 5.標準準拠認証用エンドポイント 6.
概要(AI 翻訳)
目次
- 概要
- コスト
- 前提条件
- オペレーティングシステム
- 展開ステップ
- 展開検証
- ガイダンスの実行
- 次のステップ
- 清掃
- FAQ、既知の問題点、追加の考慮事項および制限事項
- 改訂
- 通知
概要
このガイダンスは、Amazon Cognitoを用いて安全な認証を備えたモデルコンテキストプロトコル(MCP)サーバーをAWS上で展開する方法を示し、OAuth 2.0保護リソースメタデータ(RFC9728)を用いた2025-06-18 MCP仕様を実装しています。これにより、標準準準のOAuth 2.0認証フローを通じてセキュリティを維持しつつ、リモートアクセス可能なMCPサーバーをホストできます。
このソリューションは、いくつかの重要な課題に対応しています。
- AWSインフラ上でのMCPサーバーの安全なホスティング
- OAuth 2.0保護リソースメタデータ(RFC9728)を用いた標準準拠認証
- 安全なStreamableHTTPトランスポートを通じたMCPサーバーへのリモートアクセス
- 並行クライアントサポートのためのステートレスサーバーアーキテクチャ
- AWS CDKを用いたスケーラブルかつ保守可能な展開
建築
アーキテクチャは以下を実装しています:
- **CloudFront配信:グローバルコンテンツ配信とWAF保護
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Guidance for Deploying Model Context Protocol Servers on AWS
Table of Contents
- Overview
- Prerequisites
- Deployment Steps
- Deployment Validation
- Running the Guidance
- Next Steps
- Cleanup
- FAQ, known issues, additional considerations, and limitations
- Revisions
- Notices
Overview
This guidance demonstrates how to deploy Model Context Protocol (MCP) servers on AWS with secure authentication using Amazon Cognito, implementing the 2025-06-18 MCP specification with OAuth 2.0 Protected Resource Metadata (RFC9728). It enables you to host MCP servers that can be accessed remotely while maintaining security through standards-compliant OAuth 2.0 authentication flows.
The solution addresses several key challenges:
- Secure hosting of MCP servers on AWS infrastructure
- Standards-compliant authentication using OAuth 2.0 Protected Resource Metadata (RFC9728)
- Remote access to MCP servers through secure StreamableHTTP transport
- Stateless server architecture for concurrent client support
- Scalable and maintainable deployment using AWS CDK
Architecture
The architecture implements:
- CloudFront distribution for global content delivery with WAF protection
- Application Load Balancer for traffic distribution and SSL termination
- ECS Fargate and Lambda for containerized and serverless MCP servers
- AWS Cognito for OAuth 2.0 authorization server functionality
- OAuth 2.0 Protected Resource Metadata endpoints for standards-compliant authentication
- StreamableHTTP transport with stateless request handling
- Four-stack CDK deployment: VPC, Security, CloudFront WAF, and MCP Server stacks
Cost
You are responsible for the cost of the AWS services used while running this Guidance. As of August 2025, the cost for running this Guidance with the default settings in the US East (N. Virginia) Region is approximately $194.18 per month for processing moderate traffic levels.
We recommend creating a Budget through AWS Cost Explorer to help manage costs. Prices are subject to change. For full details, refer to the pricing webpage for each AWS service used in this Guidance.
Estimated Cost Table
The following table provides a sample cost breakdown for deploying this Guidance with the default parameters in the US East (N. Virginia) Region for one month.
| AWS service | Dimensions | Cost [USD] |
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →