Skip to main content

MockServer

non-cncf
Tech Writing Pass

Content Lifecycle & Evolution State

1
Initial Seed
Metadata Loaded
2
First Research
Automated Gathering
3
Tech Writing
Content Structured
4
Approval
Editorial Verified
Tech Writing Pass Completed: The technical overview and features have been structured by our autonomous content agents. Final editorial approval is pending.

Overview

MockServer mocks, records, and chaos-tests any HTTP(S) dependency your application talks to — one binary, no per-protocol setup.

Key Features

  • One port, every protocol — HTTP/1.1, HTTPS, HTTP/2, gRPC & gRPC-Web, WebSockets and raw TCP are auto-detected from the first bytes of each connection.

  • Mock, proxy, or both — return canned/templated/callback responses, or sit as a proxy (port forwarding, HTTP proxy, HTTPS tunneling, SOCKS) and record, inspect, and modify real traffic in flight

  • Chaos engineering built in — inject latency, dropped connections, and errors on demand to see how your application copes when a dependency misbehaves.

  • Mock AI too — chat-completion APIs for OpenAI, Anthropic, Gemini, Bedrock, Azure OpenAI and Ollama (including streaming), plus a built-in MCP server so AI coding assistants can drive MockServer directly.

  • Generate mocks, don’t hand-write them — from an OpenAPI/Swagger spec

  • Fits your stack — Java, JavaScript/Node, Python, Ruby, Go, .NET, Rust, and PHP clients, plus JUnit and Spring support

Use Cases

Mocking and recording HTTP(S) dependencies, chaos testing applications, generating mocks from OpenAPI specifications, and proxying traffic to inspect TLS-encrypted exchanges.

Getting Started

brew install mockserver mockserver run –port 1080

Did You Know?

MockServer supports mocking AI chat-completion APIs and includes a built-in MCP server so AI coding assistants can drive MockServer directly.