WebMCP Bridge
Make your WordPress site natively AI-agent friendly via WebMCP, REST/OpenAPI, a remote MCP server, and optional Poppy 0.4 guest carts.
Install in
WebMCP Bridge exposes your WordPress (and WooCommerce) functionality as WebMCP tools that AI agents can discover and invoke directly in the browser.
Once installed, your site automatically becomes “agent-friendly”:
- AI agents can search posts, pages, and custom post types
- With Mescio for Agents, the site becomes a live RAG source (
retrieveMarkdown) - AI agents can browse products, manage the cart, apply coupons (WooCommerce)
- With Personal Agent Protocol (Poppy) 0.4, a verified session can share one anonymous WooCommerce guest cart between MCP calls and the agent’s browser
- AI agents can read navigation menus and site metadata
- Developers can register custom tools in minutes via a simple PHP API
What is WebMCP?
WebMCP is a new browser-native protocol (currently in Chrome Early Preview) that lets web apps expose their functionality as structured “tools” that AI agents can invoke — without needing to screenshot or parse HTML. Think of your website as an MCP server running entirely client-side.
How it works
- Install and activate the plugin
- Enable the features you want from Settings WebMCP Bridge
- Your tool manifest is immediately available at
/wp-json/webmcp-bridge/v1/manifest - Custom GPT Actions can import
/wp-json/webmcp-bridge/v1/openapi - Claude (and other MCP clients) can use
/wp-json/webmcp-bridge/v1/mcpas a remote Streamable HTTP MCP server (protocol 2025-06-18, still compatible with 2025-03-26) - Optional: enable Poppy 0.4 guest cart so Personal Agents can search, fill a guest cart, and send the shopper to normal WooCommerce guest checkout
- AI agents (or any JavaScript code) can call your tools via REST API or the native browser WebMCP API
Included tools
Core:
search_posts— Search posts, pages, or custom post typesget_post— Retrieve a single post by ID or slugget_menu— Return navigation menu itemsget_categories— List taxonomy termsget_site_info— Site name, description, URL, languagesubmit_contact_form— Contact Form 7 integration
WooCommerce (requires WooCommerce plugin):
woo_search_products— Search by keyword, category, price rangewoo_get_product— Full product details including attributeswoo_add_to_cart— Add a product to the cartwoo_get_cart— Current cart contents and totalswoo_remove_from_cart— Remove an item by cart keywoo_apply_coupon— Apply a coupon codewoo_get_checkout_fields— Return checkout field schemawoo_get_product_categories— List all product categories
Even more powerful with Mescio for Agents
WebMCP Bridge integrates automatically with the Mescio for Agents plugin. When both plugins are active, three additional tools are unlocked:
retrieve— RAG retrieve: ranked hits with snippets, Markdown URLs and token estimates. This is the search step of a live RAG loop over the site, without a separate vector database.get_markdown_content— Returns any post or page as clean Markdown, the format AI models consume most efficiently. Instead of raw HTML, agents receive structured, token-optimized content ready for reasoning and summarization.get_llms_txt— Exposes the site-widellms.txtcontext document (index or full variant), giving agents an instant, structured overview of what the site is about, who it is for, and what content is available — before they even start searching.
Together, the two plugins turn your WordPress site into a live knowledge base: Mescio for Agents is the content layer (Markdown, llms.txt), WebMCP Bridge is the tool layer (retrieve, act, checkout). From Mescio 1.8 / WebMCP 1.10.1, Agent activity in Mescio settings also logs MCP and REST tool calls — the observability slice: what this site served, not a ChatGPT citation score. The RAG loop is get_llms_txt retrieve get_markdown_content.
Privacy
This plugin does not collect, store, or transmit cart or customer data to third-party analytics. Tool execution happens in your WordPress install. No telemetry. If Poppy 0.4 guest cart is enabled, the plugin fetches the Personal Agent’s agent.json and JWKS over HTTPS only to verify Poppy-Session signatures.
Written by Joobi from the project's own listing. See the source page
1.10.1
- When Mescio for Agents 1.8+ is active, MCP and REST tool calls are counted in Mescio’s Agent activity log (tool name + user-agent, no IP)
- Docs: the stack is content (Mescio) + tools (WebMCP) + local request log — not a GEO ranking service
1.10.0
- MCP Streamable HTTP now defaults to protocol 2025-06-18 (required by Poppy 0.4). GET /mcp advertises that version;
initializestill accepts 2025-03-26 - Optional Personal Agent Protocol (Poppy) 0.4 guest cart for WooCommerce shops
- Verifies
Poppy-SessionandPoppy-Version(ES256 +poppy_dlg+ agent JWKS). Cart tools are listed and executed only after that check — nonce/cookie security for storefront visitors is unchanged - Each Poppy
sidmaps to its own anonymous WooCommerce session (no customer login or registration) browser_session_endpointat/poppy/browser-sessionso the Personal Agent’s browser and MCP calls share that guest cart; payment stays on normal Woo checkout- Optional WordPress-served
/.well-known/poppy.json(off by default so an existing shop document is not overwritten)
1.9.3
- Claude.ai custom connectors require OAuth: added authorization-server metadata, dynamic client registration, PKCE authorize and token endpoints
- MCP accepts OAuth access tokens issued by that handshake (and still accepts the optional API key)
- /.well-known/oauth-authorization-server is no longer a 404 — that 404 made Claude report “authentication failed”
1.9.2
- MCP tools/list is public (same as the REST manifest) so Claude can see tools without a Bearer token
- GET /mcp no longer advertises required Bearer auth — that made Claude skip discovery and report zero tools
- API key, when enabled, is enforced only on tools/call
1.9.1
- MCP GET now returns HTTP 200 (Claude probes the URL with GET; 405 looked like a dead server)
- API key is not required on GET/OPTIONS/initialize — only on tools/list and tools/call
- Added /.well-known/oauth-protected-resource so Claude can see auth is none or Bearer API key
1.9.0
- Added a real MCP server at /wp-json/webmcp-bridge/v1/mcp (Streamable HTTP, JSON-RPC 2.0)
- Claude Desktop / Claude.ai can add that URL as a remote MCP connector
- Optional Bearer API key (mcp_require_key) for public sites
- Discovery server card advertises streamable-http transport
- Admin: copy MCP URL, generate key, live initialize example
1.8.1
- Compatibility: detect Rank Math LLMS Txt and explain /llms.txt ownership (Rank Math vs Mescio)
- robots.txt: skip Content-Signal if Mescio or another plugin already added it
1.8.0
- Added
retrievetool (Mescio): RAG search returning snippets, markdown_url and token estimates - Optional include_content flag attaches truncated Markdown so a GPT can answer in one retrieve call
- Documented the live RAG loop: get_llms_txt retrieve get_markdown_content
1.7.0
- Added OpenAPI 3.0 schema at /wp-json/webmcp-bridge/v1/openapi for Custom GPT Actions
- Added per-tool POST /wp-json/webmcp-bridge/v1/call/{tool} (request body = tool params)
- Security: removed public /nonce endpoint; write tools need a same-session WP nonce or login
- Discovery: service-desc/service-doc now point at OpenAPI, not the WebMCP manifest
- Discovery: when Mescio for Agents is active, /.well-known/api-catalog is owned by Mescio and WebMCP is merged via mescio_api_catalog
- Discovery: well-known paths work in subdirectories and with language prefixes
- Removed misleading OAuth well-known documents (WordPress is not an OAuth server)
- Fixed admin rate-limit fields rendering outside the settings table
- Fixed rate-limit window so the configured duration is actually used
- GET /tools/{name} no longer exposes PHP callbacks
- search_posts / get_post / get_categories restricted to public post types and taxonomies
- submit_contact_form now submits Contact Form 7 instead of returning a stub
- WooCommerce cart tools call wc_load_cart() on REST requests; add-to-cart quantity capped at 99
1.6.0
- JS: migrated browser registration to navigator.modelContext.provideContext() per current WebMCP spec; legacy ai.tools.register() kept as fallback
- JS: corrected tool field from parameters to inputSchema (WebMCP/Anthropic spec)
- Discovery: added service-desc and service-doc Link relations alongside api-catalog and webmcp-manifest
- Discovery: OAuth authorization-server and oauth-protected-resource now served on all sites (not WooCommerce-only) — explains WordPress nonce auth to agents
- Discovery: HTML tags updated to include service-desc and service-doc
1.5.0
- Added WooCommerce commerce agent discovery (active only when WooCommerce is installed):
- OAuth Authorization Server metadata at /.well-known/oauth-authorization-server (RFC 8414)
- OAuth Protected Resource metadata at /.well-known/oauth-protected-resource (RFC 9728)
- Universal Commerce Protocol profile at /.well-known/ucp (ucp.dev)
- Agentic Commerce Protocol discovery at /.well-known/acp.json (agenticcommerce.dev)
- Added /wp-json/webmcp-bridge/v1/nonce endpoint — agents can fetch a fresh WP REST nonce for authenticated tool calls
- Discovery endpoint now includes commerce URLs when WooCommerce is active
1.4.4
- Added Content-Signal directives to robots.txt (contentsignals.org): ai-train=yes, search=yes, ai-input=yes — filterable via webmcp_bridge_content_signals hook
- Added Vary: Accept header so nginx/CDN caches correctly serve Markdown for Agents requests separately from HTML responses
1.4.3
- Fixed RFC 8288 Link discovery for cached sites: added tags in HTML via wp_head
- Link tags are part of the cached HTML so agents find them even when nginx serves cached pages without running PHP
- HTTP Link headers still added via wp_headers as secondary channel on cache misses
1.4.2
- Fixed RFC 8288 Link headers: switched from send_headers action to wp_headers filter for reliable delivery through nginx/cache layers
- Link headers now added to all pages (not just homepage) so agents can discover the API from any entry point
1.4.1
- Fixed Agent Skills index: added sha256 digest field to each skill entry (required by v0.2.0 spec)
1.4.0
- Added RFC 8288 Link response headers on homepage: advertises manifest, API catalog and MCP Server Card to agents
- Added /.well-known/mcp/server-card.json (SEP-1649): MCP Server Card for agent discovery
- Added /.well-known/api-catalog (RFC 9727): machine-readable API catalog including WebMCP and Mescio endpoints
- Added /.well-known/agent-skills/index.json: Agent Skills discovery index listing all site capabilities
- Added /wp-json/webmcp-bridge/v1/discovery: convenience endpoint listing all discovery URLs
- All well-known endpoints include Mescio for Agents data automatically when plugin is active
1.3.2
- Fixed PHP syntax error in sanitize_markdown() regex (inline event handler pattern)
- All PHP files pass WordPress.org pre-commit syntax check
1.3.1
- Security: sanitize Markdown output in get_markdown_content and get_llms_txt — prevents stored XSS and prompt injection via post content
- Removed admin_email from get_site_info response — not needed by agents, sensitive data
- Removed author display_name from get_post response — exposes internal WordPress usernames
- Added global rate limiting on /execute endpoint (default: 120 calls/60s, configurable in settings)
- Rate limit is global (not per-IP) — effective against proxy rotation attacks; returns HTTP 429
1.3.0
- Removed admin_email from get_site_info — sensitive data not needed by agents
- Removed author field from get_post — avoids exposing internal WordPress usernames
- Added global rate limiting on /execute: configurable max calls per time window in settings
- Rate limit counter uses WP transients; returns HTTP 429 when exceeded
- Rate limit and window now editable from Settings WebMCP Bridge
1.2.0
- Added Live API Examples section in admin: test every tool directly from the settings page
- curl and JavaScript snippets auto-generated for each tool with real site URL
- Added Mescio for Agents examples (llms.txt, get_markdown_content) when plugin is active
- Admin JS extracted to separate file for better caching and CSP compatibility
- Added full Italian translation (it_IT) — .po, .mo and .pot files included
- Admin UI: tab navigation for examples, live JSON output viewer
1.1.0
- Added integration with Mescio for Agents plugin: when active, unlocks
get_markdown_contentandget_llms_txttools - Manifest now filters tools based on enabled settings — disabled groups no longer appear
- Added
site_urlandmescio_for_agentsfields to manifest response - Tool groups refactored: core split into
content,navigation,formsfor finer control - Improved error handling: registry now catches all
Throwable(not justException) - Fixed
wp_remote_getin llms-full.txt fetch: proper timeout, user-agent, SSL filter - Fixed: tools disabled in settings were still executable via REST — now correctly blocked
1.0.1
- Added automatic compatibility with Autoptimize, WP Rocket, LiteSpeed Cache, W3 Total Cache, SG Optimizer
- Fixed duplicate textdomain and deactivation hooks
- Added ABSPATH protection to all PHP files
- Fixed output escaping in exception messages
1.0.0
- Initial release
- Core tools: search_posts, get_post, get_menu, get_categories, get_site_info, submit_contact_form
- WooCommerce tools: product search, cart management, coupon, checkout fields
- REST API manifest and execution endpoints
- JavaScript frontend bridge with WebMCP browser API support and fallback
- Admin settings page
Follow this listing's changes (Atom feed)