Open Source Apache 2.0 Star on GitHub

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.

HTTP · REST APIs
GraphQL · Queries & mutations
gRPC · Protocol buffers
WebSocket · Real-time
MQTT · IoT messaging
SSE · Event streams
SOAP · Enterprise XML
mockd terminal
$ mockd start
Mock server running on http://localhost:4280
Admin API running on http://localhost:4290
Press Ctrl+C to stop
$ mockd add http --path /api/users --body '{"users": [{"id": 1, "name": "Alice"}]}'
Created mock: http_a454ff75
Type: http  Method: GET  Path: /api/users  Status: 200
$ curl localhost:4280/api/users
{"users": [{"id": 1, "name": "Alice"}]}
50K+
HTTP req/s
7 Protocols
Open Source - Apache 2.0
Security First
Enterprise Ready
Built with Go

Open Source & Community Driven

GitHub
Tests 100% passing
Latest v0.3.3
Why Mockd?

The smarter way to mock APIs

Compared to other mocking tools, Mockd gives you more protocols and better performance.

Other Tools
  • 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
Mockd
  • 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
0+
HTTP req/sec
<0ms
HTTP p50 Latency
0
Protocols
<0ms
Startup Time
<0MB
Memory
See It In Action

One tool for every protocol

Mock HTTP, GraphQL, gRPC, WebSocket, and MQTT with a consistent, intuitive CLI

HTTP / REST Example
# 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"}
Powerful Features

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.

Start in under 60 seconds

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.