{"schemaVersion":"1.0","record":{"label":"mountebank","description":"Multi-protocol network test doubles using JSON imposters, predicates and controlled responses.","aliases":[],"kind":"software","website":"https://www.mbtest.dev/","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.","license":"MIT","lifecycle":"active","example":false,"features":[{"name":"Network test doubles","status":"supported","detail":"Built-in HTTP, HTTPS, TCP and SMTP; other protocols may require extensions.","useCase":"HTTP and mixed-protocol service virtualization","platforms":["Node.js environments","Docker"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://www.mbtest.dev/docs/gettingStarted","locator":"Imposter ports, predicates and HTTP/TCP responses","retrievedAt":"2026-10-07T11:09:34Z","kind":"vendor"},{"url":"https://github.com/mountebank-testing/mountebank/blob/master/README.md","locator":"Organization transition and core/extension protocol coverage","retrievedAt":"2026-10-07T11:09:23Z","kind":"vendor"}]},{"name":"JavaScript customization","status":"limited","detail":"Opt-in injection can execute Node.js code and requires trusted definitions.","useCase":"HTTP and mixed-protocol service virtualization","platforms":["Node.js environments","Docker"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://www.mbtest.dev/docs/api/injection","locator":"Opt-in full Node.js execution and validation limitations","retrievedAt":"2026-10-07T11:09:23Z","kind":"vendor"}]},{"name":"Maintenance transition","status":"limited","detail":"Current README describes organization and CI/CD migration affecting contribution merges.","useCase":"HTTP and mixed-protocol service virtualization","platforms":["Node.js environments","Docker"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://github.com/mountebank-testing/mountebank/blob/master/README.md","locator":"Organization transition and core/extension protocol coverage","retrievedAt":"2026-10-07T11:09:23Z","kind":"vendor"}]}],"alternatives":[],"slug":"mountebank","draftAlternatives":[{"targetSlug":"wiremock","status":"limited","detail":"Can replace HTTP dependency mocks with JSON-configured imposters; native mappings and custom behavior require translation.","useCase":"HTTP and mixed-protocol service virtualization","platforms":["Node.js environments","Docker"],"region":"Version, plan and platform requirements apply","evidence":[{"url":"https://www.mbtest.dev/docs/gettingStarted","locator":"Imposter ports, predicates and HTTP/TCP responses","retrievedAt":"2026-10-07T11:09:34Z","kind":"vendor"},{"url":"https://www.mbtest.dev/docs/api/injection","locator":"Opt-in full Node.js execution and validation limitations","retrievedAt":"2026-10-07T11:09:23Z","kind":"vendor"},{"url":"https://wiremock.org/docs/standalone/","locator":"Java/JSON configuration and JAR/container distribution","retrievedAt":"2026-10-07T11:08:23Z","kind":"vendor"}]}],"evidence":[{"url":"https://github.com/mountebank-testing/mountebank/blob/master/README.md","locator":"Organization transition and core/extension protocol coverage","retrievedAt":"2026-10-07T11:09:23Z","kind":"vendor"},{"url":"https://www.mbtest.dev/docs/gettingStarted","locator":"Imposter ports, predicates and HTTP/TCP responses","retrievedAt":"2026-10-07T11:09:34Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://github.com/mountebank-testing/mountebank/blob/master/LICENSE","locator":"MIT license","retrievedAt":"2026-10-07T11:09:34Z","id":"mountebank-license","title":"mountebank license","kind":"vendor"},{"url":"https://github.com/mountebank-testing/mountebank/blob/master/README.md","locator":"Organization transition and core/extension protocol coverage","retrievedAt":"2026-10-07T11:09:23Z","id":"mountebank-readme","title":"mountebank repository","kind":"vendor"},{"url":"https://www.mbtest.dev/docs/gettingStarted","locator":"Imposter ports, predicates and HTTP/TCP responses","retrievedAt":"2026-10-07T11:09:34Z","id":"mountebank-start","title":"mountebank getting started","kind":"vendor"},{"url":"https://www.mbtest.dev/docs/api/injection","locator":"Opt-in full Node.js execution and validation limitations","retrievedAt":"2026-10-07T11:09:23Z","id":"mountebank-inject","title":"mountebank injection","kind":"vendor"},{"url":"https://www.mbtest.dev/docs/commandLine","locator":"Injection defaults and network allowlisting","retrievedAt":"2026-10-07T11:09:23Z","id":"mountebank-cli","title":"mountebank command-line options","kind":"vendor"},{"url":"https://wiremock.org/docs/standalone/","locator":"Java/JSON configuration and JAR/container distribution","retrievedAt":"2026-10-07T11:08:23Z","id":"wiremock-standalone","title":"WireMock standalone service","kind":"vendor"}],"overviewCitations":["mountebank-readme","mountebank-start"],"licenseCitations":["mountebank-license"],"sections":[{"id":"imposters","heading":"Network-facing test doubles","paragraphs":[{"id":"imposters-detail","content":[{"text":"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."}],"citations":["mountebank-start"]}]},{"id":"protocols","heading":"Built-in and extended coverage","paragraphs":[{"id":"protocols-detail","content":[{"text":"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."}],"citations":["mountebank-start","mountebank-readme"]}]},{"id":"injection","heading":"Custom behavior and execution risk","paragraphs":[{"id":"injection-detail","content":[{"text":"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."}],"citations":["mountebank-inject","mountebank-cli"]}]},{"id":"maintenance","heading":"Licensing and project transition","paragraphs":[{"id":"maintenance-detail","content":[{"text":"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."}],"citations":["mountebank-license","mountebank-readme"]}]},{"id":"fit","heading":"Substitution scope","paragraphs":[{"id":"fit-detail","content":[{"text":"mountebank can substitute for "},{"text":"WireMock","targetSlug":"wiremock"},{"text":" 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."}],"citations":["mountebank-start","mountebank-inject","wiremock-standalone"]}]}]},"id":"Q978","revision":1026,"updatedAt":"2026-10-13T17:41:01Z","sourceUrl":"https://substitutefor.net/entities/Q978?revision=1026"}}