#7373rd of 93 in Agent and MCP starters
mcp-for-next.js
Stateless MCP server route for a Next.js App Router app
- Stars
- 375
- License
- MIT
- Last commit
- Oct 2026
- Language
- JavaScript
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| Rank | Project | Score |
|---|---|---|
| #71 | data-enrichmentLangGraph agent that researches the web to fill your JSON schema | 46 out of 100 |
| #72 | react-agent-jsTypeScript createAgent starter with example tools and middleware hooks | 46 out of 100 |
| #74 | opengapGit-repo file standard and CLI for defining portable AI agents | 43 out of 100 |
| #75 | ralph-loop-agentTypeScript library that reruns an AI SDK agent until a completion check passes | 42 out of 100 |
| #76 | new-langgraph-projectBlank Python LangGraph scaffold with config, tests and Studio support | 42 out of 100 |