Skip to content
PluginStats

usewebmcp weekly downloads statistics

By WebMCP-org · npm · MCP servers

Standalone React hooks for strict core WebMCP tool registration with document.modelContext

View on npm Fresh · Dec 6, 2026

usewebmcp has 21,117 recorded weekly downloads on npm, an increase of 93.5% over the past 30 days, ranking #1023 of 3,247 tracked listings.

Weekly downloads
21,117
Official API · Dec 5, 2026
7-day growth
+11.2%
+2.1K weekly downloads
30-day growth
+93.5%
+10.2K weekly downloads
90-day growth
+289%
+15.7K weekly downloads
Rank
#1023
▲ 22 in 7 days

About usewebmcp

usewebmcp

Expose React state and actions as WebMCP tools, with automatic registration and cleanup.

'use client';

import { useState } from 'react';
import { useWebMCP } from 'usewebmcp';

export function Counter() {
  const [count, setCount] = useState(0);

  useWebMCP({
    name: 'get_count',
    description: 'Get the current counter value',
    annotations: { readOnlyHint: true },
    execute: () => ({ count }),
  });

  return (
    <button type="button" onClick={() => setCount((value) => value + 1)}>
      Count: {count}
    </button>
  );
}

Each agent call reads the latest committed count.

API reference · Framework setup

Install and provide a runtime

In a React 18 or 19 application:

pnpm add usewebmcp

The hook reads document.modelContext when it registers and does not wait for a runtime installed later. For browsers without it, load the official W3C polyfill before rendering tools:

pnpm add @w3c/webmcp-polyfill
import '@w3c/webmcp-polyfill/auto';

Use @mcp-b/global for MCP server features. Browser types come from the Community Group's official webmcp-types.

Input schemas

usewebmcp accepts the JSON Schema object from the WebMCP API and infers TypeScript input types from it. The schema is metadata; the hook does not validate arguments. Validate in your handler when needed. Local calls to execute() are typed but do not run a validator.

Zod and other Standard Schema validators are rejected. Passing one is a type error, and at runtime the hook sets registrationError without registering the tool. For Standard Schema validation, output schemas, MCP annotations, MCP result formatting, or prompt and resource hooks, use @mcp-b/react-webmcp.

State and lifecycle

  • state exposes isExecuting, lastResult, error, and executionCount.
  • execute(input, options?) calls the handler locally. reset() clears state without cancelling work.
  • isSupported reports API availability; registrationError reports setup failures separately from state.error.
  • A rejected registration, such as a duplicate tool name, also logs one console.warn naming the tool.
  • enabled: false unregisters the tool while keeping local execution available.
  • Local and agent failures reject. Agents receive null when the handler returns undefined; any other result must be JSON-serializable, or the agent call fails and state.error records why.
  • Handlers receive (input, { signal }) for cancellation, which always rejects.
  • The hook commits once after mount when isSupported becomes true. Later successful registrations and unrelated renders add no commits.
  • The package preserves 'use client' and supports React 18/19, SSR, and StrictMode.

See the reference for metadata updates, cancellation, and raw result handling. The usewebmcp/internal entry exists for @mcp-b/react-webmcp and can change in any release.

Upgrading from 5.x

To keep Standard Schema validation, outputSchema, MCP annotations, InferOutput, or automatic MCP responses, import useWebMCP from @mcp-b/react-webmcp instead. The changelog lists every breaking change.

Development

From the repository root after pnpm build:

pnpm test:hooks
CHROME_BIN=/path/to/chrome-canary pnpm --filter usewebmcp test:native

Harness details. Prior art: GoogleChromeLabs/use-webmcp-tool.

License

MIT

Description from the npm listing.

  • ai
  • assistant
  • browser
  • hooks
  • mcp
  • model-context-protocol
  • react
  • react-hooks
  • tools
  • usewebmcp

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

usewebmcp weekly downloads on npm, last 90 days: 21,117 weekly downloads as of Dec 5, 2026, +289% over 90 days.usewebmcpWeekly downloads on npm · Last 90 days21,117downloads / week+289% over 90 days05K10K15K20K25K30KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
usewebmcp weekly downloads on npm, last 90 days: 21,117 weekly downloads as of Dec 5, 2026, +289% over 90 days.

7/30/90-day growth

usewebmcp weekly downloads growth on npm: +11.2% over 7 days, +93.5% over 30 days, +289% over 90 days.usewebmcpWeekly downloads growth on npm21,117downloads / week now7-day growth+2,131 weekly downloads+11.2%30-day growth+10,204 weekly downloads+93.5%90-day growth+15,685 weekly downloads+289%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
usewebmcp weekly downloads growth on npm: +11.2% over 7 days, +93.5% over 30 days, +289% over 90 days.

Ranking history

usewebmcp npm ranking history: currently #1023 (by weekly downloads).usewebmcpnpm ranking · by weekly downloads · Last 90 days#1023current rank#900#950#1000#1050#1100#1150Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 11, 2026 – Dec 6, 2026 · 24 observations · Updated Dec 5, 2026pluginstats.com
usewebmcp npm ranking history: currently #1023 (by weekly downloads).

Listing placement

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

Listing placement

MCP servers468 listings · 24 pages · page 10, #5 (overall #185)
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 (142)
Recent weekly downloads observations for usewebmcp
Date (UTC)Weekly downloadsChange vs. previous
21,117-911
22,028+1.2K
20,863+1.4K
19,452+1.6K
17,890-436
18,326-164
18,490-496
18,986-333
19,319-1.7K
20,984-764
21,748-1.6K
23,343+425
22,918+57
22,861—

Similar npm MCP servers plugins

All 20 usewebmcp 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/usewebmcp. First seen Nov 11, 2026; last successful collection Dec 6, 2026. See the methodology.