# mountebank

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

ID: Q978 · Revision: 1026

Type: software · License: MIT[^mountebank-license] · Status: active

Website: https://www.mbtest.dev/



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\.[^mountebank-readme][^mountebank-start]

## 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\.[^mountebank-start]

## 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\.[^mountebank-start][^mountebank-readme]

## 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\.[^mountebank-inject][^mountebank-cli]

## 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\.[^mountebank-license][^mountebank-readme]

## Substitution scope

mountebank can substitute for [WireMock](/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\.[^mountebank-start][^mountebank-inject][^wiremock-standalone]

## Capabilities and substitutions

### Network test doubles — supported

Built\-in HTTP, HTTPS, TCP and SMTP; other protocols may require extensions\.[^mountebank-readme][^mountebank-start]

Use case: HTTP and mixed\-protocol service virtualization · Platforms: Node\.js environments, Docker · Region: Version, plan and platform requirements apply

### JavaScript customization — limited

Opt\-in injection can execute Node\.js code and requires trusted definitions\.[^mountebank-inject]

Use case: HTTP and mixed\-protocol service virtualization · Platforms: Node\.js environments, Docker · Region: Version, plan and platform requirements apply

### Maintenance transition — limited

Current README describes organization and CI/CD migration affecting contribution merges\.[^mountebank-readme]

Use case: HTTP and mixed\-protocol service virtualization · Platforms: Node\.js environments, Docker · Region: Version, plan and platform requirements apply

### [Substitute for WireMock](/wiremock) — limited

Can replace HTTP dependency mocks with JSON\-configured imposters; native mappings and custom behavior require translation\.[^mountebank-start][^mountebank-inject][^wiremock-standalone]

Use case: HTTP and mixed\-protocol service virtualization · Platforms: Node\.js environments, Docker · Region: Version, plan and platform requirements apply

## References

[^mountebank-license]: [mountebank license](<https://github.com/mountebank-testing/mountebank/blob/master/LICENSE>) — MIT license (vendor; retrieved 2026-10-07T11:09:34Z)

[^mountebank-readme]: [mountebank repository](<https://github.com/mountebank-testing/mountebank/blob/master/README.md>) — Organization transition and core/extension protocol coverage (vendor; retrieved 2026-10-07T11:09:23Z)

[^mountebank-start]: [mountebank getting started](<https://www.mbtest.dev/docs/gettingStarted>) — Imposter ports, predicates and HTTP/TCP responses (vendor; retrieved 2026-10-07T11:09:34Z)

[^mountebank-inject]: [mountebank injection](<https://www.mbtest.dev/docs/api/injection>) — Opt\-in full Node\.js execution and validation limitations (vendor; retrieved 2026-10-07T11:09:23Z)

[^mountebank-cli]: [mountebank command\-line options](<https://www.mbtest.dev/docs/commandLine>) — Injection defaults and network allowlisting (vendor; retrieved 2026-10-07T11:09:23Z)

[^wiremock-standalone]: [WireMock standalone service](<https://wiremock.org/docs/standalone/>) — Java/JSON configuration and JAR/container distribution (vendor; retrieved 2026-10-07T11:08:23Z)

Source revision: https://substitutefor.net/entities/Q978?revision=1026
