Skip to content
PluginStats

mockserver-node weekly downloads statistics

By mock-server (2 listings) · npm · MCP servers

Node.js module and Grunt plugin to start and stop MockServer

View on npm Stale · Oct 18, 2026

mockserver-node has 5,305 recorded weekly downloads on npm, ranking #1131 of 2,391 tracked listings.

Weekly downloads
5,305
Official API · Oct 18, 2026
7-day growth
—
Insufficient history
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#1131
Among tracked npm listings

About mockserver-node

mockserver-node

Node module and grunt plugin to start and stop MockServer and MockServer proxy

Build status

NPM

Community

  • Roadmap:                     <a href="https://github.com/orgs/mock-server/projects/1"><img height="20px" src="https://mock-server.com/images/GitHub_Logo-md.png" alt="GitHub Project"></a>
  • Feature Requests:   <a href="https://github.com/mock-server/mockserver-monorepo/issues"><img height="20px" src="https://mock-server.com/images/GitHub_Logo-md.png" alt="Github Issues"></a>
  • Issues / Bugs:           <a href="https://github.com/mock-server/mockserver-monorepo/issues"><img height="20px" src="https://mock-server.com/images/GitHub_Logo-md.png" alt="Github Issues"></a>
  • Discussions:               <a href="https://github.com/mock-server/mockserver-monorepo/discussions"><img height="20px" src="https://mock-server.com/images/GitHub_Logo-md.png" alt="GitHub Discussions"></a>

Getting Started

This node module can be used to start and stop MockServer and the MockServer proxy as a node module or as a Grunt plugin. More information about the MockServer can be found at mock-server.com.

You may install this plugin / node module with the following command:

npm install mockserver-node --save-dev

Run without Java or Docker (binary bundle)

The mockserver command downloads a self-contained MockServer bundle (a trimmed Java runtime + the server + a launcher) for your platform on first use and runs it — no Java installation and no Docker required:

npx -p mockserver-node mockserver run -p 1080
npx -p mockserver-node mockserver --openapi ./petstore.yaml -p 1080
npx -p mockserver-node mockserver --help

The bundle is fetched from the MockServer GitHub Release, verified against its published SHA-256, and cached per-user. Environment overrides:

VariablePurpose
MOCKSERVER_BINARY_BASE_URLmirror host for the release assets (corporate / air-gapped)
MOCKSERVER_BINARY_CACHEcache directory (default: per-OS user cache)
MOCKSERVER_SKIP_BINARY_DOWNLOADfail instead of downloading (use with a pre-seeded cache)
NODE_EXTRA_CA_CERTSextra CA bundle for TLS-inspecting proxies (honoured by Node)
HTTPS_PROXY / HTTP_PROXYused when an https/http proxy agent module is installed (otherwise set a mirror)

The SHA-256 is co-hosted with the archive, so it verifies download integrity (no corruption/truncation) but not provenance; a future release will add cosign signatures for provenance.

The bundle exposes the full MockServer CLI (run, proxy, openapi, version, help). This is the reference implementation of the on-demand-binary pattern for the MockServer client libraries.

Node Module

To start or stop the MockServer from any Node.js code you need to import this module using require('mockserver-node') as follows:

var mockserver = require('mockserver-node');

The package includes TypeScript typings, which use Node's own types and so need @types/node in the project. It is a CommonJS module, so in TypeScript import it with import mockserver = require('mockserver-node'), or with import mockserver from 'mockserver-node' when esModuleInterop is on. The option types are mockserver.StartServerOptions and mockserver.StopServerOptions.

From an ES module (.mjs, .mts, or a package with "type": "module") named imports work, import { start_mockserver, stop_mockserver } from 'mockserver-node', as do import * as and the default import, import mockserver from 'mockserver-node'. A module other than the package itself can be imported with or without its extension: import { downloadJar } from 'mockserver-node/downloadJar'.

The package's exports map names every path that can be imported or required: the package itself, index, downloadJar and downloadBinary, each with and without .js, and package.json. Any other path inside the package fails with ERR_PACKAGE_PATH_NOT_EXPORTED. The mockserver command and the Grunt tasks (grunt.loadNpmTasks('mockserver-node')) are found by their files, not through the map, and work as before.

Then you can use either the start_mockserver or stop_mockserver functions as follows:

mockserver.start_mockserver({
                serverPort: 1080,
                trace: true
            });

// do something

mockserver.stop_mockserver({
                serverPort: 1080
            });

The MockServer uses port unification to support HTTP, HTTPS, SOCKS, HTTP CONNECT, Port Forwarding Proxying on the same port. A client can then connect to the single port with both HTTP and HTTPS as the socket will automatically detected SSL traffic and decrypt it when required.

Requirements

start_mockserver runs MockServer with the java command, so Java 17 or later must be installed and its bin directory must be on the PATH of the Node.js process. JAVA_HOME is not used, and there is no option for the location of java. The mockserver command described above needs no Java.

When a start fails

start_mockserver returns a promise. It is rejected with an Error, and the same message is printed to stderr, when:…

Description from the npm listing.

  • mockserver
  • mock
  • HTTP
  • HTTPS
  • testing
  • proxy
  • api
  • mcp
  • ai

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

mockserver-node weekly downloads on npm, last 90 days: 5,305 weekly downloads as of Oct 18, 2026.mockserver-nodeWeekly downloads on npm · Last 90 days5,305downloads / week4.6K4.8K5K5.2K5.4K5.6K5.8K6KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekOct 18, 2026 – Oct 18, 2026 · 1 observations · Updated Oct 18, 2026pluginstats.com
mockserver-node weekly downloads on npm, last 90 days: 5,305 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

mockserver-node weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.mockserver-nodeWeekly downloads growth on npm5,305downloads / week now7-day growthinsufficient historyInsufficient history30-day growthinsufficient historyInsufficient history90-day growthinsufficient historyInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
mockserver-node weekly downloads growth on npm: 7-day growth unavailable, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

mockserver-node npm ranking history: currently #1131 (by weekly downloads).mockserver-nodenpm ranking · by weekly downloads · Last 90 days#1131current rank#1129#1130#1131#1132#1133Jul 23Aug 7Aug 22Sep 6Sep 21Oct 6Oct 21rankOct 21, 2026 – Oct 21, 2026 · 1 observations · Updated Oct 18, 2026pluginstats.com
mockserver-node npm ranking history: currently #1131 (by weekly downloads).

Listing placement

All npm2,389 listings · 120 pages · 1,195 shown · page 58, #1 (overall #1,141)
All npm: every listing in weekly downloads order

Listing placement

MCP servers300 listings · 15 pages · page 12, #12 (overall #232)
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 (1)
Recent weekly downloads observations for mockserver-node
Date (UTC)Weekly downloadsChange vs. previous
5,305—

Similar npm MCP servers plugins

All 20 mockserver-node 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/mockserver-node. First seen Oct 21, 2026; last successful collection Oct 21, 2026. See the methodology.