---
title: "How Commerce.com and Cloudflare are getting storefronts ready for AI agents"
description: "WebMCP, a proposed browser standard from Google, gives AI agents structured tools like search_products instead of forcing them to guess from HTML, a slow, token-heavy process that breaks on theme changes. Cloudflare’s edge implementation injects a script that makes these tools available automatically on enabled sites without requiring site owners to write any code, and the tools are proxied from Commerce.com’s backend MCP server. Commerce.com, a commerce platform hosting nearly 100,000 domains, partnered with Cloudflare to enable WebMCP across all storefronts at once, using Cloudflare for SaaS for merchant vanity domains. They built per-merchant opt-out using Cloudflare’s Configuration Rules and custom hostname metadata, so individual stores can disable the feature without code changes and with zero added latency. The tools execute inside the shopper’s browser session on the store’s domain, so the agent sees real-time prices and cart while the shopper retains checkout control, keeping payment details secure."
---

# How Commerce.com and Cloudflare are getting storefronts ready for AI agents

[Cloudflare](https://yomu.fyi/company/cloudflare) · Matthew Conroy · Oct 21, 2026

**Type:** Problem & solution

## Summary

WebMCP, a proposed browser standard from Google, gives AI agents structured tools like search\_products instead of forcing them to guess from HTML, a slow, token-heavy process that breaks on theme changes. Cloudflare’s edge implementation injects a script that makes these tools available automatically on enabled sites without requiring site owners to write any code, and the tools are proxied from Commerce.com’s backend MCP server. Commerce.com, a commerce platform hosting nearly 100,000 domains, partnered with Cloudflare to enable WebMCP across all storefronts at once, using Cloudflare for SaaS for merchant vanity domains. They built per-merchant opt-out using Cloudflare’s Configuration Rules and custom hostname metadata, so individual stores can disable the feature without code changes and with zero added latency. The tools execute inside the shopper’s browser session on the store’s domain, so the agent sees real-time prices and cart while the shopper retains checkout control, keeping payment details secure.

## Context

WebMCP is an experimental browser standard from Google that provides AI agents with structured tools on web pages, replacing the need for agents to guess from HTML. Cloudflare offers an edge implementation of WebMCP in beta, and Commerce.com, a commerce platform hosting nearly 100,000 domains, partnered with Cloudflare to enable it across all storefronts while giving individual merchants opt-out control.

## Approach / What changed

Cloudflare injects a script at the edge to make WebMCP tools available automatically. Commerce.com turns on WebMCP for their main zone, then uses Configuration Rules and custom hostname metadata to allow merchants to opt out. They also added configurable MCP URL settings for custom paths and fallbacks for unsupported browsers.

## Takeaways

- WebMCP allows AI agents to call structured tools like search\_products directly instead of simulating clicks on HTML, making shopping faster, cheaper, and more reliable.
- Cloudflare’s edge implementation injects a script automatically, and Commerce.com enabled it across nearly 100,000 storefronts with per-merchant opt-out via Configuration Rules and metadata, adding zero latency for opted-out stores.
- WebMCP tools execute inside the shopper’s active browser session on the store’s domain, so the agent sees real-time prices and cart, and the shopper retains control of checkout, keeping payment details secure.

## FAQ

### How does WebMCP differ from server-side MCP?

WebMCP supports agents that work in the shopper's browser, while server-side MCP supports agents that connect to a store directly. Both use the same set of shopping tools, so merchants don't have to manage them separately.

### How can merchants opt out of WebMCP?

Merchants flip an opt-out switch in their Commerce.com dashboard, and Cloudflare bypasses WebMCP for that storefront via Configuration Rules evaluated at the edge, adding zero latency and no injected scripts.

### What happens if a browser doesn't support WebMCP?

The script exits gracefully, the storefront loads normally, and human shoppers are unaffected.

**Tags:** [AI Agents](https://yomu.fyi/topic/ai-agents), [Cloudflare](https://yomu.fyi/topic/cloudflare), [E-commerce](https://yomu.fyi/topic/e-commerce), [WebMCP](https://yomu.fyi/topic/webmcp)

- Source: [Cloudflare](https://blog.cloudflare.com/webmcp-commerce)
- Source URL: https://blog.cloudflare.com/webmcp-commerce
- Ingested by Yomu: 2026-10-21T15:00:21.301Z

[Read original post](https://blog.cloudflare.com/webmcp-commerce)
