Express Starter
An Express MCP server using xmcp's adapter
A full-stack MCP server built with Next.js and xmcp
A full-stack MCP server built with Next.js, exposing tools via the /mcp route.
/mcpsrc/tools/greet (sync) and weather (async with external API)withAuthRequires Node.js 22.12 or newer. pnpm install also installs @xmcp-dev/compiler, the dev dependency that runs xmcp dev and xmcp build.
This starts both the xmcp dev server and Next.js dev server concurrently. Open http://localhost:3000 to see your app, and the MCP endpoint will be available at /mcp.
The MCP server is exposed at /mcp via the Next.js adapter in app/mcp/route.ts:
Create a new .ts file in src/tools/. The tool is automatically discovered:
Add authentication to your MCP server using the withAuth function. See the xmcp Next.js documentation for details.
Deploy to Vercel or any Node.js hosting platform.