Skip to content
PluginStats

@mcp-b/webmcp-ts-sdk weekly downloads statistics

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

WebMCP browser adapter extending the upstream API with MCP capabilities

View on npm Fresh · Oct 18, 2026

@mcp-b/webmcp-ts-sdk has 48,038 recorded weekly downloads on npm, an increase of 26.6% over the past 30 days, ranking #600 of 2,322 tracked listings.

Weekly downloads
48,038
Official API · Oct 18, 2026
7-day growth
-57.1%
-64.1K weekly downloads
30-day growth
+26.6%
+10.1K weekly downloads
90-day growth
+140%
+28K weekly downloads
Rank
#600
Among tracked npm listings

About @mcp-b/webmcp-ts-sdk

@mcp-b/webmcp-ts-sdk

A thin WebMCP adapter over the official MCP TypeScript SDK v2.

npm version npm downloads License: MIT

BrowserMcpServer composes and exposes the official v2 McpServer. Use this package when you need direct control over the browser adapter. Most applications should use @mcp-b/global.

Installation

pnpm add @mcp-b/webmcp-ts-sdk @mcp-b/transports

Example

import { TabServerTransport } from '@mcp-b/transports';
import { BrowserMcpServer } from '@mcp-b/webmcp-ts-sdk';

const server = new BrowserMcpServer({ name: 'catalog-app', version: '1.0.0' });

await server.connect(
  new TabServerTransport({
    allowedOrigins: ['https://shop.example'],
  })
);

const controller = new AbortController();

await server.registerTool(
  {
    name: 'echo',
    description: 'Echo a message',
    inputSchema: {
      type: 'object',
      properties: { message: { type: 'string' } },
      required: ['message'],
    },
    async execute({ message }) {
      return { content: [{ type: 'text', text: `Echo: ${String(message)}` }] };
    },
  },
  { signal: controller.signal }
);

controller.abort();

An AbortSignal owns each WebMCP tool registration. Aborting it removes the local MCP registration and its native mirror.

What the adapter owns

  • WebMCP registerTool(), getTools(), ontoolchange, ontoolactivated, ontoolcancel, and descriptor-based executeTool()
  • Native document.modelContext registration mirroring and tool reconciliation
  • MCP-B registerPrompt(), registerResource(), and listTools() extensions
  • MCP transport lifecycle through connect() and close()

The official McpServer owns MCP registration, validation, and protocol behavior. Access it through server.mcpServer for official SDK APIs. Register multi-round tools directly on server.mcpServer; WebMCP descriptor callbacks are single-round when exposed over MCP.

Prompt and resource discovery also belongs to MCP. Use a connected MCP client instead of adapter-side list, read, or get methods.

Native integration

The constructor uses document.modelContext, installing the bundled @mcp-b/webmcp-polyfill (about 28 KB minified) when needed, and delegates browser discovery, execution, and access checks to that context. Without a WebMCP context (no document, or an insecure page), the server serves MCP only. The document property keeps exposing the underlying context; @mcp-b/global installs the extended API and connects its default transport.

To select a context explicitly, pass it as native, then reconcile its current tools:

const native = document.modelContext;
if (!native) throw new Error('Install a WebMCP runtime first');
const server = new BrowserMcpServer({ name: 'catalog-app', version: '1.0.0' }, { native });

await server.syncNativeTools();

syncNativeTools() resolves after reconciliation, and later native toolchange events reconcile again. The package reference covers frame scope, native result conversion, lifecycle events, and the MCP-only mode.

Schema boundary

BrowserMcpServer accepts JSON Schema and Standard JSON Schema input metadata. The official MCP server validates input and outputSchema on MCP client calls only; direct executeTool() calls and native mirrors invoke the browser callback without that validation, so validate in the callback when both paths can call a tool. The @mcp-b/react-webmcp hook already does this.

MCP requires an object-root tool input schema. An array-root WebMCP tool remains available through WebMCP but is omitted from MCP discovery. Direct registrations on server.mcpServer use the official SDK's schema APIs; Zod 4.2 or newer is supported, and Zod 3 is unsupported. See the package reference for the contracts and schemas and structured output for examples.

Exports

  • BrowserMcpServer, BrowserMcpServerOptions, isBrowserMcpServer
  • PromptDescriptor, ResourceDescriptor, RegistrationHandle
  • ModelContext, ModelContextWithExtensions, RegisteredTool, ToolDescriptor, ToolDescriptorFromSchema, ToolListItem, InputSchema, and the other MCP-B descriptor and inference types
  • CallToolResult, ContentBlock, TextContent, JsonObject, JsonValue, re-exported from @modelcontextprotocol/server
  • WebMCP, the upstream namespace re-exported through @mcp-b/webmcp-polyfill, which also brings the polyfill's SubmitEvent and ModelContext declarations into scope
  • @mcp-b/webmcp-ts-sdk/schema: normalizeInputSchema(), normalizeToolResponse(), isMcpStandardSchema(), ToolInputSchema, NormalizedInputSchema

Import MCP clients, servers, schemas, transports, and validators from the official @modelcontextprotocol/* packages.

Related documentation

License

MIT. See LICENSE.

Description from the npm listing.

  • adapter
  • ai-agents
  • ai-integration
  • anthropic
  • browser
  • chatgpt
  • claude
  • copilot
  • cursor
  • document-modelcontext
  • dynamic-tools
  • gemini
  • llm
  • mcp
  • mcp-client
  • mcp-server
  • model-context-protocol
  • openai
  • sdk
  • 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/webmcp-ts-sdk weekly downloads on npm, last 90 days: 48,038 weekly downloads as of Oct 18, 2026, +140% over 90 days.@mcp-b/webmcp-ts-sdkWeekly downloads on npm · Last 90 days48,038downloads / week+140% over 90 days020K40K60K80K100K120K140K160KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
@mcp-b/webmcp-ts-sdk weekly downloads on npm, last 90 days: 48,038 weekly downloads as of Oct 18, 2026, +140% over 90 days.

7/30/90-day growth

@mcp-b/webmcp-ts-sdk weekly downloads growth on npm: -57.1% over 7 days, +26.6% over 30 days, +140% over 90 days.@mcp-b/webmcp-ts-sdkWeekly downloads growth on npm48,038downloads / week now7-day growth-64,069 weekly downloads-57.1%30-day growth+10,095 weekly downloads+26.6%90-day growth+28,038 weekly downloads+140%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@mcp-b/webmcp-ts-sdk weekly downloads growth on npm: -57.1% over 7 days, +26.6% over 30 days, +140% over 90 days.

Ranking history

@mcp-b/webmcp-ts-sdk npm ranking history: currently #600 (by weekly downloads).@mcp-b/webmcp-ts-sdknpm ranking · by weekly downloads · Last 90 days#600current rank#595#600#605#610#615#620#625#630Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
@mcp-b/webmcp-ts-sdk npm ranking history: currently #600 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 30, #20 (overall #600)
All npm: every listing in weekly downloads order

Listing placement

MCP servers277 listings · 14 pages · page 4, #5 (overall #65)
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 (122)
Recent weekly downloads observations for @mcp-b/webmcp-ts-sdk
Date (UTC)Weekly downloadsChange vs. previous
48,038+11.9K
36,106-15.4K
51,550-11.3K
62,879-20.1K
82,973-23K
105,9950
105,995-6.1K
112,107-12.2K
124,262-1.7K
125,967-7.8K
133,795-6.4K
140,228+4.5K
135,743-15.2K
150,958—

Similar npm MCP servers plugins

All 20 @mcp-b/webmcp-ts-sdk 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/webmcp-ts-sdk. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.