NewAgent-ready skill for Claude Code, Cursor and Codex →
AgentsReady
Guides · As of

What is WebMCP?

WebMCP is a proposed web standard from the Chrome team that lets a web page register tools (a name, a description, an input schema and a function) that an AI agent in the browser can call directly instead of working out which buttons to click. Pages register tools with document.modelContext.registerTool(), and Chrome offers it through an origin trial as of November 2026. It complements a remote MCP server: WebMCP tools run inside the user's page and session, while a remote MCP server runs on your servers and works from any assistant.

From our data: As of 3 Nov 2026, 90 of the 214 software vendors in our rankings ran a remote MCP server. WebMCP tools only exist once a page runs in a browser, so a fetch-based scan like ours can't see them yet.

Registering a tool

A tool needs a name, a description an agent can choose it from, a JSON Schema for its input, and a function that does the work. Annotations such as readOnlyHint and consequentialHint tell the agent whether a tool only reads data or changes something important.

if (document.modelContext) {
  await document.modelContext.registerTool({
    name: "search_products",
    description: "Search the catalog by keyword. Returns name, price, stock and URL for up to 10 products.",
    inputSchema: {
      type: "object",
      properties: { query: { type: "string" }, maxPrice: { type: "number" } },
      required: ["query"],
    },
    annotations: { readOnlyHint: true },
    execute: async ({ query, maxPrice }) => {
      const res = await fetch(`/api/search?q=${encodeURIComponent(query)}&max=${maxPrice ?? ""}`);
      return JSON.stringify(await res.json());
    },
  });
}

WebMCP vs a remote MCP server

  1. Where it runs

    WebMCP runs in the browser tab, with the user's cookies and session. A remote MCP server runs on your infrastructure behind OAuth.

  2. Who can use it

    WebMCP serves agents working in a browser that supports it. A remote MCP server works from Claude, ChatGPT, Cursor and any other MCP client, with no browser involved.

  3. What to build first

    For a SaaS product or API, a remote MCP server reaches more agents today. WebMCP suits flows that live in the page: search and filters, carts, booking forms, support.

When to add it

  1. Pick the clicks agents get wrong

    Multi-step filters, date pickers, configurators and carts are where screenshot-and-click agents struggle most.

  2. Keep tools small and read-only first

    Start with search and lookup tools. Add tools that change things once you've seen how agents use them.

  3. Confirm consequential actions

    Mark purchases and deletions with consequentialHint and ask the user to confirm; web.dev notes tools can request confirmation through a dialog.

  4. Fix the basics anyway

    Most agents don't use WebMCP yet. Semantic HTML, named buttons and labelled fields are still how they operate your page.

  5. Feature-detect

    It's an origin trial and the API is still changing, so check that document.modelContext exists before calling it, and follow Chrome's docs for the current shape.

Check it yourself

Lists the tools your page has registered. An empty list means nothing registered on this page; "not available" means the browser doesn't expose WebMCP, so check Chrome's docs for the current origin trial.

// In Chrome DevTools, on your page, with the origin trial or flag enabled:
document.modelContext ? await document.modelContext.getTools() : "WebMCP not available in this browser"
Run the free check on your siteGet the full checklist

Questions

Is WebMCP the same as MCP?

It borrows MCP's idea of tools with names, descriptions and schemas, but it's a browser API, not the MCP wire protocol. Your page registers tools in JavaScript; there's no server endpoint.

Which browsers support WebMCP?

Chrome, through an origin trial, as of November 2026. It's a proposed standard and Chrome's docs note version-by-version changes, so treat it as experimental.

Do I need WebMCP if I already have a remote MCP server?

Not necessarily. A remote MCP server covers assistants and coding agents. WebMCP adds value for agents operating your site in a browser, especially for in-page flows like carts and booking.

Is WebMCP safe?

Tools run with the user's session, so treat each one like a button that does the same thing: check permissions server-side, and require confirmation for anything that spends money or deletes data.