Overview of Deploying MCP Servers on AWS
mainThis guidance provides a pattern for deploying Model Context Protocol (MCP) servers on AWS using secure authentication via Amazon Cognito. It implements the 2025-06-18 MCP specification with OAuth 2.0 Protected Resource Metadata (RFC9728).
Key architectural components include:
- CloudFront & WAF: Global delivery and security.
- Application Load Balancer (ALB): Traffic distribution and SSL termination.
- ECS Fargate & Lambda: Containerized and serverless hosting for MCP servers.
- Amazon Cognito: Acts as the OAuth 2.0 authorization server.
- StreamableHTTP transport: Enables remote access via stateless request handling.
The deployment is organized into four CDK stacks: VPC, Security, CloudFront WAF, and MCP Server stacks.