substitutefor

software · Q978

mountebank

Multi-protocol network test doubles using JSON imposters, predicates and controlled responses.

Suggest a correction

Overview

mountebank is an MIT-licensed service-virtualization tool that exposes configurable test doubles over network protocols. Its imposters can return controlled responses, match requests and support proxy-based recording, with additional protocols available through community extensions.[2][3]

Network-facing test doubles

An imposter is a simulated service listening on its own port, separate from mountebank's administration port. Tests create imposters through a JSON API and define stubs with predicates and responses. Without predicates, a stub matches broadly; adding conditions narrows which interaction receives the configured response. This model lets applications connect to a substitute endpoint without requiring the application's implementation language to match the mocking tool.[3]

Built-in and extended coverage

The documentation identifies HTTP, HTTPS, TCP and SMTP as built-in protocols. The repository lists further protocols implemented either directly or through community extensions, so that list should not be read as uniform support in the base installation. Binary TCP responses can be represented using encoded data, which is useful for testing a network dependency whose wire format is not HTTP.[2][3]

Custom behavior and execution risk

JavaScript injection supports cases beyond built-in predicates and responses, but is disabled unless explicitly enabled. Injected functions have access to the Node.js runtime and are not validated during stub creation; faulty code can crash the process. The project recommends restricting network access when injection is enabled. This is executable customization, not a sandbox for accepting arbitrary mock definitions from untrusted users.[4][5]

Licensing and project transition

mountebank uses the MIT license. The current repository has moved to the mountebank-testing organization and its README describes a transition to collaborative maintenance, including CI/CD migration. It cautions that merging contributions depends on completing that infrastructure work. That notice is a maintenance consideration rather than proof that the software has been discontinued, and release expectations should be checked before depending on a pending fix.[1][2]

Substitution scope

mountebank can substitute for WireMock for externally hosted HTTP test doubles when its JSON imposter model fits the suite, while built-in TCP and SMTP support may broaden a mixed-protocol test setup. This does not establish compatibility with WireMock mappings or equal support across extensions. Migrating tests requires reviewing predicate semantics, response sequences and whether custom behavior introduces executable-code privileges.[3][4][6]

Capabilities & limitations

Network test doubles

supported

Built-in HTTP, HTTPS, TCP and SMTP; other protocols may require extensions.[2][3]

HTTP and mixed-protocol service virtualization · Node.js environments, Docker · Version, plan and platform requirements apply

2 sources · check evidence
https://www.mbtest.dev/docs/gettingStarted

Imposter ports, predicates and HTTP/TCP responses

vendor · checked 2026-10-07
https://github.com/mountebank-testing/mountebank/blob/master/README.md

Organization transition and core/extension protocol coverage

vendor · checked 2026-10-07

JavaScript customization

limited

Opt-in injection can execute Node.js code and requires trusted definitions.[4]

HTTP and mixed-protocol service virtualization · Node.js environments, Docker · Version, plan and platform requirements apply

1 source · check evidence
https://www.mbtest.dev/docs/api/injection

Opt-in full Node.js execution and validation limitations

vendor · checked 2026-10-07

Maintenance transition

limited

Current README describes organization and CI/CD migration affecting contribution merges.[2]

HTTP and mixed-protocol service virtualization · Node.js environments, Docker · Version, plan and platform requirements apply

1 source · check evidence
https://github.com/mountebank-testing/mountebank/blob/master/README.md

Organization transition and core/extension protocol coverage

vendor · checked 2026-10-07

Can substitute for

These are products or services this entry can replace. Check the task and limitations for each comparison.

WireMock for HTTP and mixed-protocol service virtualization

limited

Can replace HTTP dependency mocks with JSON-configured imposters; native mappings and custom behavior require translation.[3][4][6]

Node.js environments, Docker · Version, plan and platform requirements apply

References

  1. mountebank license

    MIT license

    vendor · retrieved 2026-10-07
  2. mountebank repository

    Organization transition and core/extension protocol coverage

    vendor · retrieved 2026-10-07
  3. mountebank getting started

    Imposter ports, predicates and HTTP/TCP responses

    vendor · retrieved 2026-10-07
  4. mountebank injection

    Opt-in full Node.js execution and validation limitations

    vendor · retrieved 2026-10-07
  5. mountebank command-line options

    Injection defaults and network allowlisting

    vendor · retrieved 2026-10-07
  6. WireMock standalone service

    Java/JSON configuration and JAR/container distribution

    vendor · retrieved 2026-10-07

Discussion & disputes

Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.

No discussion yet.

Sign in with an active account to join the discussion.

Revision history

Open a revision to read an earlier version of this article.

RevisionTimestampEdit summary
10262026-10-13 17:41:01/* wbeditentity-create-item:0| */ sf:3657c29c-3eb3-43ad-959c-3b4fbff670ac:v1 | Add mountebank with cited product identity, workflow and portability boundaries; documentation research only. | attribution: /proposals/3657c29c-3eb3-43ad-959c-3b4fbff670ac