Fastify Starter
A Fastify MCP server using xmcp's adapter
Framework
Explore template An Express MCP server using xmcp's adapter
An Express server with xmcp mounted through the Express adapter.
/mcpsrc/tools/experimental.adapter: "express"InferSchemaRequires Node.js 22.12 or newer. pnpm install also installs @xmcp-dev/compiler, the dev dependency that runs xmcp dev and xmcp build.
The Express server starts at http://localhost:3000, and the MCP endpoint is available at /mcp.
The MCP server is mounted through the generated adapter. xmcp build writes it to .xmcp/adapter, and the relative import keeps the compiled dist/index.js runnable with plain Node:
Create a new .ts file in src/tools/. The tool is automatically discovered: