Agentgate for WebMCP is a zero-configuration plugin that makes your published content available to AI agents through the WebMCP browser standard. Activate it on any HTTPS-enabled WordPress 6.9 site and three read-only tools become available instantly.
What agents can do
Agents visiting your site in a supported browser can:
- Search your published posts by keyword and receive titles, excerpts, and links.
- Look up a single post by its ID or slug to get the full text, categories, and tags.
- Retrieve a complete list of your site’s categories with descriptions and post counts.
No content is modified. Agents see the same public information as any visitor.
Under the hood
A small deferred script checks whether the browser supports navigator.modelContext. If it does, the plugin fetches the available tool definitions from a local REST endpoint and registers them. Each tool invocation is processed server-side, sanitized, and returned as structured JSON. Results are cached in the browser for 24 hours to keep requests low.
Unsupported browsers simply ignore the script — nothing breaks, nothing logs.