Skip to content
@WebMCP-org

MCP-B

Re-programming the web for AI agents

MCP-B

Model Context Protocol for the Browser

Building a Better Web for Browser Agents


Documentation Discord NPM License


WebsiteDocumentationDiscordExamples



Overview

What is WebMCP?

WebMCP (Web Model Context Protocol) is a proposed W3C web standard being incubated by the Web Machine Learning Community Group. It enables websites to expose AI-callable tools through the browser's document.modelContext API, allowing AI agents to discover and interact with web applications directly in the browser.

WebMCP is optimized for browser-based, user-present interactions with built-in web security features, leveraging the browser's origin-based security model and user authentication. Learn more in the W3C WebMCP Explainer.

What is MCP-B?

MCP-B bridges the gap between WebMCP and the Model Context Protocol (MCP), serving two critical functions:

  1. API Implementation — Provides a polyfill that implements the document.modelContext interface for browsers lacking native support
  2. Protocol Translation — Converts between WebMCP's web-native format and the MCP protocol, enabling cross-compatibility

MCP-B creates interoperability by enabling WebMCP-formatted tools to function with MCP clients (like Claude Desktop), and MCP-formatted tools to operate within WebMCP-enabled browsers. This allows both standards to evolve independently without breaking existing implementations.

Open Source & Licensing

All MCP-B libraries and SDKs are open source (MIT Licensed), enabling developers to build WebMCP-enabled applications freely. However, the browser extension for connecting to MCP clients is not open source.

For developers interested in contributing to browser extension development, check out the POC MCP-B Extension (AGPL-3.0) by the community.

Key Features

  • Browser-Native MCP — Implements W3C Web Model Context API for standardized AI tool registration
  • Secure by Default — Leverages browser authentication and origin-based security model
  • Zero Backend Required — Expose tools directly from your frontend application
  • Agent-Ready — Works with Claude, ChatGPT, and any MCP-compatible AI client
  • Framework Agnostic — React hooks, vanilla JS, and framework-specific integrations available

Quick Start

# Install the core package
npm install @mcp-b/global

# Or use React hooks
npm install @mcp-b/react-webmcp
// Register a tool that AI agents can discover and call
document.modelContext.registerTool({
  name: "get_user_profile",
  description: "Get the current user's profile information",
  inputSchema: {
    type: "object",
    properties: {},
  },
  handler: async () => {
    return { name: "John Doe", email: "[email protected]" };
  }
});

View Full Documentation →

Core Packages

Package Description Links
@mcp-b/global W3C Web Model Context API polyfill npm
@mcp-b/react-webmcp React hooks for WebMCP npm
@mcp-b/transports Browser transport implementations npm
@mcp-b/webmcp-ts-sdk TypeScript SDK for MCP-B npm
@mcp-b/extension-tools Chrome Extension API wrappers npm

Resources

Community

Use Cases

  • Interactive Dashboards — Let AI agents query metrics and visualize data
  • E-commerce Sites — Enable natural language product search and checkout
  • Documentation Sites — AI-powered search and content generation
  • SaaS Applications — Expose app functionality as composable AI tools
  • Admin Panels — Voice and chat-based admin controls

License

MCP-B is open source software licensed under the MIT License.


Built with care by the MCP-B community


WebsiteDocsDiscordNPM


Making the web AI-accessible, one tool at a time.

Popular repositories Loading

  1. npm-packages npm-packages Public

    NPM packages for MCP-B: Transport layers, React hooks, and browser tools for the Model Context Protocol

    TypeScript 98 20

  2. chrome-devtools-quickstart chrome-devtools-quickstart Public

    Quickstart demo for using Chrome DevTools MCP with WebMCP tools - AI-driven browser automation

    JavaScript 39 9

  3. examples examples Public

    MCP-B Examples - Browser-native Model Context Protocol implementations

    TypeScript 27 6

  4. mcp-ui-webmcp mcp-ui-webmcp Public

    MCP UI WebMCP - Chat UI and MCP Server applications

    TypeScript 22 4

  5. webmcp-sh webmcp-sh Public

    A modern web-based Model Context Protocol (MCP) playground for testing and developing MCP servers and clients

    TypeScript 18 7

  6. mcp-b mcp-b Public

    MCP-B core — browser-native Model Context Protocol tools and integration

    TypeScript 7 1

Repositories

Showing 10 of 23 repositories
  • do-runtime Public

    Cloudflare's Durable Object runtime (workerd) ported to TypeScript — actors, gates, SQLite storage, facets, and alarms in the browser and Node.

    WebMCP-org/do-runtime's past year of commit activity
    TypeScript 2 0 0 0 Updated Sep 17, 2026
  • WebMCP-org/agent-skills-ts-sdk's past year of commit activity
    TypeScript 0 MIT 0 0 0 Updated Sep 17, 2026
  • rook-integrations Public

    Typed provider integrations for Rook, with generated clients, skills, and real-browser verification.

    WebMCP-org/rook-integrations's past year of commit activity
    TypeScript 1 0 0 0 Updated Sep 17, 2026
  • npm-packages Public

    NPM packages for MCP-B: Transport layers, React hooks, and browser tools for the Model Context Protocol

    WebMCP-org/npm-packages's past year of commit activity
    TypeScript 98 MIT 20 11 20 Updated Sep 13, 2026
  • .github Public

    Org-level community health files for WebMCP-org (SECURITY.md, templates, etc.)

    WebMCP-org/.github's past year of commit activity
    1 MIT 1 0 1 Updated Sep 2, 2026
  • duckboard Public

    An AI-first WebMCP data canvas powered by DuckDB-Wasm

    WebMCP-org/duckboard's past year of commit activity
    TypeScript 3 MIT 0 0 0 Updated Aug 18, 2026
  • use-mcp-react Public
    WebMCP-org/use-mcp-react's past year of commit activity
    TypeScript 1 MIT 0 0 3 Updated Jul 23, 2026
  • webmcp-sh Public

    A modern web-based Model Context Protocol (MCP) playground for testing and developing MCP servers and clients

    WebMCP-org/webmcp-sh's past year of commit activity
    TypeScript 18 MIT 6 4 0 Updated Jul 2, 2026
  • mcp-ui-webmcp Public

    MCP UI WebMCP - Chat UI and MCP Server applications

    WebMCP-org/mcp-ui-webmcp's past year of commit activity
    TypeScript 22 Apache-2.0 4 0 2 Updated Jul 2, 2026
  • docs Public

    Technical documentation for the MCP-B / WebMCP ecosystem

    WebMCP-org/docs's past year of commit activity
    MDX 2 MIT 2 0 5 Updated Jun 13, 2026

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Most used topics

Loading…