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.

コメント

「クラウドとインフラ」の他のコンテンツ