Skip to content
PluginStats

@mcp-b/global weekly downloads statistics

By mcp-b (3 listings) · npm · MCP servers

W3C Web Model Context Protocol (WebMCP) API polyfill. Let AI agents like Claude, ChatGPT, and Gemini interact with your website via document.modelContext.

View on npm Fresh · Oct 17, 2026

@mcp-b/global has 35,831 recorded weekly downloads on npm, an increase of 8.5% over the past 30 days.

It ranks #628 of 2,251 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by +212%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
35,831
Official API · Oct 17, 2026
7-day growth
-71.2%
-88.7K weekly downloads
30-day growth
+8.5%
+2.8K weekly downloads
90-day growth
+212%
+24.3K weekly downloads
Rank
#628
Among tracked npm listings

About @mcp-b/global

@mcp-b/global

WebMCP runtime - Let Claude, ChatGPT, Gemini, and other AI agents interact with your website

Reference | First Tool Tutorial | Add Tools to an App

@mcp-b/global implements the WebMCP API (document.modelContext) specification, allowing AI agents like Claude, ChatGPT, Gemini, Cursor, and Copilot to discover and call functions on your website.

Why Use @mcp-b/global?

| Feature | Benefit |

| W3C Standard | Implements the emerging WebMCP API specification | | Drop-in IIFE | Add AI capabilities with a single tag - no build step | | Native Chromium Support | Auto-detects and uses native browser implementation when available | | Dual Transport | Works with both same-window clients AND parent pages (iframe support) | | Spec-Aware Compatibility | Tracks the current WebMCP draft (document.modelContext, registerTool(tool, { signal }), and getTools()) and object-input executeTool(...). | | Works with Any AI | Claude, ChatGPT, Gemini, Cursor, Copilot, and any MCP client |

Package Selection

• Use upstream webmcp-types for standard browser contracts and @mcp-b/webmcp-ts-sdk for MCP-B extensions. • Use @mcp-b/webmcp-polyfill when you only need strict WebMCP runtime polyfill behavior. • Use @mcp-b/global when you want MCPB integration features (bridge transport, prompts/resources, extension APIs).

Upstream runtime

When no context is installed, @mcp-b/global calls installWebMCP() from @mcp-b/webmcp-polyfill. That package bundles the upstream WebMCP polyfill at revision 6bf6c57bbaf3d1173d7737cfb79572632d9b7871. It depends on the upstream webmcp-types declarations. Consumers do not install or build a Git dependency.

@mcp-b/webmcp-polyfill retains the declarative API and its SubmitEvent extensions until upstream supports them. @mcp-b/global adds MCP-B transports, prompts, resources, MCP outputSchema metadata, and structured MCP responses. Existing native contexts take precedence and receive the MCP-B adapter when wrapped, including when the upstream polyfill was installed before @mcp-b/global. cleanupWebModelContext() removes the MCP-B adapter; the polyfill context and declarative layer remain installed for the document lifetime. Existing native SubmitEvent hooks are preserved.

executeTool(tool, inputObject) follows the current draft and returns JSON.

Quick Start

Via IIFE Script Tag (No Build Required)

• Self-contained - All dependencies bundled • Auto-initializes - document.modelContext ready immediately • No build step - Just drop it in your HTML

Via ES Module

The ESM entry keeps @mcp-b/transports, @mcp-b/webmcp-polyfill, and @mcp-b/webmcp-ts-sdk external; only the IIFE bundles them.

Via NPM

API Reference

Functions

initializeWebModelContext(options?)

Initializes the global adapter. Replaces document.modelContext with a BrowserMcpServer instance that bridges WebMCP tools to the MCP protocol layer.

Behavior:

• Only operates in browser environments • Returns nothing; use document.modelContext after initialization • Idempotent - repeated and cross-bundle calls are no-ops • Wraps the native context when present; otherwise installs and wraps the polyfill • Cleanup restores the captured native or polyfilled context • Auto-called on import unless window.__webModelContextOptions.autoInitialize is false

cleanupWebModelContext()

Tears down the adapter and restores document.modelContext to the captured native or polyfilled context. Closing the adapter aborts every registration made through document.modelContext while it was installed; re-initializing does not restore them. Tools registered directly on the underlying context, including declarative tools, survive.

document.modelContext Methods

After initialization, document.modelContext exposes these methods:

registerTool(tool, options?)

Registers a single tool. The tool name must be unique. Duplicate and invalid registrations reject the returned promise. The recommended unregistration path is options.signal (AbortSignal):

