Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

MockServer

mock-server.com

  • Free plan
  • Windows
  • macOS
  • Linux
  • Web
  • API
  • Self-hosted
7.8 Club score Visit mock-server.com

What MockServer is

MockServer is free, self-hosted software for mocking and proxying HTTP, HTTPS, and gRPC services in isolated, deterministic tests. It can act as a mock, proxy, or request-verification tool. Mocks can be generated and traffic checked against OpenAPI or Swagger specifications, while recorded traffic can be imported from browser HAR files or Postman collections. It can also mock AsyncAPI brokers such as Kafka, MQTT, and AMQP, as well as OAuth2/OIDC providers. For chaos testing, it can introduce latency, error responses, dropped connections, or malformed responses into supported traffic. Protocol support includes HTTP/1.1, HTTP/2, HTTPS, SOCKS, and experimental HTTP/3, which uses a separate UDP port. Deployment options include Docker, an executable JAR, Helm/Kubernetes, Testcontainers, Homebrew, and a JVM-less binary bundle. A built-in web dashboard shows live logs, expectations, and recorded traffic; Prometheus metrics and OpenTelemetry tracing support shared environments. Control-plane requests can use mutual TLS or JWT, but status and readiness probes remain reachable without authentication or authorization.

Who it suits

MockServer suits developers and test teams that need self-hosted mocks, proxies, or request verification across HTTP, gRPC, and related services. It may also suit teams that use contract specifications, recorded traffic, or chaos testing in their workflows.

Good to know, and what to watch

  • Free and self-hosted, with no SaaS account
  • Supports OpenAPI and Swagger-based mock generation and validation
  • Imports browser HAR files and Postman collections
  • Offers multiple deployment methods and official language clients
  • Dashboard, Prometheus metrics, and OpenTelemetry tracing are available
  • HTTP/3 support is experimental and uses a separate UDP port
  • Status and readiness probes are reachable without authentication
  • Self-hosted deployment requires users to run the software

Free and open-source

Free

Free plan

The verdict

MockServer brings mocking, proxying, verification, and fault injection into a self-hosted testing tool with broad protocol and deployment support. Its health probes remain unauthenticated, so account for that security limitation when planning a deployment.

What the maker publishes

AI integration
Every instance includes an MCP server at /mockserver/mcp for assistants such as Claude Code, Cursor, Windsurf, Cline and OpenCode. source
API contracts
Mocks can be generated and traffic validated from OpenAPI or Swagger specifications. source
Chaos testing
It injects latency, error responses, dropped connections and malformed responses into mocked or proxied HTTP, gRPC and TCP traffic. source
Client integrations
Official clients are available for Java, JavaScript, Python, Ruby, Go, .NET, Rust and PHP, alongside the CLI and REST API. source
Control-plane security
Control-plane requests can be authenticated with mutual TLS, JWT or both, and authorization can map OIDC scopes or groups to roles. source
Core roles
It can act as a mock, proxy and request-verification tool. source
Deployment
It can run through Docker, an executable JAR, Helm/Kubernetes, Testcontainers, Homebrew or a JVM-less binary bundle. source
Imports
Recorded traffic can be imported from browser HAR files and Postman collections. source
Messaging and identity
It can mock gRPC services, AsyncAPI brokers including Kafka, MQTT and AMQP, and OAuth2/OIDC providers. source
Observability
A built-in web dashboard shows live logs, expectations and recorded traffic, while Prometheus metrics and OpenTelemetry tracing support shared environments. source
Protocol support
It supports HTTP/1.1, HTTP/2, HTTPS, SOCKS and experimental HTTP/3, with HTTP/3 using a separate UDP port. source
Purpose
MockServer mocks and proxies HTTP, HTTPS and gRPC services for fast, isolated and deterministic testing. source
Security limitation
The /mockserver/status and /mockserver/ready health probes are always reachable without authentication or authorization. source
Source and support
GitHub hosts the source code, feature requests, issues, pull requests and releases. source
Template safety
Velocity class loading is disabled by default and JavaScript templates cannot resolve Java classes unless explicitly allowed. source

Checked against the maker's pages on 1 Oct 2026.