Example Next.js MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Example Next.js MCP Server
This template uses mcp-handler 2 and the MCP TypeScript SDK v2 to add a stateless MCP server to a Next.js App Router application.
Usage
Update app/mcp/route.ts with your tools, prompts, and resources following the MCP TypeScript SDK v2 documentation.
Start the application and connect an MCP client to:
http://localhost:3000/mcpRelated MCP server: mcp-nextjs-evolution-api
Protocol support
The current 2026-07-28 MCP protocol is served natively.
Stateless clients using 2025-era Streamable HTTP are supported by the compatibility layer.
The deprecated HTTP+SSE transport is not supported. Redis is not required.
Notes for running on Vercel
Requires Node.js 20 or later
Make sure you have Fluid compute enabled for efficient execution
Sample Client
scripts/test-client.mjs connects over Streamable HTTP, lists the available tools, and calls echo.
pnpm test:client -- https://mcp-for-next-js.vercel.appTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA template for deploying Model Context Protocol servers as Next.js routes using the mcp-handler adapter, enabling easy integration of MCP tools, prompts, and resources into any Next.js application.MIT
- AlicenseNot gradedqualityDmaintenanceAn example MCP server using mcp-handler to integrate MCP tools, prompts, and resources into any Next.js project.MIT
- FlicenseNot gradedqualityCmaintenanceA minimal Next.js starter for building MCP Apps, enabling MCP hosts to render interactive UIs alongside tool calls via an MCP server endpoint and a React widget UI.-
- AlicenseNot gradedqualityDmaintenanceEnables adding a stateless MCP server to a Next.js App Router application, supporting tools, prompts, and resources over Streamable HTTP and the current MCP protocol.MIT