mockserver-monorepo
View on GitHubMockServer is an HTTP(S) mock server and proxy for testing that lets you mock APIs, inspect and modify live traffic, and inject failures. It supports HTTP/1.1, HTTP/2, gRPC, WebSockets, TCP and more on a single port, with additional support for HTTP/3, message brokers, and AI/LLM APIs.
MockServer is a Java HTTP(S) mock server and proxy for testing: mock APIs, record/modify live traffic, inject failures, and cover HTTP/1.1, HTTP/2, gRPC, WebSockets, TCP and brokers. It also mocks LLM chat APIs and ships a built-in MCP server, but is primarily a general API testing tool.
Use Cases
Mock HTTP/gRPC/WebSocket/TCP APIs for testingRecord, inspect and modify live traffic via proxyInject latency, dropped connections and errors for chaos engineeringMock LLM chat-completion APIs including streamingExpose a built-in MCP server for AI coding assistantsGenerate expectations from OpenAPI/Swagger specsVerify request counts and ordering in testsTest against Kafka and MQTT brokers via AsyncAPI
Built With
- Language
- Java
- Frameworks
- Netty · JUnit · Spring Boot · Testcontainers · Maven · Helm · Kubernetes · Docker · Velocity · Mustache
Tags
mock-server · api-testing · proxy · http2 · grpc · websockets · chaos-engineering · openapi · mcp · llm-mocking · json-rpc · kafka · mqtt · docker · kubernetes · tcp