Mock Any Protocol. Ship Faster.
High-performance mock server for HTTP, GraphQL, gRPC, WebSocket, MQTT, SSE, and SOAP. Record real traffic, smart matching, dynamic responses. Share mocks instantly via built-in cloud tunnel. Local-first.
Open Source & Community Driven
The smarter way to mock APIs
Compared to other mocking tools, Mockd gives you more protocols and better performance.
- Postman: 1,000 calls/month limit, no WebSocket mocks, cloud-only
- WireMock: Requires Java runtime, 10 req/s on free tier
- JSON Server: REST-only, no matching logic, no recording
- MSW: Browser/Node-only, no multi-protocol support, can't share mocks across team
- 7 protocols: HTTP, GraphQL, gRPC, WebSocket, MQTT, SSE, SOAP
- Local-first: Runs on your machine, works offline, data stays private
- Record & replay: MITM proxy captures real traffic for playback
- High performance: 50K+ HTTP req/s, 50K+ MQTT msg/s, 20K+ WS/gRPC
One tool for every protocol
Mock HTTP, GraphQL, gRPC, WebSocket, and MQTT with a consistent, intuitive CLI
# Create a mock endpoint
mockd add http --method POST \
--path "/api/users" \
--status 201 \
--body '{"id": "{{uuid}}", "created": "{{now}}"}'
# Test it instantly
curl -X POST http://localhost:4280/api/users
{"id": "f47ac10b-58cc", "created": "2026-01-27T10:30:00Z"}Built for real-world API development
From quick prototypes to enterprise integration tests. CLI, MCP server, or API — your choice.
Multi-Protocol Mocking
One tool for HTTP, GraphQL, gRPC, WebSocket, MQTT, SSE, and SOAP. No more juggling different mock servers.
Record & Replay
MITM proxy captures real API traffic. Replay responses locally for deterministic testing.
Smart Request Matching
Scoring algorithm with 15+ criteria: path patterns, headers, JSONPath, regex, mTLS identity.
Dynamic Responses
Template engine with variables, regex captures, JSONPath extraction, UUIDs, timestamps.
Stateful Resources
In-memory CRUD simulation. Test create/read/update/delete workflows realistically.
Full Observability
Prometheus metrics, OpenTelemetry tracing, Loki log aggregation, audit logging, rate limiting simulation, and Grafana dashboards — all included free.
Cloud Tunnel
Expose local mocks to the internet with one command. All 7 protocols through a single QUIC connection on port 443.
Ready to supercharge your API development?
Ship faster with Mockd. Single Go binary, no dependencies, instant setup.
$ curl -sSL https://get.mockd.io | sh Stay in the loop
Get updates on new features, tips, and best practices.