Skip to content
Skillpedia
● Free and open sourceπŸ’» LocalπŸ”“ No API keyProgramming

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

The mockd program installed on your computer, for example with the install script, Homebrew, Docker or Go. Then add it to your client with the command mockd mcp. No account is needed.

Skills that pair well

⭐ Skillpedia MCP Β· freeYour agent finds the right skill on its ownInstall our MCP and your agent searches 15,000+ skills whenever it needs one.Install for free β†’

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.