What is MCP Lambda Server?
MCP Lambda Server is a serverless implementation of the Model Context Protocol (MCP) built on AWS Lambda and SAM. It exposes two interfaces: a System Configuration API for administrators to register tools, resources, and prompts, and a System Usage interface for clients to establish SSE connections and send JSON-RPC commands. It is intended for developers and administrators deploying MCP servers on AWS.
How to use MCP Lambda Server?
Deploy using npx @markvp/mcp-lambda-sam deploy, the AWS SAM CLI, or via the AWS Serverless Application Repository (SAR). After deployment, administrators use the Registration API (endpoints under /register) to manage tools. Clients connect to the /sse endpoint, receive a session ID, then send JSON-RPC messages to /message?sessionId=.... All requests require AWS SigV4 signed IAM authentication.
Key features of MCP Lambda Server
- Serverless MCP implementation using AWS Lambda and DynamoDB
- Administrative registration of tools, resources, and prompts
- Client SSE streaming and JSON-RPC message handling
- IAM-based authentication for all endpoints
- Supports multiple deployment methods (SAR, npx, programmatic)
- Session persistence via DynamoDB Session Table
- Dynamic invocation of registered Lambda tools by ARN
Use cases of MCP Lambda Server
- Deploy a fully serverless MCP server for AI assistants or agents
- Register custom Lambda functions as MCP tools with defined schemas
- Provide an administrative interface for managing tool inventory and permissions
- Enable clients to stream MCP responses over SSE with session isolation
评论