
Description
MockServer is an HTTP and HTTPS mock server and proxy for testing. It mocks, records and fault-tests any HTTP dependency your application uses, from a single binary without per-protocol setup. One port serves HTTP/1.1, HTTPS, HTTP/2, gRPC and gRPC-Web, WebSockets and raw TCP, detected automatically from the start of each connection, and the project also covers HTTP/3 in an experimental form, JSON-RPC for mocking MCP and A2A calls, and AsyncAPI-driven testing against Kafka and MQTT brokers. MockServer can return fixed, templated or callback responses, or act as a proxy that records and modifies live traffic, including encrypted exchanges. It can inject latency, dropped connections and errors to see how an application copes with a failing dependency.…
Highlights
- One port for many protocols
- Mock or proxy and record traffic
- Chaos tests for latency and errors
- Mocks for AI and LLM APIs
- Client libraries for many languages
Ratings & Reviews
No ratings yet
Be the first to rate mockserver.
People also visit
Mockzilla
Open-source OpenAPI mock server with cloud hosting and local modes for…
mockserver FAQ
What is MockServer?
It is an HTTP and HTTPS mock server and proxy for testing that mocks APIs, records traffic and injects failures.
Which protocols does it handle?
HTTP/1.1, HTTPS, HTTP/2, gRPC, WebSockets and raw TCP on one port, with HTTP/3 in experimental form.
Can it generate mocks from a spec?
Yes. The README says mocks can be generated from OpenAPI or Swagger specifications.
How do I run it?
With Docker, a Helm chart, a JAR or a WAR, and client libraries are available for many languages.
What are the best mockserver alternatives?
Popular alternatives to mockserver include getmockd/mockd, mcp-developer and modelcontextprotocol/server-everything. See all mockserver alternatives
















