#7373rd of 93 in Agent and MCP starters

mcp-for-next.js

Stateless MCP server route for a Next.js App Router app

Releases and problems feed (RSS)

Stars
375
License
MIT
Last commit
Oct 2026
Language
JavaScript
Stars, last 34 weeks+30
28 Mar 2026: 345 stars4 Apr 2026: 346 stars11 Apr 2026: 346 stars18 Apr 2026: 348 stars25 Apr 2026: 350 stars2 May 2026: 352 stars9 May 2026: 353 stars16 May 2026: 354 stars23 May 2026: 355 stars30 May 2026: 356 stars6 Jun 2026: 357 stars13 Jun 2026: 357 stars20 Jun 2026: 359 stars27 Jun 2026: 361 stars4 Jul 2026: 361 stars11 Jul 2026: 361 stars18 Jul 2026: 363 stars25 Jul 2026: 363 stars1 Aug 2026: 365 stars8 Aug 2026: 365 stars15 Aug 2026: 366 stars22 Aug 2026: 368 stars29 Aug 2026: 369 stars5 Sept 2026: 369 stars12 Sept 2026: 369 stars19 Sept 2026: 370 stars26 Sept 2026: 371 stars3 Oct 2026: 373 stars10 Oct 2026: 374 stars17 Oct 2026: 374 stars24 Oct 2026: 374 stars31 Oct 2026: 375 stars7 Nov 2026: 375 stars14 Nov 2026: 375 stars21 Nov 2026: 375 stars

345 on 28 Mar 2026375 on 21 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Vercel is hiring: 86 open roles

Overview

Next.js App Router project where app/mcp/route.ts hosts a stateless MCP server through mcp-handler 2 and the MCP TypeScript SDK v2, serving the 2026-07-28 protocol natively with a compatibility layer for 2025-era Streamable HTTP clients. Includes a sample client script that lists tools and calls echo. For teams adding an MCP endpoint to an existing Next.js app on Vercel; no auth is wired.

Who it is for: Next.js teams exposing tools to MCP clients

Strengths

  • Stateless Streamable HTTP; no Redis or session store required
  • Current 2026-07-28 protocol plus 2025 Streamable HTTP compatibility
  • Sample client script for smoke-testing the endpoint

Weaknesses

  • No auth; remote MCP clients will need OAuth added
  • Deprecated HTTP+SSE transport is not supported
  • Only an echo tool; the README is a few lines
  • No tests or Docker

What it needs

  • JavaScript, MCP TypeScript SDK v2, mcp-handler 2

Also in Agent and MCP starters

See all 93
Also in Agent and MCP starters
RankProjectScore
#71data-enrichmentLangGraph agent that researches the web to fill your JSON schema261 starsMIT46 out of 100
#72react-agent-jsTypeScript createAgent starter with example tools and middleware hooks121 starsMIT46 out of 100
#74opengapGit-repo file standard and CLI for defining portable AI agents3.2k starsMIT43 out of 100
#75ralph-loop-agentTypeScript library that reruns an AI SDK agent until a completion check passes848 starsApache-2.042 out of 100
#76new-langgraph-projectBlank Python LangGraph scaffold with config, tests and Studio support302 starsMIT42 out of 100