mockd
Lets your AI agent create and manage mock APIs for HTTP, GraphQL, gRPC, WebSocket, MQTT, SSE and SOAP.
155 stars on GitHubby mockdLicense Apache-2.0Updated 2 months ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add mockd -- docker run -i --rm mcp ghcr.io/getmockd/mockd
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Create a stateful /api/users endpoint that I can add and list users on.
Import this OpenAPI file and start mocks for every route.
What it is
mockd is a mock server in a single program that can imitate many kinds of APIs. Its built-in MCP server lets an AI agent create mocks, manage stateful data, import API specs and check contracts without using the command line. It runs locally and works offline.
What it can do
- Create, list and change mocks
- Manage stateful resources such as a users table
- Inject chaos such as errors and delays
- View request logs
- Verify that expected requests were made
- Manage workspaces
- Import and export mocks (OpenAPI, Postman, HAR and more)
When to use
- βΊWhen you need a fake API to build or test against before the real one exists
- βΊWhen you want to test how your app behaves when an API is slow or failing
- βΊWhen you want to turn an OpenAPI file into a working mock
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
cli-anything-wiremockLets your agent set up and manage WireMock mock servers, create fake API responses, check the requests received, and record real traffic.api-overviewHelps your agent identify which modern API style a service uses, such as gRPC, SOAP, WebSocket or event streams, and load the right guide.api-designerHelps your agent design REST or GraphQL APIs and write OpenAPI 3.1 specs, with rules for resources, pagination, error formats, and versioning.Frequently asked questions
Is it free and open source?
Yes. The readme says it is free under the Apache 2.0 license with unlimited requests and mock rules.
How many MCP tools does it have?
The readme says the built-in MCP server has 18 tools.
Which clients does it work with?
Claude Desktop, Cursor, Windsurf and any MCP compatible editor.
Which protocols can it mock?
HTTP, GraphQL, gRPC, WebSocket, MQTT, SSE and SOAP.
Does it need an account?
No. The readme says it works fully offline with no account. A cloud option for teams is described as coming soon.
Where is the dashboard?
Release builds serve a web dashboard on the admin port, http://localhost:4290.
If it does not work
- βΊCheck that the mockd command works in your terminal with mockd start before adding the MCP server.
- βΊRestart your AI app fully after adding the mockd mcp entry to its config.
- βΊIf a port is busy, stop the other program using port 4280 or 4290.
5 new skills a week. 1 minute to read.