# Sample Serverless MCP Servers MCP server

> Provides sample implementations of AI agents and MCP servers running on AWS Lambda and Amazon ECS using Python and Node.js.

- Repository: https://github.com/aws-samples/sample-serverless-mcp-servers
- Page: https://hostedmcp.org/servers/aws-samples/sample-serverless-mcp-servers
- Official: yes
- Transport: —
- Stars: 245
- License: MIT-0

## FAQ

### What is the difference between stateful and stateless MCP servers?

Stateful servers maintain session state in memory and require persistent SSE connections, while stateless servers do not maintain session context between requests, allowing for easier horizontal scaling.

### How can I scale stateful MCP servers horizontally?

You can scale stateful servers by configuring session affinity, or sticky sessions, at the load balancer level, such as using cookie-based sticky sessions.

### Which AWS services are used in these implementations?

The samples utilize AWS Lambda, Amazon ECS, Amazon API Gateway, and Amazon Cognito for user authentication.
