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.
? What is your project named? my-server ? Select a package manager: npm ? Select the transport you want to use: HTTP (runs on a server) ? Select components to initialize: ◉ Tools ◉ Prompts ◉ Resources ✓ Installing dependencies... ✓ Setting up project structure... Success! Created my-server Inside that directory, you can run: npm run dev Start development server npm run build Build for production
import { defineConfig } from "xmcp";
export default defineConfig({
name: "my-server",
version: "1.0.0",
transport: "http",
server: {
port: 3000,
},
// Configure your tools, resources, and prompts
});import { tool } from "xmcp";
import { z } from "zod";
export const getWeather = tool({
name: "get-weather",
description: "Get current weather for a location",
parameters: z.object({
location: z.string().describe("City name"),
}),
execute: async ({ location }) => {
// Your implementation here
return `Weather in ${location}: 72°F, Sunny`;
},
});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!
? What is your project named? my-server ? Select a package manager: npm ? Select the transport you want to use: HTTP (runs on a server) ? Select components to initialize: ◉ Tools ◉ Prompts ◉ Resources ✓ Installing dependencies... ✓ Setting up project structure... Success! Created my-server Inside that directory, you can run: npm run dev Start development server npm run build Build for production
Learn, build, and stay up to date with the latest guides, changelogs, and insights to make the most of your MCP server.

xmcp now supports building compatible UI resources and tools with the OpenAI Apps SDK, out of the box.

Learn how to add paywalls and track tool usage with Polar.

xmcp v0.3.0 covers all MCP server features - tools, prompts, and resources. Available now.