Skip to main content
Glama

MCP Lambda Server

by markvp

MCP ラムダサーバー

SSE サポート付きの AWS Lambda 関数用の MCP (Model Context Protocol) サーバー インフラストラクチャを提供する Node.js パッケージ。

特徴

  • MCP TypeScript SDKをAWS Lambdaで動作するように適応させます
  • Lambda レスポンスストリーミングを通じて Server-Sent Events (SSE) をサポート
  • CORSとHTTPメソッドの検証を処理する
  • TypeScriptサポート

重要な注意事項

  • Lambda レスポンスストリーミングは関数 URL でのみ機能します。API Gateway や Application Load Balancer では機能しません。
  • レスポンス ストリーミングでは、Node.js ランタイムのみが公式にサポートされています。

インストール

npm install @markvp/mcp-lambda-layer

使用法

Lambda 関数を作成し、パッケージをインポートします。

import { MCPHandlerFactory } from '@markvp/mcp-lambda-layer'; import { z } from 'zod'; // Create MCP handler factory with your configuration const factory = new MCPHandlerFactory({ tools: { summarize: { params: { text: z.string(), }, handler: async ({ text }) => { // Your implementation here - could be any service/model/API const summary = await yourSummarizeImplementation(text); return { content: [{ type: 'text', text: summary }], }; }, }, }, prompts: { generate: { description: 'Generate content based on a prompt', handler: async extra => { // Your implementation here - could be any service/model/API const result = await yourGenerateImplementation(extra.prompt); return { content: [{ type: 'text', text: result }], }; }, }, }, }); // Export the handler directly export const handler = factory.getHandler();

必要なLambda設定

  • ランタイム: Node.js 18.x 以降
  • ハンドラー: index.handler
  • メモリ: 最低 128 MB (必要に応じて調整してください)
  • タイムアウト: 120秒を推奨
  • 関数 URL: 必須であり、レスポンス ストリーミングが有効になっている必要があります
  • APIゲートウェイ/ALB:ストリーミングではサポートされません

パッケージ内容

このパッケージには以下が含まれます。

  • SSEトランスポートを使用したMCPサーバーの実装
  • プロトコル処理 (JSON-RPC)
  • ストリーミングレスポンスのサポート
  • 型定義とインターフェース

Lambda 関数は以下を提供します。

  • ツールとプロンプトの実装
  • ビジネスロジック
  • 必要なAPIクライアントまたはサービス
  • 構成

ライセンス

マサチューセッツ工科大学

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Server-Sent Events を介したストリーミング応答機能を備えた AWS Lambda 関数用のモデルコンテキストプロトコル サーバー インフラストラクチャを提供する Node.js パッケージ。

  1. 特徴
    1. 重要な注意事項
      1. インストール
        1. 使用法
          1. 必要なLambda設定
          2. パッケージ内容
        2. ライセンス

          Related MCP Servers

          • A
            security
            F
            license
            A
            quality
            An MCP server that provides tools for interacting with AWS S3 buckets, enabling direct access to S3 operations through the Model Context Protocol.
            Last updated -
            1
            Python
            • Apple
          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server implementation that enables Claude to perform AWS operations on S3 and DynamoDB services through natural language commands.
            Last updated -
            23
            92
            Python
            MIT License
            • Apple
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that integrates with AWS CodePipeline, allowing users to manage pipelines through Windsurf and Cascade using natural language commands.
            Last updated -
            4
            TypeScript
          • A
            security
            A
            license
            A
            quality
            An Amazon S3 Model Context Protocol server that allows Large Language Models like Claude to interact with AWS S3 storage, providing tools for listing buckets, listing objects, and retrieving object contents.
            Last updated -
            3
            85
            10
            TypeScript
            MIT License
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/markvp/mcp-lambda-layer'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server