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.
One-click editor setup isnβt available for this listing yet β we donβt have a confirmed install command, and weβd rather show nothing than point your editor at the wrong package or host. Follow the projectβs own setup instructions, linked above.
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 bundles its own Java 26 runtime, so containerised users need no JVM of their own.
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:
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
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>