Quick Start
Get MockServer running and mock your first request in under 5 minutes.
Running MockServer
Deploy via Docker, Helm, Maven, npm, or as a standalone JAR.
Creating Expectations
Define request matchers and response actions to control what MockServer returns.
REST API Reference
Explore the full REST API for managing expectations, verification, and state.
How MockServer works
MockServer acts as a controllable HTTP server. You configure it with expectations — rules that match incoming requests and define what response to return. You can then verify which requests were received after your tests run.Set up expectations
Use a client library or the REST API to define how MockServer should respond to requests.
Run your tests
Point your application at MockServer. It intercepts requests and returns your configured responses.
Explore by use case
OpenAPI Mocking
Auto-generate expectations from an OpenAPI v3 specification.
Response Templates
Return dynamic responses using Mustache, Velocity, or JavaScript templates.
Proxy & Record
Proxy live traffic, record requests and responses, then replay them.
Client SDKs
Use the Java, JavaScript, or Ruby client to control MockServer programmatically.