Discover and explore top open-source AI tools and projects—updated daily.
Run Model Context Protocol (MCP) servers in AWS Lambda
Top 88.4% on SourcePulse
This project provides a library for running existing Model Context Protocol (MCP) stdio-based servers within AWS Lambda functions, enabling their use in distributed systems or cloud-based applications. It targets developers who need to leverage MCP servers, typically used locally by desktop applications, in a serverless, scalable manner.
How It Works
The library wraps stdio MCP servers into Lambda functions, managing their lifecycle. Each Lambda invocation starts the server as a child process, initializes it, forwards the incoming request, returns the server's response, and then shuts down the child process. This approach allows MCP servers to be invoked via HTTPS or the Lambda Invoke API, abstracting away the underlying stdio communication.
Quick Start & Requirements
@aws/run-mcp-servers-with-aws-lambda
package for TypeScript or mcp-lambda
for Python.Highlighted Details
Maintenance & Community
CONTRIBUTING
.Licensing & Compatibility
Limitations & Caveats
This library only supports MCP servers written for stdio and is not compatible with other protocols like SSE. It is designed for stateless MCP servers; stateful servers will lose their state across invocations. The library does not manage secrets for wrapped MCP servers, requiring manual configuration via environment variables, which may expose API keys to all Lambda function invokers.
3 days ago
1 day