ContextBolt SEO Free for 7 days. Keywords, SERPs, backlinks and AI visibility, inside Claude. SEO data inside Claude. Start free trial
Guide · Cloudflare WebMCP

Cloudflare WebMCP: 115 Bytes and Two Tools

Cloudflare launched a developer preview of WebMCP on Aug 6, 2026. It is a toggle in the dashboard, with no code, no build step and no change to your origin.

Most of the coverage stops there. I took a byte-level snapshot of my site, turned the toggle on, and measured the same things again. The toggle gives you a bridge and no tools of its own. What your site offers an agent depends on which tool packs you enable, and one of them needs an MCP server you have to build yourself.

Quick answer
  • It adds 115 bytes. One script tag, injected at the edge. My homepage went from 144,290 to 144,405 bytes.
  • You get two tools, and they are about images. Both come from the Content Credentials pack. Neither has anything to do with what my site is for.
  • The interesting pack registered nothing. Site MCP server looks for an MCP endpoint at /mcp on your own origin. Mine returned HTTP 405, so it registered zero tools and said so in the console.
  • It does not move your Lighthouse score. 0.94 before, 0.94 after.
  • Nothing happens on a normal browser. The bridge does not polyfill. No API, no tools, one console note.

How to turn on WebMCP in Cloudflare

The setting lives under Agent Readiness in the Cloudflare dashboard. Flipping it changes nothing in your repository. Cloudflare rewrites your HTML on the way out, at the edge, and injects a single element into the head:

<script type="module" src="https://yoursite.com/.webmcp/bridge.js" data-packs="c2pa,mcp-server-client"></script>

The injection is 115 bytes, and I can be precise because I measured the same page before and after: 144,290 bytes to 144,405 bytes. The difference is exactly the tag.

The script is served from your domain, not Cloudflare’s. It sits at /.webmcp/bridge.js on your own origin, so no third-party domain shows up in your page and your Content Security Policy does not need a new entry.

The data-packs attribute is your configuration. The tool packs you tick in the dashboard become a comma-separated list on the tag. Mine reads c2pa,mcp-server-client because I enabled both.

The bridge itself is 47,616 bytes of JavaScript. It came back with cf-cache-status: HIT, so it is served from Cloudflare’s edge cache rather than from your origin on every page view.

What tools does WebMCP give your site?

WebMCP works by a page registering tools that a browser-based agent can call, instead of the agent reading your DOM and guessing which button to press. How that differs from a server-side MCP server is in WebMCP vs MCP.

I ran the live site in Chrome 151 with experimental web platform features enabled and asked the API directly. It returned two tools.

ToolWhat it does
scan_images_c2paScans every image on the page for C2PA Content Credentials and returns a per-image summary
inspect_image_c2paFetches one image and returns its fully decoded C2PA manifest store

Both come from the Content Credentials pack. They read content-provenance metadata out of images: who made a picture, whether it was edited, whether it was AI generated. That is useful if you run a news site or a stock library. On a software company’s marketing site it is close to meaningless. Nothing about our pricing, docs, search or product is exposed to an agent.

The toggle did not make my site agent-operable. It made my images inspectable.

Why the Site MCP server pack registers nothing

The other pack sounds more useful. Cloudflare describes Site MCP server as proxying “your site’s own MCP server tools to the in-browser agent”. If your site already has an MCP server, this pack hands its tools to the agent in the page.

Mine registered zero tools. The bridge said so in the console:

[webmcp-interceptor] Registered 2 static tool(s); resolving dynamic packs…
[webmcp-interceptor] mcp-server-client: tools/list failed for "/mcp";
  registering no site tools. Error: MCP endpoint returned HTTP 405
[webmcp-interceptor] Registered 0 dynamic tool(s) from 1 dynamic pack(s).

The pack looks for an MCP endpoint at /mcp on the same origin and calls tools/list against it. On my domain, /mcp is a marketing page. It answers GET with a redirect and POST with a 405, because it is HTML and not a JSON-RPC endpoint.

We do run an MCP server, ContextBolt SEO, which answers keyword, competitor, backlink and AI-visibility questions inside Claude, Cursor or Codex and saves the research to an SEO Dashboard. It lives on a different subdomain, behind authentication, because it is a paid product with per-call costs. The pack cannot reach it and should not be able to.

So the pack that could expose what your site is for requires you to build and host an MCP server at a specific path on the same origin. The toggle does not build it. It only connects to one if it is already there. A pack that finds nothing fails safe: it logs a warning and registers nothing, it does not go hunting on other origins, and enabling it did not expose anything that was not already public.

If you want real tools, the gap is an MCP server at /mcp on the same origin, answering JSON-RPC. That means building something. Ours is authenticated and metered because each call costs us money at a data provider, so proxying it to anonymous in-browser agents on the marketing site is not something we want. A same-origin endpoint would need to be a deliberately separate, cheap, read-only surface. For most marketing sites that means a small set of read-only things, such as searching the docs, looking up a price, or checking availability.

