cf-webmcp
cf-webmcp

WebMCP at the edge.

A Cloudflare Worker that equips any website with WebMCP from a single TOML config. Browser-native agents see your site's tools automatically. Desktop MCP clients pair through a dedicated page.

Get started Source on GitHub

How it works

The Worker sits in front of your domain. On every request it does one of two things:

What you get

Manifest

Static tool catalogue at /.well-known/webmcp.json.

Auto-registration

Site-wide navigator.modelContext.registerTool for browser-native agents.

Discovery

<link rel="webmcp"> on every page, plus HTTP Link header.

Pairing page

/mcp lands desktop MCP clients with one-line setup.

llms.txt + robots.txt

Augmented with WebMCP discovery hints, idempotently merged.

AGENTS.md

Auto-published at /.well-known/agents.md with 301 aliases for /AGENTS.md and /agents.md.

Form injection

Stamp toolname / tooldescription / toolparamdescription onto existing forms at the edge from a [[forms]] TOML block. No CMS edit.

Five executors

sitemap_filter, rss_feed, dom_extract, http_json, http_get.

Two minutes to deploy

git clone https://github.com/basgr/cf-webmcp
cd cf-webmcp
cp templates/wordpress.toml webmcp.toml
cp wrangler.example.toml wrangler.toml
# edit webmcp.toml + wrangler.toml
npm install
npm run build
wrangler deploy

Three templates ship: default, wordpress, woocommerce.