Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Lets AI assistants create and manage Mockoon mock APIs through natural language.

README.md

![MIT License](LICENSE) ![npm version](https://www.npmjs.com/package/mockoon-mcp) ![npm downloads](https://www.npmjs.com/package/mockoon-mcp)

mockoon-mcp

An MCP server that lets AI assistants (Claude, GitHub Copilot, Cursor, etc.) create and manage Mockoon mock APIs through natural language.

---

Requirements

  • Node.js 18+
  • Mockoon Desktop — for managing environment files via the UI
  • Mockoon CLI (optional) — required only if you want to use the start_server / stop_server tools to start mock servers programmatically (npm install -g @mockoon/cli)

---

Configuration

No installation needed. Configure your AI client using npx:

VS Code / GitHub Copilot

Create .vscode/mcp.json in your workspace:

{
  "servers": {
    "mockoon": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "mockoon-mcp@latest"]
    }
  }
}

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "mockoon": {
      "command": "npx",
      "args": ["-y", "mockoon-mcp@latest"]
    }
  }
}

Cursor

Edit ~/.cursor/mcp.json (global) or .cursor/mcp.json in your project:

{
  "mcpServers": {
    "mockoon": {
      "command": "npx",
      "args": ["-y", "mockoon-mcp@latest"]
    }
  }
}

Environment variables

| Variable | Description | | --------------------- | ---------------------------------------------------------------------------------- | | MOCKOON_STORAGE_DIR | Override the primary storage directory (default: Mockoon Desktop's storage folder) | | MOCKOON_DATA_DIRS | Semicolon-separated list of additional directories to search for environment files |

Default storage path:

  • Windows: %APPDATA%\mockoon\storage
  • macOS/Linux: ~/.config/mockoon/storage

Example:

"env": {
  "MOCKOON_DATA_DIRS": "/path/to/dir1;/path/to/dir2"
}

---

Available Tools

Environments

| Tool | Description | | -------------------- | --------------------------------------------- | | list_environments | List all environments with file path and port | | create_environment | Create a new environment | | delete_environment | Permanently delete an environment file |

Routes

| Tool | Description | | ----------------------------- | -------------------------------------------------------------------------- | | list_routes | List all routes in an environment (UUID, method, endpoint, response count) | | get_route | Inspect a single route with all responses, rules, headers and body | | create_route | Create a route with a single default response | | create_route_with_responses | Create a route + N responses (default + conditionals) in one call | | bulk_create_routes | Create N routes in one call — ideal for scaffolding an entire API | | update_route | Update method, endpoint, documentation and/or default response fields | | duplicate_route | Clone a route (all responses included) with new UUIDs | | delete_route | Delete a route and all its responses | | add_route_response | Add a conditional/alternative response to an existing route | | set_default_response | Change which response is marked as default | | get_default_response | Return the current default response (quick inspect) |

Databuckets (Templates)

| Tool | Description | | ----------------- | -------------------------------------- | | list_templates | List all databuckets in an environment | | create_template | Create a new databucket | | update_template | Update the content of a databucket | | delete_template | Delete a databucket |

Server

| Tool | Description | | ---------------------- | --------------------------------------- | | start_server | Start a mock server for an environment | | stop_server | Stop a running mock server | | list_running_servers | List all currently running mock servers |

Note: start_server and stop_server require Mockoon CLI to be installed globally (npm install -g @mockoon/cli). If you only use Mockoon Desktop, these tools will not work — but all other tools (environments, routes, databuckets) work without CLI.

---

Example Prompts

Here are some example phrases you can say to your AI assistant to interact with Mockoon via this MCP server:

Exploring environments and routes

  • "List all available Mockoon environments."
  • "Show me all the routes in the Taccuino environment."
  • "Get the full detail of route GET /users/:id, including all responses and rules."

Creating routes

  • "Create a GET /products route in the Demo API environment that returns a JSON array of 3 products with status 200."
  • "Add a POST /auth/login route with two responses: 200 with a token body and 401 Unauthorized."
  • "Scaffold a full CRUD API for a Task resource under /tasks in the Demo environment."

Updating and managing routes

  • "Change the default response of GET /users to return status 204 with an empty body."
  • "Duplicate the GET /orders route."
  • "Delete the DELETE /legacy/endpoint route from the environment."
  • "Add a conditional 403 response to POST /documents that triggers when the X-Role header equals guest."

Databuckets

  • "Create a databucket called UserList in the Demo API with a JSON array of 5 fake users."
  • "Update the ProductCatalog databucket with a new list of items."

Server management

  • "Start the mock server for the Taccuino environment."
  • "Stop all running mock servers."
  • "Which Mockoon environments are currently running?"

---

How It Works

The server communicates via stdio (JSON-RPC 2.0). It reads and writes Mockoon's environment JSON files directly, no REST API involved.

Changes made by the MCP server are reflected in Mockoon Desktop automatically if the Environment file watcher is enabled. Go to Application → Settings and set it to Auto for silent reloads.

---

License

MIT — see LICENSE.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use AI & ML servers.