mountebank
mbtest.dev
- Free plan
- Linux
- API
- Self-hosted
What mountebank is
mountebank is a free, self-hosted tool for testing applications against test doubles instead of real dependencies. Tests use its HTTP API to configure stubs, record and replay proxies, and verify mock expectations. HTTP, HTTPS, TCP, and SMTP are built in; community plugins add LDAP, WebSockets, GraphQL, SNMP, Telnet, SSH, and NETCONF. The getting started guide documents installation through npm or a Docker image. Community extensions list client libraries for C#, Clojure, Go, Java, JavaScript, Python, Ruby, TypeScript, and Swift, as well as build tool plugins for Grunt, Gradle, and Maven. The Free plan costs nothing and is described as open-source service virtualization, with no platform constraints stated. By default, mountebank stores everything in memory, which its site says can become a performance bottleneck at scale. Its security guidance warns that enabling JavaScript injection can allow attackers to run code on the machine and recommends protections such as localhost-only access or an IP whitelist. CORS is disabled by default; safe origins can be explicitly enabled with a command-line flag.
Who it suits
mountebank suits developers who need test doubles for applications and want to configure them through an HTTP API. Its protocol support, extensions, and npm or Docker installation options may fit varied development workflows.
Good to know, and what to watch
- Supports HTTP, HTTPS, TCP, and SMTP by default.
- Can record and replay proxies.
- Offers npm and Docker installation options.
- Lists client libraries across several languages.
- Stores everything in memory by default.
- Memory storage may bottleneck at scale.
- JavaScript injection can let attackers run code.
- CORS is disabled by default.
Plans
Every plan and priceFree
Free plan
The verdict
mountebank provides a broad set of protocols and extension options for testing against test doubles. Account for the default in-memory storage and follow the security guidance, especially if enabling JavaScript injection.
What the maker publishes
- API key option
- The command-line documentation describes an optional API key that requires a matching x-api-key header for API requests. source
- Audience
- The site describes mountebank as a platform for developers to test applications against on-demand test doubles instead of real dependencies. source
- Build integrations
- Listed build tool plugins include Grunt, Gradle, and Maven. source
- Built-in protocols
- The site lists HTTP, HTTPS, TCP, and SMTP as built-in protocols. source
- Client libraries
- The community extensions page lists client libraries for languages including C#, Clojure, Go, Java, JavaScript, Python, Ruby, TypeScript, and Swift. source
- Community protocols
- The site lists LDAP, WebSockets, GraphQL, SNMP, Telnet, SSH, and NETCONF as community plugins. source
- CORS
- CORS is disabled by default to prevent CSRF attacks, and safe origins can be explicitly enabled with a command-line flag. source
- Installation
- The getting started guide documents installation through npm or running a Docker image. source
- Persistence limit
- By default, mountebank stores everything in memory; the page says this can become a performance bottleneck at scale. source
- Purpose
- mountebank provides cross-platform, multi-protocol test doubles over the wire for testing applications in place of real dependencies. source
- Security
- The security page warns that enabling JavaScript injection can allow attackers to run code on the machine and recommends protections such as localhost-only access or an IP whitelist. source
- Support
- The support page directs users to a Google group for help. source
- Testing workflow
- Tests use its HTTP API to set up stubs, record and replay proxies, and verify mock expectations. source
Checked against the maker's pages on 4 Oct 2026.