Mockd logo

Mockd

by getmockd

Create and manage multi-protocol API mocks through 18 MCP tools in a local mockd process.

Install Mockd

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://api.example.com/users

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

The getmockd/mockd MCP server exposes mockd’s local API-mocking features to AI agents through 18 MCP tools. Agents can create mocks, manage stateful resources, import API definitions, inject failures, inspect request logs, and verify contracts across HTTP, GraphQL, gRPC, WebSocket, MQTT, SSE, and SOAP. Reach for it when an agent needs to build or validate a local API mock without manually using the mockd CLI.

Use cases

  • Create local mocks from OpenAPI or WSDL definitions
  • Generate stateful CRUD APIs for application tests
  • Inject delays and errors into service responses
  • Inspect request logs and verify API contracts
  • Build digital twins for SDK integration testing

Key features

  • 18 MCP tools for mock management
  • HTTP, GraphQL, gRPC, WebSocket, MQTT, SSE, and SOAP support
  • Stateful CRUD resources
  • OpenAPI, Postman, HAR, WireMock, cURL, Mockoon, and WSDL imports
  • Chaos injection and deterministic seeded responses
  • Request logs, verification, workspaces, and import/export

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked Today

Recent health check succeeded.

21/21 checks healthy over the last 79d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars151Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Directory activity3 viewsConfig copies, upvotes, and views on AllMCPs.

How Mockd works

What getmockd/mockd does

The getmockd/mockd MCP server lets MCP-compatible AI clients operate mockd, a local multi-protocol API mock server. It is intended for development and testing scenarios where an agent needs to define endpoints, provide realistic responses, maintain test data, or check whether a client behaves correctly against an API contract.

mockd supports HTTP and HTTPS, GraphQL, gRPC, WebSocket, MQTT, server-sent events, and SOAP. It runs as a local executable and can create mocks for services that are unavailable, expensive, unstable, or still under development. Stateful CRUD resources can model records and operations such as create, list, retrieve, update, and delete.

How it works

The MCP entry point is started by running mockd mcp. An MCP client launches that command as a local process, then exposes the server’s tools to an AI agent. The agent can manage mock definitions and supporting data through MCP rather than issuing individual CLI commands.

The server also supports imported API descriptions and captured request formats. Supported imports include OpenAPI, Postman, HAR, WireMock, cURL, Mockoon, and WSDL. These definitions can be used to create a digital twin of an existing API, including examples such as Stripe, Twilio, or OpenAI-compatible testing configurations described by the project.

Setup and configuration

Add the following server entry to an MCP client configuration, adapting the format to the client where necessary:

config.json
{
  "mcpServers": {
    "mockd": {
      "command": "mockd",
      "args": ["mcp"]
    }
  }
}

The mockd executable must be installed and available to the client process. The project documents installation through a shell installer, Homebrew, Docker, Go, and pre-built binaries for Linux, macOS, and Windows. The repository does not document any environment variables required by the MCP process.

Tools and capabilities

The getmockd/mockd MCP server includes 18 tools covering:

  • Mock creation, modification, listing, and removal.
  • Stateful resources for CRUD-style test data.
  • Import and export operations for supported API formats.
  • Chaos behavior and fault injection, including delays and errors.
  • Request-log inspection and contract verification.
  • Workspace management.
  • Protocol-specific mocks for the seven supported protocol families.

The underlying mockd runtime also provides deterministic seeded responses, circuit-breaker behavior, bandwidth throttling, an administrative REST API, a web dashboard, and cloud tunnel sharing according to the project’s capability tables. These runtime features should not be assumed to be separate MCP tools unless exposed by the configured tool set.

Limitations and notes

This is a local MCP arrangement: the client starts the mockd command on the same environment where the executable is installed. The README names Claude Desktop, Cursor, and Windsurf, and states that the server works with MCP-compatible editors.

The repository describes mockd as self-hostable and licensed under Apache 2.0. Protocol support and import support belong to the mockd runtime; an agent’s ability to use a particular operation depends on the tools exposed by the running MCP version.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Mockd

getmockd/mockd is an MCP server that connects AI clients to the local mockd API-mocking runtime. Its 18 tools create and manage mocks, stateful resources, imports, chaos behavior, request logs, verification, workspaces, and import/export across HTTP, GraphQL, gRPC, WebSocket, MQTT, SSE, and SOAP.

Install the mockd executable, then configure your MCP client to run `mockd mcp`. The project documents a shell installer, Homebrew, Docker, Go installation, and pre-built binaries for Linux, macOS, and Windows.

Yes, the README explicitly lists Cursor as a supported client. Configure Cursor to start the local `mockd` command with the `mcp` argument.

Yes, mockd can import OpenAPI files through its supported import capabilities. It also lists Postman, HAR, WireMock, cURL, Mockoon, and WSDL as import formats.

Yes, the MCP tools can manage stateful resources for CRUD-style mocks. The underlying mockd runtime supports creating, listing, retrieving, updating, and deleting test records.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMockd AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/getmockd-mockd?style=directory)](https://allmcps.com/mcp/getmockd-mockd)
HTML Embed
<a href="https://allmcps.com/mcp/getmockd-mockd"><img src="https://allmcps.com/api/badge/getmockd-mockd?style=directory" alt="Mockd on AllMCPs" /></a>