DEV Community
•
2026-08-12 23:53
Building Lightweight and Streamable MCP Servers on AWS Lambda with Python
MCP servers don't always need containers, persistent processes, or a full web framework.
For many tools, a regular Python AWS Lambda is enough:
MCP request
↓
API Gateway
↓
Lambda
↓
Python tool
↓
JSON-RPC response
But some operations are different.
A tool may spend 30 seconds searching, analyzing, or coordinating work and need to report progress while it runs.
For those ...