Cloudflare
Cloudflare Workers support in xmcp uses a Cloudflare-native bundle and Wrangler for local dev and deploy.
For the complete documentation index, see llms.txt. Markdown variants of every page are available by appending .md to the URL.Cloudflare Workers support is built into xmcp with the --cf flag. The easiest path is to bootstrap a project that includes Wrangler and the Cloudflare build pipeline.
Create a new project
Start with create-xmcp-app and the Cloudflare flag (you can also pass --cloudflare when cloning an example with --example):
This initializes a Workers-ready setup and wires the following defaults:
xmcp build --cffor production buildsxmcp dev --cfalongsidewrangler devfor local developmentwrangler deployfor deployment
Build and deploy with the CLI
Build a Cloudflare Workers bundle and emit worker.js (plus wrangler.jsonc if you don’t already have a Wrangler config):
Then deploy with Wrangler:
Local development
Run the watcher and Wrangler together:
This runs xmcp dev --cf (to rebuild the Worker output) and wrangler dev to serve it locally.
Learn more about deploying Workers in the Cloudflare Workers documentation.

