Skip to main content
9 – 17 UHR +49 8031 3508270 LUITPOLDSTR. 9, 83022 ROSENHEIM
DE / EN

WebMCP: How the Proposed W3C Web Standard Revolutionizes AI Agents and Websites

Tobias Jonas Tobias Jonas | | 5 min read

What is WebMCP? The Game-Changer for AI Integration on the Web

Imagine this: Your website communicates directly with AI assistants like ChatGPT, Claude, or Gemini – without complex backend integrations, without separate API servers, without Python or Node.js. This is exactly what WebMCP (Web Model Context Protocol) enables.

WebMCP is a proposed JavaScript-based web standard currently being incubated by the W3C Web Machine Learning Community Group. The protocol allows web developers to expose their existing frontend logic as “tools” for AI agents.

Core Idea: Websites become MCP servers that implement tools client-side in JavaScript – instead of on the backend.


Why WebMCP? The 5 Decisive Advantages

1. Code Reuse Instead of New Development

Developers can expose their existing JavaScript logic directly as tools. No separate server, no new language – simply extend existing code.

2. Human-in-the-Loop Workflows

WebMCP was specifically designed for collaborative scenarios: Users and AI agents work together in the same interface with shared context. Humans retain control.

3. Unified Interface

One codebase for humans AND agents. No fragmentation between web UI and API.

4. Enhanced Accessibility

Assistive technologies gain access to higher-level actions – a quantum leap for accessibility.

5. Faster & More Reliable AI Interactions

Instead of error-prone screen automation (clicks, scrolling), agents use defined tools for precise actions.


Practical Example: How WebMCP Works

Use Case: Graphic Design Platform

Imagine a graphic design application that provides the following tools for AI agents:

/**
 * Filters templates based on a visual description.
 * @param {string} description - Natural language description of desired templates
 */
filterTemplates(description)

/**
 * Makes changes to the current design based on instructions.
 * @param {string} instructions - Natural language editing instructions
 */
editDesign(instructions)

The Scenario: A user is creating a flea market flyer. She asks her browser agent:

“Show me spring-themed templates with a white background.”

The agent recognizes the registered filterTemplates tool and calls it:

filterTemplates("spring themed, white background, date prominently displayed")

The UI updates automatically – without screen scraping, without simulating mouse clicks.

Subsequently, the user can make further adjustments:

“Change the headline to ‘Spring Flea Market’ and make it larger.”

The agent uses the editDesign tool:

editDesign("Change headline to 'Spring Flea Market' and increase font size")

WebMCP vs. Backend MCP: The Crucial Difference

AspectBackend MCPWebMCP
ExecutionServer-sideClient-side (Browser)
UI ContextNo shared UIShared visual context
LanguagePython/Node.jsJavaScript
User ControlLimitedFull visibility
SetupSeparate server requiredDirect frontend add-on

Important: WebMCP complements MCP – it doesn’t replace it. Both approaches have their merits and can also be combined.


Technical Highlights for Developers

Tool Registration

Registering a tool for AI agents is remarkably simple:

Note: The API syntax shown is based on the current draft specification and may change.

navigator.ai.registerTool({
  name: "orderPrints",
  description: "Orders the current design for printing",
  parameters: {
    copies: { type: "number", required: true },
    page_size: { type: "string", enum: ["Letter", "A4", "A5"] }
  },
  handler: async (params) => {
    // Implementation logic
    const result = await printingService.createOrder({
      design: currentDesign,
      copies: params.copies,
      pageSize: params.page_size
    });
    
    return {
      success: true,
      orderId: result.id,
      estimatedDelivery: result.estimatedDelivery
    };
  }
});

Security Concept

WebMCP places great emphasis on security and transparency:

  • Permission Prompts for tool registration and invocation
  • Cross-Origin Isolation with user intervention
  • Transparency about data flows between websites
  • User Control over all agent actions

JSON-RPC Communication

Communication between agent and website occurs via a standardized JSON-RPC protocol, ensuring reliable and structured interaction.


Who is Behind WebMCP?

WebMCP is being developed by a team from Microsoft and Google:

Microsoft:

  • Brandon Walderman
  • Leo Lee
  • Andrew Nolan

