Suggestions appear as you type. Use the up and down arrows to choose one and Enter to open it.

This page's audience our own tag's counts — open to see them
–Visits
–Page views
–Clicks to vendors
–Time on page
–Reading now
Clicks to vendors, by tool
  • –
Top countries
  • –
Devices
  • –

– · visits, page views and clicks counted by our own tag, which counts more than our checked analytics; every figure rounded down · how we count

MockWebServer

Free#23 of 26 in API Mocking Tools

MockWebServer: A focused open-source choice for scripted local HTTP client tests. Ranked #23 of 26 in API Mocking Tools by our editors (6.7/10); pricing: Open source; best for local HTTP tests needing scripted responses.

6.7/10Editor score
MockWebServer6.7 Visit MockWebServer

At a glance

  • Editor score
    6.7 / 10
  • Pricing
    Open source
  • Best for
    Local HTTP tests needing scripted responses
  • Paid from
    Free
  • Dynamic responses
    Yes
  • Facts checked
    21 Sep 2026
MockWebServer screenshot
  • Where it wins

    • Scripts response status codes, headers, bodies, and throttling
    • Records and verifies request methods, paths, headers, and bodies
    • Supports HTTP, HTTPS, and HTTP/2 client testing
  • Where it doesn't

    • Primarily targets internal and basic OkHttp testing
    • Request matching is centered on paths and request data
    • Not actively developed for new features

Our verdict on MockWebServer

MockWebServer is an open-source testing library distributed with OkHttp. It runs a local HTTP or HTTPS server that returns scripted responses, records incoming requests, and supports verification of request methods, paths, headers, bodies, and HTTP versions. Developers can use it for local application tests that need controlled network behavior, particularly when testing HTTP clients built with OkHttp. Its scope is intentionally focused rather than that of a broad HTTP testing platform.

Its strongest area is response and request control. Scripts can define custom status codes, headers, and bodies, while custom dispatchers can select responses based on request paths or other request data. Request recording and verification help check what a client sends, and response throttling supports slow-network test scenarios. HTTP/2 client testing adds protocol coverage alongside HTTP and HTTPS, making the library useful for tests that need local protocol behavior without relying on an external server.

The trade-off is scope and product direction. MockWebServer is described as primarily an internal-testing and basic OkHttp-testing library, so teams looking for a wider platform should consider whether its focused local-server model matches their needs. Its documented request matching centers on paths and request data, and its listed protocol coverage is HTTP, HTTPS, and HTTP/2. The vendor also says it is not actively developed for new features. Choose it for straightforward, scriptable local HTTP client tests; look elsewhere when you need a broader HTTP testing platform or a product with ongoing new-feature development.

Your product? Our editors can test MockWebServer in depth and publish a review, labelled as paid · from $149/mo →

MockWebServer pricing

Plans Open sourceFree Free to use — no paid tier required for the core job.
See plans on square.github.io

MockWebServer fact sheet

Free planNot verified
Paid fromFree
Dynamic responsesYes
OpenAPI importNot verified
Request matchingPath
Mock data generationNot verified
Local deploymentYes
Supported protocolsHTTP, HTTPS, HTTP/2
DeploymentSelf-hosted
SupportDocs
Built forSolo, Small business, Mid-market, Enterprise (editorial estimate)
PricingOpen source
Websitesquare.github.io
Facts checked21 Sep 2026

Alternatives to MockWebServer

See all MockWebServer alternatives →

Used MockWebServer? 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 MockWebServer 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

Reviews come only from verified accounts. Sign in or create an account first — your e-mail is never shown.

Your rating

0 characters · at least 80, up to 3,000

Posted from your verified account. Reviews appear after an editor reads them, usually within two working days.

Featured on iTechGuides

Featured on iTechGuides — MockWebServer 6.7/10

MockWebServer 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/mockwebserver/"><img src="https://www.itechguides.com/best/badge/mockwebserver.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