Mock, record/replay, verify and chaos-test any HTTP/REST/gRPC/LLM dependency over MCP.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
MockServer is an HTTP(S) mock server and proxy for testing. It does three things:
Speaks every protocol your stack uses. HTTP/1.1 & HTTPS, HTTP/2, gRPC & gRPC-Web, WebSockets and raw TCP are auto-detected from the first bytes of each connection, so one MockServer port handles them all with no per-protocol configuration. Beyond that core: HTTP/3 (QUIC β experimental, on its own UDP port), JSON-RPC for MCP/A2A mocking, AsyncAPI-driven message-broker testing against external Kafka and MQTT brokers, and mocked AI/LLM chat-completion APIs (OpenAI, Anthropic, Gemini, Bedrock, Azure OpenAI, Ollama).
/mockserver/dashboard.See the changelog for what has shipped in each version.
Run MockServer with Docker, then mock an endpoint and call it:
β¦or, on macOS / Linux, install it with Homebrew and run the mockserver command directly:
For common end-to-end setups, the examples/docker-compose recipes are a single docker compose up each β mock from an OpenAPI spec, a record/replay proxy, a contract-validating proxy, or a chaos proxy:
The same can be done from any client library or the dashboard at http://localhost:1080/mockserver/dashboard. For more configuration options see the Docker documentation.
For every way to run MockServer yourself β Docker, docker-compose recipes, the mockserver CLI, the JVM-less binary bundle, Helm/Kubernetes, the JAR, and Testcontainers β see the Self-Hosting MockServer guide.
Explore MockServer's REST control plane from an API client β create expectations, verify requests, and inspect recorded traffic:
examples/postman (guide).examples/bruno in Bruno via Open Collection (guide).For usage guide please see: www.mock-server.com
Architecture, code structure, infrastructure, and operations documentation is available in the docs/ directory.
MockServer includes a built-in MCP server for AI coding assistant integration at /mockserver/mcp. See llms.txt and AI Integration docs.
Please see: Change Log
| Discussions | ![]() |
| Issues, Bugs & Feature Requests | ![]() |
| Roadmap | ![]() |
| Security | ![]() |
Runtime: MockServer 6.x requires Java 17+. The minimum was raised from Java 11 as part of the Jakarta EE 10 / Spring 7 platform modernisation β see the Java 17 / Jakarta upgrade guide. If you are still on Java 11, pin to the 5.15.x line (no longer receiving security updates). The official Docker image already bundles a Java 17 runtime.
Building from source: requires JDK 17+; the produced bytecode targets Java 17.
Security Note: MockServer is a development and testing tool only. See SECURITY.md for important security considerations.
Maven Central contains the following MockServer artifacts under the org.mock-server groupId. Every artifact ships in two forms β -no-dependencies (shaded, zero transitive deps, recommended) and the plain form (transitive deps declared in the POM, for the rare case where you need to override versions yourself).
Server:
Java client:
Test framework integrations:
@Rule@MockServerSettings, @MockServerTest)TestExecutionListenermockserver.enabled=true to start MockServer and expose a MockServerClient bean (dev/test)Build-tool plugin:
Tip: The
-no-dependenciesartifacts bundle all dependencies into a single JAR with packages relocated undershaded_package.*, so they declare zero transitive dependencies. This avoids classpath conflicts with versions of Netty / Jackson / Guava / Bouncy Castle that your project already uses, and it removes the noise from CVE scanners flagging unused transitive dependencies. See the Maven Central page for full coordinates, snapshot repository setup, and the executablejar-with-dependenciesform for command-line use.
6.0.0 breaking change: the
<classifier>shaded</classifier>form has been removed. Replacemockserver-netty:<version>:shadedwithmockserver-netty-no-dependencies:<version>(and likewise for the other shaded artifacts). The replacement produces the same shaded bytes; only the coordinates change.
SNAPSHOT builds are published to the Sonatype Central Portal snapshot repository at https://central.sonatype.com/repository/maven-snapshots/org/mock-server/.
NPM Registry contains the following module:


Docker Hub contains the following artifacts:
MockServer is available in Homebrew (homebrew-core), the package manager for macOS and Linux:
See the Homebrew install page and the command-line usage guide.
MockServer Helm Chart - installs MockServer into a Kubernetes cluster. The chart is published to the GitHub Container Registry as an OCI artifact (no helm repo add needed):
See the Install MockServer Helm Chart guide for all versions and configuration options. A legacy .tgz is also available from www.mock-server.com.
-no-dependencies artifact to avoid transitive dependencies)
- a Ruby client for both the MockServer and the proxyIf you have any problems, please check the project issues and avoid opening issues that have already been fixed. When you open an issue please provide the following information:
Pull requests are, of course, very welcome! Please read our contributing to the project guide first. Then head over to the open issues to see what we need help with. Make sure you let us know if you intend to work on something. Also check out the project roadmap to see what is already in the backlog.
Feature requests are submitted to GitHub issues and tracked on the project roadmap.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mockserver)<a href="https://allmcps.com/mcp/mockserver"><img src="https://allmcps.com/api/badge/mockserver?style=directory" alt="Mockserver on AllMCPs" /></a>