Sample Serverless MCP Servers

Sample Serverless MCP Servers

sample-serverless-mcp-servers•byaws-samples

A collection of sample MCP server implementations, including remote stateless and stateful servers running on AWS Lambda and Amazon ECS, plus a local Lambda operations MCP server.

License: MIT-0 License•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Provides remote stateless MCP server samples running natively on AWS Lambda and Amazon API Gateway.
  • •Provides remote stateless and stateful MCP server samples running natively on Amazon ECS with an Application Load Balancer.
  • •Includes a local MCP server demo for discovering and upgrading Lambda functions on deprecated runtimes.
  • •Demonstrates stateful versus stateless MCP server models in relation to Streamable HTTP transport session management and scaling.

BEST FOR

  • •Learning how to deploy remote MCP servers on AWS Lambda or Amazon ECS.
  • •Evaluating stateful versus stateless MCP server design for horizontally scalable deployments.
  • •Finding deprecated Lambda runtimes and upgrading those functions.

ABOUT SAMPLE-SERVERLESS-MCP-SERVERS

Sample Serverless MCP Servers is cataloged as an MCP server attributed to aws-samples. A collection of sample MCP server implementations, including remote stateless and stateful servers running on AWS Lambda and Amazon ECS, plus a local Lambda operations MCP server. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT-0 License. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Sample Serverless MCP Servers are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the collection include serverless MCP server samples on AWS Lambda?

Yes, it includes stateless MCP server samples running natively on AWS Lambda and Amazon API Gateway.

Are both stateful and stateless MCP server samples included?

Yes, the repository includes both remote stateless and remote stateful MCP server samples.

上游原版 README

在 GitHub 查看同一版本原文

README.md · e1bb4f66b13c · 采集于 2026-11-13 09:34:58 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Sample Serverless MCP Servers

This repo contains a collection of sample implementations of MCP Servers.

DirectoryRuntimeIaCDescription
strands-agent-on-lambdaPython(Agent)
Node.js(MCP)
Terraform, CDKA sample implementation of AI Agent using Strands Agents SDK and connected MCP Server running on AWS Lambda, includes integration with Cognito for user authentication
strands-agent-on-lambda-pythonPythonSAMA sample implementation of AI Agent using Strands Agents SDK running on AWS Lambda
stateless-mcp-on-lambda-nodejsNode.jsTerraformA sample implementation of a remote stateless MCP Server running natively on AWS Lambda and Amazon API Gateway
stateless-mcp-on-lambda-pythonPythonSAMA sample implementation of a remote stateless MCP Server running natively on AWS Lambda and Amazon API Gateway
stateless-mcp-on-ecs-nodejsNode.jsTerraformA sample implementation of a remote stateless MCP Server running natively on Amazon ECS with Application Load Balancer
stateful-mcp-on-ecs-nodejsNode.jsTerraformA sample implementation of a remote stateful MCP Server running natively on Amazon ECS with Application Load Balancer
stateful-mcp-on-ecs-pythonPythonSAMA sample implementation of a remote stateful MCP Server running natively on Amazon ECS with Application Load Balancer
lambda-ops-mcp-serverNode.jsTerraformA demo PoC of a local MCP Server that can be used for discovering and upgrading functions on deprecated runtimes

Stateful VS Stateless MCP Servers

When using Streamable HTTP Transport with MCP Servers/Clients, it’s important to understand the difference and trade-offs between stateful and stateless MCP server implementations. Each model has implications for scalability, connection handling, and session management.

Key Aspects

The Streamable HTTP Transport specification outlines two important capabilities. First, a client may initiate a long-lived HTTP GET request to establish a persistent SSE (Server-Sent Events) connection, allowing the server to push data even when the client hasn’t sent a POST request. Second, if the connection is interrupted, the client should be able to resume communication by reconnecting through another GET request. Both features imply that the server must be able to maintain a persistent session context and support long-lived connections. Read more about Streamable HTTP Transport session management here.

Stateful model challenges

In a stateful MCP server, this means maintaining session state in memory and keeping SSE connections alive over time. However, as of early May 2025, none of the official MCP SDKs support external session persistence (e.g. in Redis or DynamoDB). This limitation makes it difficult to scale stateful servers horizontally. For example, a client might establish a session with one server instance, but if subsequent requests are routed to a different instance, the session context will be lost and the connection will fail.

That said, it is still possible to scale stateful MCP servers if you're willing to configure session affinity, also known as sticky sessions, at the load balancer level. For example, cookie-based sticky sessions can ensure that a client is routed to the same server instance for the duration of a session. However, the TypeScript MCP Client SDK currently relies on the fetch API, which doesn’t natively support cookies. To work around this limitation, you'll need to implement manual cookie handling, as shown in the stateful-mcp-on-ecs example.

Stateless to the rescue

The MCP specification also allows for a stateless server mode. In this mode, the server doesn’t maintain session context between requests, and clients are not expected to resume dropped connections. Stateless mode enables seamless horizontal scaling and works well in environments where elasticity and load distribution are critical. This model is demonstrated in the stateless-mcp-on-lambda, stateless-mcp-on-ecs, and stateless-mcp-on-lambda-python samples included in this repository.

Refer to each folder separately for further instructions and deployment steps.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Sample Serverless MCP Servers from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/sample-serverless-mcp-servers)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps