Skip to content
PluginStats

@mcp-b/global weekly downloads statistics

By mcp-b (4 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 · Dec 6, 2026

@mcp-b/global has 183,844 recorded weekly downloads on npm, a decrease of 21.1% over the past 30 days, ranking #542 of 3,247 tracked listings.

Weekly downloads
183,844
Official API · Dec 5, 2026
7-day growth
-24.1%
-58.5K weekly downloads
30-day growth
-21.1%
-49.1K weekly downloads
90-day growth
+484%
+152.4K weekly downloads
Rank
#542
▼ 56 in 7 days

About @mcp-b/global

@mcp-b/global

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

npm version npm downloads License: MIT W3C

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?

FeatureBenefit
W3C StandardImplements the emerging WebMCP API specification
Drop-in IIFEAdd AI capabilities with a single <script> tag - no build step
Native Chromium SupportAuto-detects and uses native browser implementation when available
Dual TransportWorks with both same-window clients AND parent pages (iframe support)
Spec-Aware CompatibilityTracks the current WebMCP draft (document.modelContext, registerTool(tool, { signal }), and getTools()) and object-input executeTool(...).
Works with Any AIClaude, ChatGPT, Gemini, Cursor, Copilot, and any MCP client

Package Selection

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

Polyfill runtime

When no context is installed, @mcp-b/global calls installWebMCP() from @mcp-b/webmcp-polyfill. That package passes through the official W3C @w3c/webmcp-polyfill, which implements the core imperative API and frames.

@mcp-b/webmcp-polyfill adds the declarative API and its SubmitEvent extensions until the official polyfill 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 official 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)
<!DOCTYPE html>
<html>
  <head>
    <script src="https://unpkg.com/@mcp-b/global@6/dist/index.iife.js"></script>
  </head>
  <body>
    <h1>My AI-Powered App</h1>

    <script>
      void document.modelContext
        .registerTool({
          name: 'get-page-title',
          description: 'Get the current page title',
          inputSchema: { type: 'object', properties: {} },
          async execute() {
            return {
              content: [{ type: 'text', text: document.title }],
            };
          },
        })
        .catch(console.error);
    </script>
  </body>
</html>
  • Self-contained - All dependencies bundled
  • Auto-initializes - document.modelContext ready immediately
  • No build step - Just drop it in your HTML
Via ES Module
<script type="module">
  import '@mcp-b/global';
  await document.modelContext.registerTool({/* your tool */});
</script>

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
npm install @mcp-b/global
import '@mcp-b/global';

await document.modelContext.registerTool({/* your tool */});

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.

window.__webModelContextOptions = { autoInitialize: false };

const { initializeWebModelContext } = await import('@mcp-b/global');

initializeWebModelContext({
  transport: {
    tabServer: { allowedOrigins: ['https://example.com'] },
  },
});

await document.modelContext.registerTool({/* your tool */});

Behavior:…

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

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

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

Adoption over time

@mcp-b/global weekly downloads on npm, last 90 days: 183,844 weekly downloads as of Dec 5, 2026, +484% over 90 days.@mcp-b/globalWeekly downloads on npm · Last 90 days183,844downloads / week+484% over 90 days050K100K150K200K250K300KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@mcp-b/global weekly downloads on npm, last 90 days: 183,844 weekly downloads as of Dec 5, 2026, +484% over 90 days.

7/30/90-day growth

@mcp-b/global weekly downloads growth on npm: -24.1% over 7 days, -21.1% over 30 days, +484% over 90 days.@mcp-b/globalWeekly downloads growth on npm183,844downloads / week now7-day growth-58,454 weekly downloads-24.1%30-day growth-49,140 weekly downloads-21.1%90-day growth+152,389 weekly downloads+484%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@mcp-b/global weekly downloads growth on npm: -24.1% over 7 days, -21.1% over 30 days, +484% over 90 days.

Ranking history

@mcp-b/global npm ranking history: currently #542 (by weekly downloads).@mcp-b/globalnpm ranking · by weekly downloads · Last 90 days#542current rank#460#480#500#520#540#560#580#600#620#640Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 43 observations · Updated Dec 5, 2026pluginstats.com
@mcp-b/global npm ranking history: currently #542 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 28, #2 (overall #542)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 3, #14 (overall #54)
MCP servers: every listing in weekly downloads order

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.

Each band is one page of 20. Weekly downloads on a linear 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.

Recent observations

Full history (170)
Recent weekly downloads observations for @mcp-b/global
Date (UTC)Weekly downloadsChange vs. previous
183,844-20.7K
204,569+5K
199,614-1.6K
201,192-4.3K
205,447-22.4K
227,840-4.7K
232,524-9.8K
242,298-11K
253,335-5.2K
258,532+5.1K
253,395+6.7K
246,690+3.8K
242,914-9K
251,903—

Similar npm MCP servers plugins

All 20 @mcp-b/global alternatives

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 Dec 6, 2026. See the methodology.