
File System Routing
Automatically register tools, prompts, and resources with zero configuration.
Trusted by builders at
Everything you need to set up fast, customize with ease, and plug directly into 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.
$ npx create-xmcp-app@latest
? What is your project named? my-server
? Select a package manager: pnpm
? Select the transport you want to use: HTTP (runs on a server)
? Select components to initialize:
◉ Tools
◉ Prompts
◉ Resources
✔ Creating a new xmcp app in ...
✔ Your xmcp app is ready
Next steps:
cd my-server
pnpm dev
import { XmcpConfig } from "xmcp";
const config: XmcpConfig = {
http: {
port: 3000,
host: "0.0.0.0",
endpoint: "/mcp",
cors: {
origin: "*",
credentials: true,
},
},
};
export default config;import { z } from "zod";
import { type InferSchema } from "xmcp";
export const schema = {
location: z.string().describe("City name"),
};
export const metadata = {
name: "get-weather",
description: "Get current weather for a location",
};
export default async function getWeather({
location
}: InferSchema<typeof schema>) {
// Your implementation here
return `Weather in ${location}: 72°F, Sunny`;
}$ vc deploy
Vercel CLI 37.0.0
Inspect: https://vercel.com/...
Production: https://my-server.vercel.app
Deployment Summary:
• Environment: Production
• Region: iad1
• Build Time: 12s
• Status: Ready
Your MCP server is live!“xmcp greatly simplified our public MCP at Wallbit. It let us focus on product logic instead of low-level implementation details.”

“For a developer-first product like Commet, MCP is essential. xmcp lets us focus on exposing tools and shipping them in hours, instead of dealing with MCP boilerplate.”

“Basehub is an AI-native headless CMS where MCP is essential for AI agents to interact with our content. xmcp made the integration completely painless.”

“Scira AI powers advanced AI search across the web, X, Reddit, and more. xmcp lets us expose these tools quickly and painlessly with excellent DX.”

“We plugged xmcp into Volt to power our WhatsApp layer, and it instantly removed a ton of friction.”

Learn, build, and stay up to date with the latest guides, changelogs, and insights to make the most of your MCP server.

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.