Skip to content
PluginStats

@modelcontextprotocol/node weekly downloads statistics

By modelcontextprotocol (8 listings) · npm · MCP servers

Model Context Protocol implementation for TypeScript - Node.js middleware

View on npm Fresh · Dec 6, 2026

@modelcontextprotocol/node has 9,741,729 recorded weekly downloads on npm, an increase of 47.3% over the past 30 days, ranking #145 of 3,247 tracked listings.

Weekly downloads
9,741,729
Official API · Dec 5, 2026
7-day growth
+12.9%
+1.1M weekly downloads
30-day growth
+47.3%
+3.1M weekly downloads
90-day growth
+722%
+8.6M weekly downloads
Rank
#145
▼ 2 in 7 days

About @modelcontextprotocol/node

@modelcontextprotocol/node

Node.js adapters for the MCP TypeScript server SDK.

This package is a thin Node.js integration layer for @modelcontextprotocol/server. It provides a Streamable HTTP transport that works with Node’s IncomingMessage / ServerResponse.

For web‑standard runtimes (Cloudflare Workers, Deno, Bun, etc.), use WebStandardStreamableHTTPServerTransport from @modelcontextprotocol/server directly.

Install

npm install @modelcontextprotocol/server @modelcontextprotocol/node

Exports

  • NodeStreamableHTTPServerTransport
  • StreamableHTTPServerTransportOptions (type alias for WebStandardStreamableHTTPServerTransportOptions)
  • toNodeHandler(handler, opts?) — adapt a web-standard { fetch } MCP handler to a Node (req, res, parsedBody?) handler
  • hostHeaderValidation(allowedHostnames) / localhostHostValidation() — Host header guards for hand-wired node:http servers
  • originValidation(allowedOriginHostnames) / localhostOriginValidation() — Origin header guards for hand-wired node:http servers
  • ToNodeHandlerOptions, FetchLikeMcpHandler, NodeMcpRequestHandler (types for toNodeHandler)
  • toWebRequest(req, parsedBody?, opts?) — the Node IncomingMessage → web-standard Request conversion toNodeHandler performs internally, exported on its own (for example to feed isLegacyRequest() from a hand-wired (req, res) handler)
  • ToWebRequestOptions (options type for toWebRequest)
  • NodeIncomingMessageLike, NodeServerResponseLike (structural Node request/response shapes)

Usage

Express + Streamable HTTP
import { createMcpExpressApp } from '@modelcontextprotocol/express';
import { NodeStreamableHTTPServerTransport } from '@modelcontextprotocol/node';
import { McpServer } from '@modelcontextprotocol/server';

const app = createMcpExpressApp();

app.post('/mcp', async (req, res) => {
    // Stateless example: create a server and a transport per request.
    const server = new McpServer({ name: 'my-server', version: '1.0.0' });
    const transport = new NodeStreamableHTTPServerTransport({ sessionIdGenerator: undefined });
    await server.connect(transport);

    // If you use Express JSON parsing, pass the pre-parsed body to avoid re-reading the stream.
    await transport.handleRequest(req, res, req.body);
});
Node.js http server

Plain node:http has no middleware chain, so bind loopback explicitly and compose the Host/Origin guards in front of the transport — matching the defaults the framework app factories (createMcpExpressApp, createMcpHonoApp, createMcpFastifyApp) apply for you. The guards answer rejected requests with 403 themselves and return false, so the handler must not touch the request further.

import { createServer } from 'node:http';
import { localhostHostValidation, localhostOriginValidation, NodeStreamableHTTPServerTransport } from '@modelcontextprotocol/node';
import { McpServer } from '@modelcontextprotocol/server';

const validateHost = localhostHostValidation();
const validateOrigin = localhostOriginValidation();

createServer(async (req, res) => {
    if (!validateHost(req, res) || !validateOrigin(req, res)) return;
    const server = new McpServer({ name: 'my-server', version: '1.0.0' });
    const transport = new NodeStreamableHTTPServerTransport({ sessionIdGenerator: undefined });
    await server.connect(transport);
    await transport.handleRequest(req, res);
}).listen(3000, '127.0.0.1');

Description from the npm listing.

  • modelcontextprotocol
  • mcp
  • node.js
  • middleware

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

@modelcontextprotocol/node weekly downloads on npm, last 90 days: 9,741,729 weekly downloads as of Dec 5, 2026, +722% over 90 days.@modelcontextprotocol/nodeWeekly downloads on npm · Last 90 days9,741,729downloads / week+722% over 90 days02M4M6M8M10M12MSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
@modelcontextprotocol/node weekly downloads on npm, last 90 days: 9,741,729 weekly downloads as of Dec 5, 2026, +722% over 90 days.

7/30/90-day growth

@modelcontextprotocol/node weekly downloads growth on npm: +12.9% over 7 days, +47.3% over 30 days, +722% over 90 days.@modelcontextprotocol/nodeWeekly downloads growth on npm9,741,729downloads / week now7-day growth+1,116,433 weekly downlo…+12.9%30-day growth+3,129,808 weekly downlo…+47.3%90-day growth+8,556,447 weekly downlo…+722%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
@modelcontextprotocol/node weekly downloads growth on npm: +12.9% over 7 days, +47.3% over 30 days, +722% over 90 days.

Ranking history

@modelcontextprotocol/node npm ranking history: currently #145 (by weekly downloads).@modelcontextprotocol/nodenpm ranking · by weekly downloads · Last 90 days#145current rank#40#60#80#100#120#140#160#180Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 17, 2026 – Dec 6, 2026 · 45 observations · Updated Dec 5, 2026pluginstats.com
@modelcontextprotocol/node npm ranking history: currently #145 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,083 shown · page 8, #5 (overall #145)
All npm: every listing in weekly downloads order

Listing placement

MCP servers468 listings · 24 pages · page 1, #7 (overall #7)
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 (592)
Recent weekly downloads observations for @modelcontextprotocol/node
Date (UTC)Weekly downloadsChange vs. previous
9,741,729-846.5K
10,588,239+477.3K
10,110,902+570.8K
9,540,075+392.5K
9,147,602+298.6K
8,849,015+170.6K
8,678,389+53.1K
8,625,296+8K
8,617,292-142.9K
8,760,225-185.2K
8,945,433-106.9K
9,052,360+10.5K
9,041,845+5.4K
9,036,449—

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/@modelcontextprotocol/node. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.