registerTool resolves undefined, matching current Chromium and the WebMCP spec. Use AbortSignal cleanup for dynamic tools.

getTools()

Returns WebMCP tool descriptors for all registered tools.

executeTool(tool, inputObject)

Execute a discovered descriptor with an input object. The result is serialized JSON.

listTools()

This MCP-B helper exposes MCP metadata. In-page WebMCP consumers should use getTools() and executeTool(tool, inputObject).

Prompt, resource, and lower-level MCP helpers are MCP-B extensions. Narrow document.modelContext with isBrowserMcpServer() from @mcp-b/webmcp-ts-sdk before using them. Install that package directly when importing the guard; do not add extensions to the standard global type.

BrowserMcpServer Tool Descriptor

The MCP-B runtime consumes outputSchema when a separately typed descriptor is passed to document.modelContext.registerTool(). Native and strict polyfill runtimes ignore the extra field.

| Property | Type | Required | Description |

| name | string | Yes | Unique identifier for the tool | | description | string | Yes | Natural language description of what the tool does | | inputSchema | InputSchema | No | JSON Schema describing accepted input. Defaults to { type: 'object', properties: {} } | | outputSchema | InputSchema | No | MCP-B helper metadata for output typing and structured MCP responses | | annotations | ToolAnnotations | No | Hints about tool behavior for LLM planners | | execute | (args) => unknown \| Promise | Yes | Function implementing the tool logic |

Tool Response Format

Tools may return an MCP CallToolResult object:

Configuration

WebModelContextInitOptions

| Option | Default | Description |

| transport | Auto-detect | Transport layer configuration (tab server and/or iframe) | | autoInitialize | true | Whether to auto-initialize on import |

Transport Configuration

The transport is auto-selected based on context:…

Description from the npm listing.

  • ai-agents
  • ai-assistant
  • ai-integration
  • ai-tools
  • anthropic
  • browser
  • browser-ai
  • chatgpt
  • chromium
  • claude
  • copilot
  • cursor
  • gemini
  • iife
  • llm
  • mcp
  • model-context-protocol
  • openai
  • polyfill
  • tool-registration

Where @mcp-b/global sits in the listing

Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

All npm2,248 listings · 113 pages · page 32, #8 (overall #628)
All npm: every listing in weekly downloads order
PNG SVG
MCP servers253 listings · 13 pages · page 4, #6 (overall #66)
MCP servers: every listing in weekly downloads order
PNG SVG

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@mcp-b/global weekly downloads on npm, last 90 days: 35,831 weekly downloads as of Oct 17, 2026, +212% over 90 days.@mcp-b/globalWeekly downloads on npm · Last 90 days35,831downloads / week+212% over 90 days020K40K60K80K100K120K140K160KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 20, 2026 – Oct 17, 2026 · 90 observations · Updated Oc…pluginstats.com
@mcp-b/global weekly downloads on npm, last 90 days: 35,831 weekly downloads as of Oct 17, 2026, +212% over 90 days.
PNG SVG

7/30/90-day growth

@mcp-b/global weekly downloads growth on npm: -71.2% over 7 days, +8.5% over 30 days, +212% over 90 days.@mcp-b/globalWeekly downloads growth on npm35,831downloads / week now7-day growth-88,679 weekly downloads-71.2%30-day growth+2,793 weekly downloads+8.5%90-day growth+24,342 weekly downloads+212%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
@mcp-b/global weekly downloads growth on npm: -71.2% over 7 days, +8.5% over 30 days, +212% over 90 days.
PNG SVG

Ranking history

@mcp-b/global npm ranking history: currently #628 (by weekly downloads).@mcp-b/globalnpm ranking · by weekly downloads · Last 90 days#628current rank#626#627#628#629#630Jul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18rankOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 17, 2026pluginstats.com
@mcp-b/global npm ranking history: currently #628 (by weekly downloads).
PNG SVG

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Recent observations

Full history (121)
Recent weekly downloads observations for @mcp-b/global
Date (UTC)Weekly downloadsChange vs. previous
35,831-15.5K
51,287-11.4K
62,689-20K
82,707-22.9K
105,6550
105,655-6.5K
112,165-12.3K
124,510-1.8K
126,309-8.1K
134,396-6.7K
141,053+4.2K
136,823-15.3K
152,151-2.8K
154,993—

Similar npm MCP servers plugins

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@mcp-b/global. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.