Mockttp
Mockttp: A flexible choice for detailed HTTP mocking in Node and TypeScript test suites. Ranked #15 of 26 in API Mocking Tools by our editors (7.6/10); pricing: Open source; best for node and TypeScript test developers.
At a glance
- Editor score7.6 / 10
- PricingOpen source
- Best forNode and TypeScript test developers
- Paid fromFree
- Dynamic responsesYes
- Facts checked20 Sep 2026

Where it wins
- Matches requests by paths, headers, bodies, hosts, protocols, and URL patterns
- Supports HTTP, HTTPS, WebSocket, and programmable callback responses
- Enables inspection, failure simulation, and parallel tests with automatic port setup
Where it doesn't
- Its documented ecosystem centers on Node.js, JavaScript, TypeScript, and browsers
- Advanced scenarios require writing matching rules or callback-based response logic
- It is focused on HTTP traffic mocking rather than broader test-platform coverage
Our verdict on Mockttp
Mockttp is an open-source JavaScript and TypeScript library for intercepting, transforming, proxying, and testing HTTP traffic. It is designed for developers building browser and Node.js integration tests, local mock servers, or scriptable proxies. The library supports fixed or dynamically assigned ports, transparent HTTP and HTTPS proxying, WebSocket request mocking, and requests made outside the controlling process. TypeScript typings and promise-based asynchronous APIs fit projects that want programmable test infrastructure rather than a standalone interface.
Its strongest capability is the depth of request control. Matching can use paths, query parameters, headers, bodies, hosts, protocols, and URL patterns, while responses can be static text, JSON, files, or callback-generated values. Captured request data supports inspection and verification, and tests can model connection delays, failures, timeouts, and passthrough behavior. Automatic port and URL configuration also supports parallel tests, making Mockttp suitable when a test suite needs both normal responses and controlled failure cases.
Mockttp is a focused fit for teams working in the Node.js, JavaScript, TypeScript, and browser ecosystem. Its open-source model suits developers who want a library they can include directly in test suites or run as a scriptable proxy. Choose it when detailed HTTP matching, dynamic responses, proxying, WebSockets, or request verification matter. Teams seeking broader platform coverage or a less programmable approach should consider a tool aligned with those needs instead.
Your product? Our editors can test Mockttp in depth and publish a review, labelled as paid · from $149/mo →
Mockttp pricing
Mockttp fact sheet
| Free plan | Not verified |
|---|---|
| Paid from | Free |
| Dynamic responses | Yes |
| OpenAPI import | Not verified |
| Request matching | Not verified |
| Mock data generation | Not verified |
| Local deployment | Yes |
| Supported protocols | HTTP, HTTPS, WebSocket, JSON-RPC |
| Deployment | Self-hosted |
| Platforms | Web |
| Support | Docs, Community |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 4 integrations: Node.js, JavaScript, TypeScript, Browsers |
| Pricing | Open source |
| Website | github.com |
| Facts checked | 20 Sep 2026 |
Mockttp integrations
Mockttp lists 4 integrations on its own site.
- Node.js
- JavaScript
- TypeScript
- Browsers
Alternatives to Mockttp
- BeeceptorA broad API mocking platform with protocol coverage, contract testing, and hosted or self-hosted deployment.9.4
- MockServerA free, open-source choice for teams that need broad, self-hosted API control.9.1
- WireMockA flexible mocking platform spanning hosted, local, CI/CD, Kubernetes, and self-managed use.9.0
See all Mockttp alternatives →
Used Mockttp? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used Mockttp for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
Mockttp is listed in our API Mocking Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/mockttp/"><img src="https://www.itechguides.com/best/badge/mockttp.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update


