Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 81
  • 157 stars
  • Apache-2.0
  • Updated

Install mockd

Built from the published package, never by AI.

claude mcp add mockd -- docker run -i --rm ghcr.io/getmockd/mockd

Run in your terminal. Add --scope user to use it in every project.

Step-by-step: install mockd in Claude Code

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 →

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.

Add to stack

Loading.