Vibe Coding Discover

MCP

mcp-handler

View on GitHub

Easily spin up an MCP Server on Next.js, Nuxt, Svelte, and more

★ 67489 forksTypeScript—vercel

Framework-agnostic HTTP adapter that turns an MCP server definition into a Web-standard fetch handler mountable in Next.js, Nuxt, SvelteKit, and Hono. Supports the 2026-07-28 MCP spec with legacy Streamable HTTP fallback, plus OAuth resource-server helpers.

Use Cases

Host an MCP server over HTTP inside a Next.js route handlerExpose MCP tools to Claude Desktop, Cursor, and Windsurf clientsMount the same MCP handler in Nuxt, SvelteKit, or Hono appsAdd OAuth bearer token verification to an MCP resource serverServe RFC 9728 protected resource metadata for MCP authSupport both 2026-07-28 and 2025-era Streamable HTTP clients from one handlerScaffold a new MCP route with the create-mcp-route CLIDeploy stateless MCP servers on serverless platforms without Redis

Built With

Language
TypeScript
Frameworks
Model Context Protocol SDK v2 · Next.js · Nuxt/Nitro · SvelteKit · Hono · Zod · tsup · Vitest · Node.js

Tags

mcp · mcp-server · http-adapter · nextjs · nuxt · sveltekit · hono · typescript · streamable-http · oauth · serverless · vercel · framework-agnostic · fetch-api · cli · zod