Skip to main content
AI Agents StandardsTest ID: webmcpVerified Specification

WebMCP Declaration & HTML Client Tool Registry

Embedding machine-readable Model Context Protocol (MCP) tool registrations directly into HTML script tags (<script type="application/mcp+json">) for client-side AI assistants.

Why this matters for your SEO & AI Visibility:

Enables browser-based AI extensions, Cursor, and web-connected assistants to discover and execute client-side website tools instantly without external API polling.

Step-by-Step Remediation Guide

4 Actionable Steps
  1. 1Add a <script type="application/mcp+json"> tag in the HTML <head> or <body>.
  2. 2Declare client tools, parameters, and callback endpoints.
  3. 3Validate JSON schemas for tool input parameters.
  4. 4Expose execution handlers for incoming agent tool calls.

Production Implementation Code

html

Copy and deploy this production snippet into your application to satisfy the audit test.

webmcp configuration snippet
<script type="application/mcp+json">
{
  "name": "webcare-pro-client-tools",
  "version": "1.0.0",
  "tools": [
    {
      "name": "checkAuditScore",
      "description": "Checks the current live AI readiness score of the domain",
      "inputSchema": {
        "type": "object",
        "properties": {
          "domain": { "type": "string" }
        },
        "required": ["domain"]
      }
    }
  ]
}
</script>

Technical Architecture & In-Depth Details

The Future of In-Browser AI Interaction

WebMCP brings the power of the Model Context Protocol directly into client-side DOM contexts, turning any website into an interactive application callable by browser-embedded AI agents.