Menu
Important
Stay updated on React2Shell

xmcp on Vercel

Last updated November 19, 2025

is a TypeScript-first framework for building MCP-compatible backends. It provides an opinionated project structure, automatic tool discovery, and a streamlined middleware layer for request/response processing. You can deploy an xmcp app to Vercel with zero configuration.

Start with xmcp on Vercel by creating a new xmcp project:

This scaffolds a project with a directory for tools, optional , and an file.

To deploy, connect your Git repository or use Vercel CLI:

Get started by initializing a new Xmcp project using Vercel CLI init command:

This will clone the Xmcp example repository in a directory called .

To run your xmcp application locally, you can use Vercel CLI:

Alternatively, use your project's dev script:

In xmcp, an optional lets you run code before and after tool execution. This is commonly used for logging, auth, or request shaping:

In Vercel, Routing Middleware executes before a request is processed by your application. Use it for rewrites, redirects, headers, or personalization, and combine it with xmcp's own middleware as needed.

When you deploy an xmcp app to Vercel, your server endpoints automatically run as Vercel Functions and use Fluid compute by default.


Was this helpful?

supported.