Skip to main content
Glama

MCP Lambda Server

by markvp

Servidor Lambda MCP

Un paquete Node.js que proporciona infraestructura de servidor MCP (Protocolo de contexto de modelo) para funciones de AWS Lambda con soporte SSE.

Características

  • Adapta el SDK TypeScript de MCP para que funcione con AWS Lambda
  • Admite eventos enviados por el servidor (SSE) a través de la transmisión de respuestas Lambda
  • Maneja la validación de métodos CORS y HTTP
  • Compatibilidad con TypeScript

Notas importantes

  • La transmisión de respuestas Lambda solo funciona con URL de función . No funciona con API Gateway ni con Application Load Balancer.
  • Sólo el entorno de ejecución de Node.js es oficialmente compatible con la transmisión de respuestas.

Instalación

npm install @markvp/mcp-lambda-layer

Uso

Crea tu función Lambda e importa el paquete:

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();

Configuración Lambda requerida

  • Tiempo de ejecución: Node.js 18.x o posterior
  • Manejador: index.handler
  • Memoria: 128 MB mínimo (ajuste según sus necesidades)
  • Tiempo de espera: se recomiendan 120 segundos
  • URL de función: Obligatoria y debe tener habilitada la transmisión de respuestas
  • API Gateway/ALB: no compatible con streaming

Contenido del paquete

Este paquete proporciona:

  • Implementación del servidor MCP con transporte SSE
  • Manejo de protocolos (JSON-RPC)
  • Soporte de respuesta en streaming
  • Definiciones de tipos e interfaces

Su función Lambda proporciona:

  • Implementaciones de herramientas y avisos
  • Lógica de negocios
  • Cualquier cliente o servicio API necesario
  • Configuración

Licencia

Instituto Tecnológico de Massachusetts (MIT)

-
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.

Un paquete Node.js que proporciona infraestructura de servidor de protocolo de contexto de modelo para funciones de AWS Lambda con capacidades de respuesta de transmisión a través de eventos enviados por el servidor.

  1. Características
    1. Notas importantes
      1. Instalación
        1. Uso
          1. Configuración Lambda requerida
          2. Contenido del paquete
        2. Licencia

          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