File System Routing
Automatically register tools, prompts, and resources with zero configuration.
Build and ship MCP servers with the code you already know. Give AI applications access to your tools, data, and workflows. Write TypeScript functions; xmcp handles the protocol, validation, and transport.
Three primitives connect your application to an AI client. Explore each one in the docs.
Everything you need to set up fast, customize with ease, and connect your apps.
Automatically register tools, prompts, and resources with zero configuration.
Secure access with Better Auth's integration and monetize with Polar.
Add authentication, logging, or custom logic to intercept and process requests and responses.
Customize every aspect of your MCP server with flexible configuration options.
Build and deploy servers with HTTP or STDIO transport protocols out of the box.
Initialize xmcp directly in your existing Next.js or Express projects with one command.
From a new project to a running server in four steps.

Reuse typed functions as MCP tools with experimental schema inference in xmcp. Generate input validation from TypeScript and JSDoc, and keep explicit schemas where you need them.

xmcp v1 splits the compiler out of the runtime, moves to MCP revision 2026-07-28 through SDK v2, and keeps every existing tool, prompt and resource working unchanged.

Charging for a tool is the easy half. The real shift is software that pays for tools on its own — how x402 lets agents settle USDC micropayments per call.

Add an MCP server to your NestJS application with tool discovery and a customizable module.