MCP.so
登录

MCP Lambda Server

@markvp

基本信息

分类

云与基础设施

许可证

MIT

传输方式

stdio

作者

markvp

关于 MCP Lambda Server

An AWS Serverless Application Model that operates as an MCP server via serverless AWS resources

MCP Lambda Server 配置

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

{
  "mcpServers": {
    "mcp-lambda-layer": {
      "command": "npx",
      "args": [
        "@markvp/mcp-lambda-sam",
        "deploy"
      ]
    }
  }
}

MCP Lambda Server 工具

工具列表暂未提供

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

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is MCP Lambda Server?

MCP Lambda Server is a serverless implementation of the Model Context Protocol (MCP) built on AWS Lambda and SAM. It exposes two interfaces: a System Configuration API for administrators to register tools, resources, and prompts, and a System Usage interface for clients to establish SSE connections and send JSON-RPC commands. It is intended for developers and administrators deploying MCP servers on AWS.

How to use MCP Lambda Server?

Deploy using npx @markvp/mcp-lambda-sam deploy, the AWS SAM CLI, or via the AWS Serverless Application Repository (SAR). After deployment, administrators use the Registration API (endpoints under /register) to manage tools. Clients connect to the /sse endpoint, receive a session ID, then send JSON-RPC messages to /message?sessionId=.... All requests require AWS SigV4 signed IAM authentication.

Key features of MCP Lambda Server

  • Serverless MCP implementation using AWS Lambda and DynamoDB
  • Administrative registration of tools, resources, and prompts
  • Client SSE streaming and JSON-RPC message handling
  • IAM-based authentication for all endpoints
  • Supports multiple deployment methods (SAR, npx, programmatic)
  • Session persistence via DynamoDB Session Table
  • Dynamic invocation of registered Lambda tools by ARN

Use cases of MCP Lambda Server

  • Deploy a fully serverless MCP server for AI assistants or agents
  • Register custom Lambda functions as MCP tools with defined schemas
  • Provide an administrative interface for managing tool inventory and permissions
  • Enable clients to stream MCP responses over SSE with session isolation

常见问题

1

How do I deploy MCP Lambda Server?

Use `npx @markvp/mcp-lambda-sam deploy`, the AWS SAM CLI (`sam build && sam deploy --guided`), or the AWS Serverless Application Repository (SAR). You need AWS CLI, SAM CLI, Node.js 20+, and an AWS account with permissions to create Lambda functions, DynamoDB tables, IAM roles, and SQS queues.

2

What authentication is required for endpoints?

All endpoints use IAM authentication via AWS SigV4. Administrators need `lambda:InvokeFunctionUrl` permission on the registration function; clients need the same permission on the MCP function.

3

How do I register a new tool?

Send a POST request to `${REGISTRATION_URL}/register` with a JSON body containing `type` ("tool"), `name`, `description`, `lambdaArn`, and `parameters`. Use `awscurl` or any AWS SigV4 signed HTTP client.

4

Where is session state persisted?

Session state is stored in a DynamoDB Session Table. The table is created during deployment and used by the MCP Lambda function.

5

What are common client errors?

`401` (invalid/missing credentials), `403` (insufficient permissions), `404` (invalid session ID), and `429` (rate limit exceeded). Troubleshoot by verifying AWS credentials, IAM permissions, session ID validity, and network connectivity.

评论

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