Skip to main content
Glama

MCP 람다 서버

SSE를 지원하는 AWS Lambda 함수에 대한 MCP(Model Context Protocol) 서버 인프라를 제공하는 Node.js 패키지입니다.

특징

  • AWS Lambda와 함께 작동하도록 MCP TypeScript SDK를 조정합니다.

  • Lambda 응답 스트리밍을 통해 SSE(Server-Sent Events)를 지원합니다.

  • CORS 및 HTTP 메서드 검증을 처리합니다.

  • TypeScript 지원

Related MCP server: Example MCP SSE Server

중요 참고 사항

  • Lambda 응답 스트리밍은 함수 URL에서만 작동합니다 . API Gateway 또는 Application Load Balancer에서는 작동하지 않습니다.

  • 응답 스트리밍은 Node.js 런타임에서만 공식적으로 지원됩니다.

설치

지엑스피1

용법

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

필수 람다 구성

  • 런타임: Node.js 18.x 이상

  • 핸들러: index.handler

  • 메모리: 최소 128MB (필요에 따라 조정)

  • 시간 초과: 120초 권장

  • 함수 URL: 필수이며 응답 스트리밍이 활성화되어 있어야 합니다.

  • API Gateway/ALB: 스트리밍이 지원되지 않습니다.

패키지 내용

이 패키지에는 다음이 포함되어 있습니다.

  • SSE 전송을 통한 MCP 서버 구현

  • 프로토콜 처리(JSON-RPC)

  • 스트리밍 응답 지원

  • 유형 정의 및 인터페이스

Lambda 함수는 다음을 제공합니다.

  • 도구 및 프롬프트 구현

  • 비즈니스 로직

  • 필요한 API 클라이언트 또는 서비스

  • 구성

특허

MIT

A
license - permissive license
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    A server for Model Context Protocol (MCP) that uses Server-Sent Events (SSE) for streaming communication, enabling tools like the HackerNews API to be accessed through a secure HTTP+SSE transport.
    29
  • F
    license
    Not graded
    quality
    D
    maintenance
    A Model Context Protocol server that enables real-time communication using Server-Sent Events (SSE), providing standardized model management and resource templating capabilities.

View all related MCP servers

Related MCP Connectors

  • A Model Context Protocol server for Wix AI tools

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.

View all MCP Connectors

Latest Blog Posts

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-sam'

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