{"repo":"vercel/mcp-handler","free":true,"listed":false,"github":"https://github.com/vercel/mcp-handler","clone":"git clone https://github.com/vercel/mcp-handler.git","description":"Easily spin up an MCP Server on Next.js, Nuxt, Svelte, and more","language":"TypeScript","stars":647,"topics":[],"license":null,"category":"mcp-servers","readme_excerpt":"mcp-handler mcp-handler is a framework-agnostic HTTP adapter for hosting Model Context Protocol (MCP) servers in JavaScript and TypeScript applications. It turns an MCP server definition into a Web-standard (Request) = Promise handler that can be mounted in Next.js, Nuxt/Nitro, SvelteKit, Hono, and other Fetch-compatible frameworks. Built on MCP SDK v2, it serves the 2026-07-28 MCP specification natively while transparently falling back to stateless Streamable HTTP for 2025-era clients — one handler, both protocol generations. Installation Note : mcp-handler 2.x requires the MCP SDK v2 packages ( @modelcontextprotocol/server ^2.0.0), zod ^4.2.0, and Node.js 20+. If you're on @modelcontextprotocol/sdk 1.x, use mcp-handler 1.x. Framework Compatibility createMcpHandler returns a Web-standard request handler, so the package is not tied to Vercel or any particular framework. It can be mounted in: - Next.js Route Handlers - Nuxt/Nitro server handlers using fromWebHandler - SvelteKit server routes - Hono routes using c.req.raw - Other frameworks that expose Fetch-compatible Request and Response APIs Frameworks based on Node.js IncomingMessage and ServerResponse , such as Express, require a Web Request adapter or the official MCP framework middleware. Quick Start (Next.js) /api/mcp is a convention, not a required path. mcp-handler does not inspect the request pathname, so you can place this handler at any framework route and give clients that route's complete URL. Connecting Clients ","default_branch":null,"files":null,"tree":[],"storefront":"/r/vercel","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/vercel/mcp-handler/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}