qmetrics.net

MockServer Monorepo

Self-hosted HTTP mock server, proxy, and test recorder

MockServer Monorepo screenshot

MockServer mocks, records, and proxies HTTP and HTTPS dependencies so tests stay isolated. It auto-detects HTTP/1.1, HTTP/2, gRPC, WebSockets, and TCP on one port.

Overview

MockServer is a single deployable tool for development and testing that stands in for external HTTP services. You configure expectations to return canned, templated, or callback-driven responses, or run it as a proxy to record, inspect, and modify live traffic, including TLS exchanges.

Matching can use method, path, query, headers, cookies, and body rules across JSON, XML, JSONPath, XPath, and regex. OpenAPI and Swagger specs can generate mocks. Chaos features add latency, dropped connections, and errors to exercise resilience. The same instance can mock some routes while proxying others.

It ships client libraries for several languages, a web dashboard, verification of received requests, record and replay, breakpoints, optional LLM API mocking, and a built-in MCP server so AI assistants can drive expectations. Deployment options include Docker, Helm on Kubernetes, JAR, Homebrew on macOS and Linux, and Testcontainers.

MockServer is explicitly scoped as a testing tool, not production middleware. Runtime requires Java 17+ when not using the bundled JVM in the official container image.

Key features

  • HTTP mock expectations and verification
  • Recording and replay proxy mode
  • OpenAPI-driven mock generation
  • Chaos latency and error injection
  • gRPC and WebSocket on one port
  • Built-in web dashboard
  • MCP server for AI assistants
  • Docker and Helm deployment

Use cases

  • Isolated REST service unit tests
  • Parallel development before APIs exist
  • Recording production traffic for replay
  • Resilience testing with injected faults
  • LLM API stubbing in AI app tests

Tags

Similar software

Keploy

Record-and-replay API and integration testing from traffic

Keploy captures API calls, database queries, and streaming events, then replays them as tests and dependency mocks without changing application code.

★ 20k⟳ todayApache-2.0

GoReplay

Capture and replay live HTTP traffic

GoReplay records HTTP from network interfaces and replays it to test servers for shadowing, load testing, and debugging. It runs as a command-line daemon without in-path proxy changes.

★ 19.3k⟳ 1 year agoGPL-3.0 · open core
API Development & TestingNo commits in 18+ monthsDesktop/CLI app

MSW

JavaScript API mocking through network-level request interception

Mock Service Worker lets you define HTTP mocks once and reuse them in browsers and Node.js. Applications keep calling real APIs while responses are substituted at the network layer.

★ 18.4k⟳ 2 days agoMIT

supertest

Node.js HTTP server testing via superagent

Supertest offers a fluent API for asserting HTTP behavior against Node.js servers during automated tests. It builds on superagent so you can express status, headers, and body expectations in code.

★ 14.4k⟳ 21 days agoMIT

MeterSphere

Open continuous testing platform with built-in AI assistant

MeterSphere is an open continuous testing tool with AI-assisted case generation, test management, and API testing for teams. It uses a system-organization-project hierarchy for collaboration.

★ 13.7k⟳ 1 month agoGPL-3.0

Karate

Unified open-source test automation framework

Karate combines API testing, mocks, performance testing, and UI automation in one framework with a readable syntax. Tests run via JUnit, a CLI, or CI/CD with parallel execution.

★ 9k⟳ 2 days agoMIT