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 Fresh · Dec 6, 2026

mockserver-node has 20,367 recorded weekly downloads on npm, an increase of 17.1% over the past 30 days, ranking #1032 of 3,247 tracked listings.

Weekly downloads
20,367
Official API · Dec 5, 2026
7-day growth
-55.8%
-25.7K weekly downloads
30-day growth
+17.1%
+3K weekly downloads
90-day growth
+110%
+10.7K weekly downloads
Rank
#1032
▼ 253 in 7 days

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: 20,367 weekly downloads as of Dec 5, 2026, +110% over 90 days.mockserver-nodeWeekly downloads on npm · Last 90 days20,367downloads / week+110% over 90 days010K20K30K40K50KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
mockserver-node weekly downloads on npm, last 90 days: 20,367 weekly downloads as of Dec 5, 2026, +110% over 90 days.

7/30/90-day growth

mockserver-node weekly downloads growth on npm: -55.8% over 7 days, +17.1% over 30 days, +110% over 90 days.mockserver-nodeWeekly downloads growth on npm20,367downloads / week now7-day growth-25,703 weekly downloads-55.8%30-day growth+2,970 weekly downloads+17.1%90-day growth+10,680 weekly downloads+110%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
mockserver-node weekly downloads growth on npm: -55.8% over 7 days, +17.1% over 30 days, +110% over 90 days.

Ranking history

mockserver-node npm ranking history: currently #1032 (by weekly downloads).mockserver-nodenpm ranking · by weekly downloads · Last 90 days#1032current rank#750#800#850#900#950#1000#1050#1100#1150Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 21, 2026 – Dec 6, 2026 · 39 observations · Updated Dec 5, 2026pluginstats.com
mockserver-node npm ranking history: currently #1032 (by weekly downloads).

Listing placement

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

Listing placement

MCP servers468 listings · 24 pages · page 10, #8 (overall #188)
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 (156)
Recent weekly downloads observations for mockserver-node
Date (UTC)Weekly downloadsChange vs. previous
20,367-2.8K
23,157-7.1K
30,246-7K
37,280-5.1K
42,428-1.6K
44,055-298
44,353-1.7K
46,070-787
46,857+4.1K
42,755-615
43,370+492
42,878+563
42,315+2K
40,278—

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