
aws-solutions-library-samples/guidance-for-deploying-model-context-protocol-servers-on-aws
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
이 가이드는 컨테이너화된 아키텍처를 사용하여 AWS 클라우드에서 모델 컨텍스트 프로토콜(MCP) 서버를 안전하게 실행하는 방법을 보여줍니다. 이 가이드는 조직이 업계 표준 OAuth 2를 구현하는 데 도움을 줍니다.
개요
이 지침은 Amazon Cognito를 사용해 AWS에서 모델 컨텍스트 프로토콜(MCP) 서버를 안전한 인증으로 배포하는 방법을 보여줍니다. 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를 사용하여 안전한 인증을 적용한 AWS에서 모델 컨텍스트 프로토콜(MCP) 서버를 배포하는 방법을 시연하며, 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 가이드부터 시작하세요 →