Does WebMCP work in every browser?

No. The bridge does not polyfill the API. I loaded the same live page in Chromium 146, which is below the origin trial floor, and the tag was there, the script loaded, and no modelContext object existed. You get a console message telling you to turn on an experimental features flag.

So the tag ships to every visitor, and for almost all of them it does nothing. WebMCP is in a Chrome origin trial that runs through Chrome 156.

One correction while I’m here, because I measured it and the guides disagree. On Chrome 151, document.modelContext and navigator.modelContext are the same object. Strict equality returns true, modelContext is present on both Document.prototype and Navigator.prototype, and both report a ModelContext constructor. The W3C draft defines the interface on Document, so that is the one to write, but a navigator example will not silently fail on you the way several write-ups claim. The methods on it are registerTool, getTools, executeTool and ontoolchange.

Does WebMCP improve your Lighthouse score?

No. Lighthouse 13 has an Agentic Browsing category, and the loudest claim in the coverage is that implementing WebMCP lifts your agentic score. I wrote up why that is wrong, and this was the cleanest test of it, because I had a before number. My homepage scored 0.94 before WebMCP was on and 0.94 after.

The three WebMCP audits are still notApplicable, because default Chrome does not have the API on. The three audits that counted were the accessibility tree, Cumulative Layout Shift and llms.txt, and none of them care whether you registered a tool.

What WebMCP costs you

Page weight. 115 bytes in the HTML, plus a 47 KB module fetched once and cached at the edge. On a homepage that is already 144 KB, the tag is a rounding error.

Requests. Every page view now also fetches the bridge file. It came back as an edge cache hit rather than an origin request, so it should not add origin invocations, and the injection happens on responses you were already serving. I could not detect a change in my 30-day request counter, but a 30-day rolling window cannot resolve ninety minutes, so I don’t have that measurement yet. If you are near a request limit, watch your own counter across a full day.

How to check what WebMCP added to your site

Every number above is reproducible. Run these before you flip the toggle and again after.

# Print the tag Cloudflare added (nothing at all if the toggle is off)
curl -s https://yoursite.com/ | grep -o '<script[^>]*webmcp[^>]*>'

# Measure the cost: run before and after, the difference is what it cost you
curl -s https://yoursite.com/ | wc -c

# A cf-cache-status HIT means the edge is answering rather than your origin
curl -sI https://yoursite.com/.webmcp/bridge.js | grep -i cf-cache-status

The check that tells you most is asking the page what it registered. Open your site in Chrome with experimental web platform features enabled, then in the console:

await document.modelContext.getTools()

It returns the array of tools an agent would see. If it comes back with two image tools and you were expecting your product’s functionality, now you know before a customer does. While you are in the console, read the messages the bridge logged. They show which packs resolved and which found nothing.

Should you turn WebMCP on?

Yes, if you accept what it is. It is a two-minute change that puts your site on the right side of a standard that Chrome, Microsoft and a list of large retailers are actively testing. It costs almost nothing, it breaks nothing, and browsers that cannot use it ignore it.

But you have installed a socket, with nothing plugged into it. The tools that would make your site useful to an agent come from an MCP server you have to build and expose yourself. Until then, an agent that visits your site can inspect your images and nothing else. Don’t turn it on for a score, because there is no score in it.

Where next

Frequently asked questions

Something else on your mind? Get in touch.

What does Cloudflare's WebMCP toggle actually add to my site?

One script tag, 115 bytes, injected at the edge into every HTML response. It points at a bridge file on your own domain and carries a data-packs attribute listing the tool packs you enabled. Your origin, your build and your HTML source are all untouched.

Does turning on WebMCP give my site tools automatically?

No. The toggle gives you a bridge. Tools come from tool packs. With Content Credentials enabled you get two image-provenance tools. The Site MCP server pack only registers tools if it finds a working MCP endpoint at /mcp on the same origin, which you have to build yourself.

Will WebMCP improve my Lighthouse agentic browsing score?

No. I measured my site at 0.94 before turning WebMCP on and 0.94 after. The WebMCP audits in that category are informational or drop out as not applicable, so registering tools did not raise the score and having none does not lower it.

Do visitors need a special browser for WebMCP to work?

Yes, for now. The bridge does not polyfill anything. On a browser without the API it loads, finds no modelContext, logs a note in the console and registers nothing. WebMCP runs in Chrome's origin trial through Chrome 156, or behind an experimental features flag.

Does the WebMCP bridge cost extra Workers requests?

The bridge file is served from Cloudflare's edge cache rather than your origin, so it should not add origin invocations. The injection itself happens on responses you were already serving. Watch your own request counter for a full day before assuming either way.