Google:

  • David Bokan
  • Khushal Sagar
  • Hannah Van Opstal

The specification is in active development at the W3C Web Machine Learning Community Group.

Community Projects: MCP-B

In parallel to the standardization efforts, the community is developing MCP-B (Model Context Protocol for the Browser), which implements the W3C Web Model Context API and builds an ecosystem with SDKs and browser extensions. This community-driven project complements WebMCP with practical implementation aids and extends the tool offering for developers.


The Future: PWA Integration and Service Worker Support

The WebMCP roadmap includes exciting extensions:

  • Progressive Web Apps (PWA) integration for offline-capable AI tools
  • Service Worker Support for persistent background functionality
  • Advanced Security Models for complex multi-site scenarios
  • Standardization as an official W3C standard (currently in incubation phase)

Conclusion: Why You Should Have WebMCP on Your Radar

WebMCP is not just another protocol – it’s a fundamental realignment of how websites interact with AI agents:

For Developers: Quick integration without backend overhead
For Companies: Agent readiness with existing infrastructure
For Users: Transparent, controllable AI collaboration
For Accessibility: New possibilities for assistive technologies

“The web needs the participation of web developers to thrive. WebMCP makes it easy to make website functionality accessible to the agentic web.”
From the official WebMCP specification

The Entrance Door to the Agentic Web: agenticweb.md

WebMCP solves the execution of tools – but how do AI agents discover the right websites and their capabilities in the first place? This is where agenticweb.md comes in.

agenticweb.md is a machine-readable discovery standard we’re developing at innFactory. It acts as the “entrance door” for AI agents and provides:

  • Centralized Discovery: Agents can automatically discover available functions, APIs, and WebMCP tools on a website
  • Multi-Site Orchestration: Particularly valuable for organizations with multiple websites – a single discovery point for all capabilities
  • Semantic Metadata: Descriptions of purpose, permissions, and usage terms for offered services

The Perfect Synergy:

  1. agenticweb.md = Discovery Layer (“Which websites/tools exist?”)
  2. WebMCP = Execution Layer (“How do I execute the tools?”)

Imagine: An organization operates multiple web portals – HR system, CRM, document management. With agenticweb.md, an AI agent can centrally discover all available capabilities and then invoke the corresponding tools via WebMCP.

👉 Learn more: agenticweb.md/quickstart

Getting Started with WebMCP

If you want to use WebMCP in your projects:

  1. Study Documentation: webmachinelearning.github.io/webmcp
  2. GitHub Repository: github.com/webmachinelearning/webmcp
  3. Model Context Protocol: modelcontextprotocol.io
  4. Anthropic Announcement: anthropic.com/news/model-context-protocol

Do You Have Questions About WebMCP or AI Integration?

As experts in AI strategy and implementation, we’re happy to support you in evaluating and implementing WebMCP in your projects. Contact us for a no-obligation consultation.

Tobias Jonas
Written by

Tobias Jonas

Co-CEO, M.Sc.

Tobias Jonas, M.Sc. ist Mitgründer und Co-CEO der innFactory AI Consulting GmbH. Er ist ein führender Innovator im Bereich Künstliche Intelligenz und Cloud Computing. Als Co-Founder der innFactory GmbH hat er hunderte KI- und Cloud-Projekte erfolgreich geleitet und das Unternehmen als wichtigen Akteur im deutschen IT-Sektor etabliert. Dabei ist Tobias immer am Puls der Zeit: Er erkannte früh das Potenzial von KI Agenten und veranstaltete dazu eines der ersten Meetups in Deutschland. Zudem wies er bereits im ersten Monat nach Veröffentlichung auf das MCP Protokoll hin und informierte seine Follower am Gründungstag über die Agentic AI Foundation. Neben seinen Geschäftsführerrollen engagiert sich Tobias Jonas in verschiedenen Fach- und Wirtschaftsverbänden, darunter der KI Bundesverband und der Digitalausschuss der IHK München und Oberbayern, und leitet praxisorientierte KI- und Cloudprojekte an der Technischen Hochschule Rosenheim. Als Keynote Speaker teilt er seine Expertise zu KI und vermittelt komplexe technologische Konzepte verständlich.

LinkedIn