WordPress WordPress

Make every contact form, WooCommerce checkout, login, registration, and comment form on your WordPress site callable by AI agents — without touching a single template. Install a free no-code plugin or add one line to your theme, and every <form> is instantly AI-ready.

Works with WooCommerce ⏱ ~5 min to deploy All pages, all themes
1 Add via plugin (recommended — no coding)

The easiest method. WPCode (formerly "Insert Headers and Footers") lets you inject custom scripts from the WordPress admin without editing any files.

WPCode: HTML snippet
<script src="https://cdn.jsdelivr.net/npm/auto-webmcp@0.2.1/dist/auto-webmcp.iife.js" async></script>
One tag. auto-webmcp auto-initialises on load and registers every <form> found on the page.
2 Alternative: add via child theme

If you prefer to keep dependencies in your theme, add the script via functions.php in a child theme (never edit the parent theme directly).

child-theme/functions.php
add_action( 'wp_footer', function () {
    echo '<script src="https://cdn.jsdelivr.net/npm/auto-webmcp@0.2.1/dist/auto-webmcp.iife.js" async></script>';
} );
Always use a child theme. Editing a parent theme's functions.php directly means your changes are overwritten on the next theme update. Create a child theme first, or use the WPCode plugin above to avoid this entirely.
3 What gets registered automatically

WordPress form types that become AI-callable out of the box

  • WooCommerce checkout: billing address, shipping, payment method, order notes
  • WooCommerce account: login, register, lost password, address edit
  • Contact Form 7 / WPForms / Gravity Forms: any form rendered directly in the page DOM
  • WordPress login & registration: username, password, email
  • Comment forms: name, email, website, comment body
  • Search forms: keyword, category, date range (theme-dependent)
iFrame-embedded forms: auto-webmcp cannot cross iframe boundaries. If your contact form plugin renders inside an iframe, switch to its inline/embedded rendering mode, or use a plugin like Contact Form 7 which renders directly in the page DOM by default.
4 Optional: enrich with spec attributes

For forms you control in a page builder or custom template, add WebMCP spec attributes to the <form> element to give AI agents a precise description of what the form does.

WordPress template: form attributes
<form
  id="enquiry-form"
  toolname="submit_enquiry"
  tooldescription="Submit a product enquiry. Requires name, email, and message."
  toolautosubmit="true"
>
  ...
</form>
Next steps