{"library":"middy-mcp","title":"middy-mcp","description":"Middy middleware for integrating Model Context Protocol (MCP) servers with AWS Lambda functions. Current version 0.1.6, requires Node.js >= 18.0.0 and Middy >= 6.0.0. Supports API Gateway (REST, HTTP API v2) and ALB proxy integrations, but only compatible with MCP clients using protocol version 2025-03-26 or later. Provides seamless request/response handling within the Middy middleware framework, with TypeScript type definitions included.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install middy-mcp"],"cli":null},"imports":["import mcpMiddleware from 'middy-mcp'","import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'","import middy from '@middy/core'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import middy from '@middy/core';\nimport mcpMiddleware from 'middy-mcp';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { z } from 'zod';\n\nconst server = new McpServer({ name: 'MyMCP', version: '1.0.0' });\nserver.tool('add', { a: z.number(), b: z.number() }, async ({ a, b }) => ({\n  content: [{ type: 'text', text: String(a + b) }],\n}));\n\nexport const handler = middy()\n  .use(mcpMiddleware({ server }));","lang":"typescript","description":"Create a Lambda handler with MCP server and Middy middleware.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}