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.
Build your first TypeScript MCP server · Compare MCP frameworks
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.
MCP 2026-07-28 removed sessions and the initialize handshake. What changed, and how to keep state without a session.
Pause an MCP tool to ask the user a question with an input_required result, then finish the call on the retry.
Publish Agent Skills from an MCP server with the Skills extension, and ship your first one with xmcp.
Add role-based access control to an MCP server: hide tools a caller can't use and reject direct calls with one policy.