MCP.so
登录

Lambda MCP Server Demo (Streamable HTTP)

@mikegc-aws

基本信息

分类

云与基础设施

许可证

MIT-0

传输方式

stdio

作者

mikegc-aws

关于 Lambda MCP Server Demo

Creates a simple MCP tool server with "streaming" HTTP.

Lambda MCP Server Demo 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "Lambda-MCP-Server": {
      "command": "uv",
      "args": [
        "sync"
      ]
    }
  }
}

Lambda MCP Server Demo 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Lambda MCP Server Demo (Streamable HTTP)?

Lambda MCP Server Demo (Streamable HTTP) is a serverless MCP (Model Context Protocol) server running on AWS Lambda. It demonstrates how to build stateless MCP tools with minimal boilerplate and an excellent developer experience, using Streamable HTTP transport instead of SSE. It is aimed at developers who want to deploy cloud-hosted MCP tools quickly.

How to use Lambda MCP Server Demo (Streamable HTTP)?

Install the package from PyPI (pip install awslabs.mcp_lambda_handler) and define tools using the mcp_server.tool() decorator. Deploy the server with AWS SAM. The client must support Streamable HTTP (e.g., MCP Inspector or the included Strands Agents client).

Key features of Lambda MCP Server Demo (Streamable HTTP)

  • Serverless MCP server on AWS Lambda
  • Uses Streamable HTTP transport (not SSE)
  • Minimal boilerplate with decorator-based tool creation
  • Built-in session state management with DynamoDB
  • Bearer token authentication via API Gateway custom authorizer
  • Automatic type validation, request parsing, and error handling

Use cases of Lambda MCP Server Demo (Streamable HTTP)

  • Deploying MCP tools without managing servers
  • Maintaining session context across tool invocations
  • Building cloud-hosted AI agent tool integrations
  • Demonstrating MCP with Streamable HTTP on AWS

常见问题

1

What transport does this server require?

It requires Streamable HTTP (not SSE). Clients that support Streamable HTTP include the MCP Inspector and the Strands Agents client included in this repo.

2

What dependencies are needed to run the server?

You need an AWS account, AWS SAM CLI, and the package `awslabs.mcp_lambda_handler`. The client also requires access to Amazon Bedrock with Amazon Nova Pro enabled.

3

Where does session data live?

Session data is stored in a DynamoDB table against a sessionId key. The table is managed automatically.

4

How is authentication handled?

Authentication uses a Bearer token passed in the `Authorization` header, validated by a custom API Gateway Lambda authorizer. The token is configured during deployment.

5

What are the known limitations?

This is a proof-of-concept; for production use, consider implementing more robust authentication (e.g., IAM roles, OAuth 2.0, Amazon Cognito) and following AWS security best practices.

评论

云与基础设施 分类下的更多 MCP 服务器