mockd
MCP server by getmockd Verified · mockd.io
Creates mock API servers for seven protocols from a single binary, and exposes them to AI assistants through a local MCP server. It is aimed at developers who need to test or build against APIs that are not ready yet.
Install mockd
Built from the published package, never by AI.
claude mcp add mockd -- docker run -i --rm ghcr.io/getmockd/mockdRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mockd": {
"args": [
"run",
"-i",
"--rm",
"ghcr.io/getmockd/mockd"
],
"command": "docker"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mockd": {
"args": [
"run",
"-i",
"--rm",
"ghcr.io/getmockd/mockd"
],
"command": "docker"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mockd": {
"args": [
"run",
"-i",
"--rm",
"ghcr.io/getmockd/mockd"
],
"command": "docker"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mockd -- docker run -i --rm ghcr.io/getmockd/mockd{
"mcpServers": {
"mockd": {
"args": [
"run",
"-i",
"--rm",
"ghcr.io/getmockd/mockd"
],
"command": "docker"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mockd docker run -i --rm ghcr.io/getmockd/mockdGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mockd block.
About
mockd is a mock server for APIs. It covers HTTP, gRPC, GraphQL, WebSocket, MQTT, SSE and SOAP from one CLI tool. Mocks can be stateful, so a CRUD endpoint stores and returns data. Specs can be imported from OpenAPI, Postman, HAR, WireMock, cURL and WSDL files.
The project ships as a single binary with no runtime dependencies. It includes a local MCP server with 18 tools, so an AI assistant can create mocks, manage state, import specs and verify contracts. It also offers chaos profiles, circuit breakers, workspaces and a web dashboard. The source says it is for developers who need local mock APIs, and it is licensed under Apache 2.0.
Written from the project's README and checked against it.
Tools it gives your assistant
Mock CRUDCreates, reads, updates and deletes mocks through the assistant.Stateful resourcesManages stateful mock resources that store and return data.Chaos injectionApplies chaos profiles that add latency or error responses.Request logsReads request logs from running mock servers.VerificationVerifies contracts against mocks.WorkspacesCreates and switches isolated mock environments.Import and exportImports API specs into mocks and exports existing mock configurations.
What you need
- mockd binary installed and available on PATH
- An MCP-compatible editor such as Claude Desktop, Cursor or Windsurf
- Docker, if using the Docker image
- Go, if installing with go install
Try asking
- Create a stateful /api/users mock that supports CRUD operations
- Import this OpenAPI spec and turn it into mock endpoints
- Apply the flaky chaos profile to my mock server and check the logs
Good to know
- The MCP server runs locally, not as a hosted service
- Mockd Cloud team features are marked as coming soon
- The source does not list a native desktop GUI
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -sSL https://get.mockd.io | sh
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mockd
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
mockd: common questions
Does mockd need an account or API key?
The source says mockd works fully offline with no account required. The MCP setup only needs the mockd command.
Which API protocols does mockd support?
It supports HTTP, gRPC, GraphQL, WebSocket, MQTT, SSE and SOAP. The source also lists proxy recording for capturing real traffic.
Can mockd replace a real API during testing?
The source says digital twins built from real API specs were tested with the stripe-go and twilio-go SDKs. It also says mocks can be shared through a cloud tunnel.
How do I install mockd?
In Claude Code run claude mcp add mockd -- docker run -i --rm ghcr.io/getmockd/mockd. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is mockd the official server?
mockd is published by mockd.io from its verified domain in the official MCP Registry.
Is mockd free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is mockd safe to use?
It scores 81 of 100. Grades: maintenance B, licence A, quality B. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to mockd?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does mockd work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
