MockdCAUTION
High-performance, multi-protocol mock server. HTTP, WebSocket, gRPC, MQTT, SSE, GraphQL, SOAP in one binary.
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
One binary. Seven protocols. Zero dependencies.
Mock HTTP, gRPC, GraphQL, WebSocket, MQTT, SSE, and SOAP from a single CLI tool. Import OpenAPI specs. Build digital twins. Let AI agents create mocks for you.
Website · Docs · Samples · Contributing
Quick Start
# Install
curl -sSL https://get.mockd.io | sh
# Start + create a stateful CRUD API in one command
mockd start
mockd add http --path /api/users --stateful users
# It works immediately
curl -X POST localhost:4280/api/users -d '{"name":"Alice","email":"[email protected]"}'
# → {"id":"a1b2c3","name":"Alice","email":"[email protected]"}
curl localhost:4280/api/users
# → {"data":[{"id":"a1b2c3","name":"Alice","email":"[email protected]"}],"meta":{"total":1}}43f42d1c5a69OBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add mockd -- docker run -i --rm ghcr.io/getmockd/mockd:None
Trust audit
CAUTIONgrade D · trust 62/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (5 observation(s))
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- found
Findings (25)
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
token: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Token: "expired-refresh-token",
Token: "refresh-token-for-test",
Token: "no-scope-refresh-token",
{"wrong type", []byte("-----BEGIN PRIVATE KEY-----\nYQ==\n-----END PRIVATE KEY-----")},.golangci.yml
.goreleaser.yaml
{"deep traversal", "../../etc/certs"},{"hidden in path", "certs/../../../etc"},SchemaFile: "../../../etc/passwd",
SchemaFile: "schemas/../../../etc/passwd",
ProtoFile: "../../../etc/passwd",
curl -X POST http://127.0.0.1:{{ .Values.mockd.adminPort }}/api/mocks \curl http://127.0.0.1:{{ .Values.service.port }}/helloc := New("http://127.0.0.1:1") // port 1 should refuseapi := NewAPI(0, WithDataDir(t.TempDir()), WithLocalEngineClient(engineclient.New("http://127.0.0.1:1")))api := NewAPI(0, WithDataDir(t.TempDir()), WithLocalEngineClient(engineclient.New("http://127.0.0.1:1")))ab -n 100000 -c 200 -k http://localhost:4280/bench 2>&1 | tee /tmp/ab_results.txt
sb.WriteString("ab -n 100000 -c 200 -k http://localhost:4280/bench\n\n")"websocket": "${WS_MSG_RATE:-N/A} msg/s, ${WS_LATENCY:-N/A}μs latency",echo " Latency: ${WS_LATENCY:-N/A}μs"fmt.Fprintf(&sb, "| WebSocket | %.0f ops/s | %.2fμs | %s | Measured |\n",
fmt.Fprintf(&sb, "| gRPC | %.0f ops/s | %.2fμs | %s | Measured |\n",
fmt.Fprintf(&sb, "| SOAP | %.0f req/s | %.2fμs | %s | Measured |\n",
Gates applied: no_behavioural_pass.
43f42d1c5a69full audit observations/trust-audit/mcp-server/getmockd__mockd.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 43f42d1c5a69 | CAUTION | D | 62 | first audit |
Questions
What is the Mockd MCP server?
High-performance, multi-protocol mock server. HTTP, WebSocket, gRPC, MQTT, SSE, GraphQL, SOAP in one binary.
Is Mockd safe to connect to an agent?
With care. The audit graded it D (62/100) and found 25 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does Mockd need?
No credential environment variables were found in its source, so it appears to need none.
How does Mockd run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as mockd-docs at 0.0.1.
How current is this page?
The grade is for one exact copy of the source (43f42d1c5a69), read on 2026-10-07. The repository is watched and re-audited when it changes.