sam-serverless-mcp-server
0
The sam-serverless-mcp-server is a minimal Model Context Protocol (MCP) server that runs on AWS Lambda and is accessible through Amazon API Gateway, using the Serverless Application Model for deployment. It supports local development and includes a simple example tool for JSON-RPC interaction.
🧠sam-serverless-mcp-server
A super simple Model Context Protocol (MCP) server deployed on AWS Lambda and exposed via Amazon API Gateway, deployed with Serverless Application Model (SAM).
🛠Features
- Minimal MCP server setup using @modelcontextprotocol/sdk
- Deployed as a single AWS Lambda function
- HTTP POST endpoint exposed via API Gateway at /mcp
- Supports local development via SAM
- Includes a simple example tool (add) with JSON-RPC interaction
🛠Prerequisites
- Node.js v22+
- Docker
- AWS CLI
- SAM CLI
🚀 Getting Started
- Install dependencies
- Run Locally with SAM
Local endpoint will be available at POST http://localhost:3000/mcp
📡 Deploy to AWS
Run sam build
and sam deploy --guided
to deploy.