MCP.so
登录

Lambda MCP Server Demo (Streamable HTTP)

@rmavuluri

关于 Lambda MCP Server Demo (Streamable HTTP)

暂无概览

基本信息

分类

云与基础设施

许可证

MIT-0 license

运行时

node

传输方式

stdio

发布者

rmavuluri

配置

暂无标准配置

该服务器的 README 中没有可解析的 MCP 配置块,请前往代码仓库查看安装说明。

代码仓库

工具

未检测到工具

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

概览

What is Lambda MCP Server Demo (Streamable HTTP)?

This project demonstrates a developer-friendly way to create serverless MCP (Model Context Protocol) tools using AWS Lambda. It showcases a stateless, serverless MCP server with minimal boilerplate, and includes a TypeScript client that integrates with Amazon Bedrock Converse API using Amazon Nova Pro. It is designed for developers who want to deploy cloud-hosted MCP tools via Streamable HTTP.

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

Install prerequisites (AWS account, AWS SAM CLI, Node.js, Docker, Python 3.9+, Amazon Bedrock access). Deploy the server with sam build then sam deploy --guided, providing an McpAuthToken. Navigate to the client directory and run run-client.sh. Add new tools using the @mcp_server.tool() decorator in server/app.py.

Key features of Lambda MCP Server Demo (Streamable HTTP)

  • Uses Streamable HTTP transport (not SSE).
  • Minimal boilerplate with decorator-based tool creation.
  • Built-in session state management via DynamoDB.
  • Bearer token authentication compliant with MCP standard.
  • Example tools: get_time, get_weather, count_s3_buckets.
  • Client integration with Amazon Bedrock Converse API.

Use cases of Lambda MCP Server Demo (Streamable HTTP)

  • Deploying serverless MCP agents with AWS Lambda.
  • Building stateless, session-aware MCP tools for cloud environments.
  • Demonstrating Streamable HTTP MCP communication with Bedrock.
  • Rapid prototyping of MCP tools with minimal setup and infrastructure.

FAQ from Lambda MCP Server Demo (Streamable HTTP)

What MCP clients support Streamable HTTP?

Very few MCP clients currently support Streamable HTTP. The included TypeScript client uses the TypeScript MCP SDK, which does support Streamable HTTP. For other clients, check compatibility.

What are the runtime dependencies and requirements?

Requires an AWS account, AWS SAM CLI, Node.js and npm, Docker, Python 3.9+, and access to Amazon Bedrock with Amazon Nova Pro enabled. The server is deployed via SAM; the client runs in Docker.

Where does session data live?

Session state is stored in a DynamoDB table against a sessionId key. This persistence is automatically managed across tool invocations within the same conversation.

Is this production ready?

No, this is a proof-of-concept implementation. The bearer token authentication is primarily for demonstration and development. For production, consider adding IAM roles, OAuth 2.0, or Amazon Cognito.

How does authentication work?

The server uses Bearer token authentication via an Authorization header. A custom authorizer in API Gateway validates the token. The client automatically includes the token when provided. The token is stored locally in .mcp-api-token (for convenience only, not production secure).

评论

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