This repo is mainly based on the article https://community.aws/content/2vzj07Wyk6Lw281Tvs1Lw7kJJNW/building-scalable-mcp-servers-on-aws-lambda-a-practical-guide with following improvement:
- The SAM deployment provisions the Lambda function URL that is protected by AWS IAM.
- The MCP client can use the new AWSIAMTransport class to call the protected Lambda function URL. This class extends the default MCP typescript StreamableHTTPClientTransport by automatically sign the HTTP request with AWS Signature Version 4 for API requests. (by default use the local AWS credential, but you can use any AWS credential/role)