---
title: "WebMCP: definition and example | Agent MCP Directory"
description: "WebMCP: A draft browser API for pages to register JavaScript tools that an in-browser agent can call. Defined with a sourced example."
canonical: https://agentmcpdirectory.com/glossary/webmcp
site: "Agent MCP Directory"
last_updated: 2026-11-04
section: "Glossary"
---

# WebMCP: definition and example | Agent MCP Directory

> WebMCP: A draft browser API for pages to register JavaScript tools that an in-browser agent can call. Defined with a sourced example.

Source: https://agentmcpdirectory.com/glossary/webmcp
Site: Agent MCP Directory
Last reviewed: 2026-11-04

# WebMCP

WebMCP: A draft browser API for pages to register JavaScript tools that an in-browser agent can call. Example: The draft documents document.modelContext.registerTool(). Next in the glossary is Act layer: The part of agent readiness about completing tasks: MCP servers, CLIs, APIs with OpenAPI, WebMCP and agent payments.

## Definition

A draft browser API for pages to register JavaScript tools that an in-browser agent can call.

## Example, with source

The draft documents document.modelContext.registerTool(). ([github.com](https://github.com/webmachinelearning/webmcp), read 4 November 2026)

## Where it appears on this site

-   [WebMCP](https://agentmcpdirectory.com/standards/webmcp/)
-   [Tool descriptions and agent success](https://agentmcpdirectory.com/guides/tool-descriptions-and-agent-success/)

## Neighbouring terms

-   [Tool annotations](https://agentmcpdirectory.com/glossary/tool-annotations/): Hints on a tool such as readOnlyHint and destructiveHint that tell clients how risky a call is.

Edition

4 November 2026

Method

[How rows are verified](https://agentmcpdirectory.com/method/)

Data

[CSV and JSON](https://agentmcpdirectory.com/data/)

Markdown

[This page as markdown](https://agentmcpdirectory.com/glossary/webmcp/index.md)

## Sources

-   [Source for the WebMCP example](https://github.com/webmachinelearning/webmcp), read 4 November 2026

Last reviewed 4 November 2026
