Skip to content
SPECIFICTION
Get listed

Mockfly vs MockWebServer

Mockfly

mockfly.dev

MockWebServer

square.github.io

Side by side

FigureMockflyMockWebServer
Price from€12.50/moFree
Free planYesYes
Free trial——
Open source——
WebYes—
LinuxYes—
Android—Yes
APIYes—
Self-hostedYes—
Plans published72
Spec score · API Mocking Tools9.2 (#2)7.7 (#14)
IntegrationsThe Chrome extension captures browser requests and adds selected endpoints to a Mockfly project.Optional artifacts provide JUnit 4 and JUnit 5 integrations, while the core mockwebserver3 module has no JUnit dependency.
PurposeMockfly creates hosted mock REST API endpoints so teams can build and test before a backend is ready.MockWebServer is a library for testing HTTP, HTTPS, and HTTP/2 clients.
ResponsesEach endpoint can have multiple responses selected by conditional rules based on incoming requests.It is a scriptable web server that replays supplied canned responses in sequence when requested.
SupportSupport is provided directly by the builders through email, in English or Spanish.The project directs users to report issues encountered on GraalVM, but does not state a MockWebServer support plan or response time.

Plans

Mockfly

  • StarterFree
  • StarterFree
  • Pro€15 a month
  • Team€49 a month
  • Pro annual€150 a year
  • Company€199 a month
  • CompanyPriced on request

Mockfly pricing →

MockWebServer

  • MockWebServerFree
  • Open sourceFree

MockWebServer pricing →

In their own words

Mockfly

Mockfly provides hosted mock REST API endpoints for teams building or testing before a backend is ready. An endpoint can return JSON, XML, or files such as PDFs and CSVs, and can select among several responses using rules tied to incoming requests. Mock data can use Faker.js templates or AI-generated JSON. Projects can start from OpenAPI, Swagger, Postman collection, or HAR imports; a Chrome extension can capture browser requests and add selected endpoints. Teams can share and edit mocks, inspect request logs, and review response-body history. For offline work, the mockfly-cli npm package pulls projects to serve locally. A public REST API and MCP server support programmatic mock creation and editing. Mockfly lists API, extension, Linux, self-hosted, and web platforms, and supports REST and WebSocket. The free Starter plan allows 500 requests per day, one project, four endpoints, and two responses per endpoint. Pro costs €15 a month; Team costs €49 a month; Company is listed from €199 a month.

Visit mockfly.dev

MockWebServer

MockWebServer is a free, open-source Android test library for developers checking HTTP clients. It provides a scriptable local server where tests supply canned responses and inspect requests made during HTTP, HTTPS, or HTTP/2 calls. Recorded requests expose method, path, HTTP version, body, headers, and chunk sizes for verification. Responses can be queued in sequence or generated by a Dispatcher that applies a request-by-request policy. Tests can throttle responses to imitate slow networks, and socket policies can keep connections open, disconnect during request or response bodies, or send no response. The README includes Java and Kotlin examples. The documented dependency is com.squareup.okhttp3:mockwebserver3:5.5.0, available through Maven Central. MockWebServer is licensed under Apache License 2.0 and is intended for internal and basic testing of apps using OkHttp. The project says it is not a full-featured standalone HTTP testing library and is not actively developed for new features; it suggests MockServer when requirements exceed its scope.

Visit square.github.io