Skip to content
MCP server

APIMock

Create and debug hosted mock APIs, CRUD resources and injected faults from a coding agent

Install
Pricing
Free
Platforms
Web, API
Runs
Remotely
Version
1.2.0
Listing updated
1 day ago

About APIMock

APIMock is a free MCP server for developer tools. It runs as a hosted remote server, so there is nothing to install locally.

APIMock's MCP server lets a coding agent build a mock backend while it writes the frontend. It can create static or templated endpoints with response variants, scaffold several stateful CRUD resources with seed records in one call, import an OpenAPI or Swagger spec, and simulate which endpoint and variant a request would hit without sending it.

For debugging, inspect_failed_requests shows recent 4xx, 5xx and unmatched requests with match diagnostics, and heal_mock_endpoint fixes a body, status or schema after a failure. Fault rules inject errors, latency or broken payloads for a limited time so you can test how code copes. Each workspace's contract is exposed as an OpenAPI 3.1 file and a TypeScript types file, and three prompts cover mocking a backend from frontend code, debugging failures and testing error states.

Sign in with OAuth or use a personal token. Read tokens can only list and inspect, write tokens can change things, and tokens expire after 90 days by default. The pricing page says everything is free, with 50,000 mock requests a month per workspace and up to 3 workspaces.

Install

Run in a terminal

claude mcp add --transport http apimock https://app.apimock.dev/api/mcp

Add to Settings → Connectors → Add custom connector

https://app.apimock.dev/api/mcp
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "apimock": {
      "url": "https://app.apimock.dev/api/mcp"
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "apimock": {
      "type": "http",
      "url": "https://app.apimock.dev/api/mcp"
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "apimock": {
      "serverUrl": "https://app.apimock.dev/api/mcp"
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "apimock": {
      "type": "http",
      "url": "https://app.apimock.dev/api/mcp"
    }
  }
}

Tools this server provides (20)

Taken from the project documentation; the running server may differ.

list_workspaces
Lists your workspaces with their slugs.
list_folders
Lists folders and subfolders.
create_folder
Creates a folder or subfolder.
delete_folder
Deletes a folder and its contents unless it holds resources.
list_endpoints
Lists every endpoint's method, route and status.
get_endpoint
Returns one endpoint's full configuration.
create_endpoint
Creates a static or templated mock response.
update_endpoint
Changes endpoint settings.
simulate_request
Shows which endpoint and variant a request would get.
delete_endpoint
Deletes one endpoint.
import_openapi
Imports an OpenAPI or Swagger spec.
scaffold_backend
Creates several resources with seed records in one call.
create_resource
Creates one stateful CRUD collection.
list_resources
Lists resources with fields and record counts.
delete_resource
Deletes a resource with its records and routes.
inspect_failed_requests
Shows recent 4xx, 5xx and unmatched requests.
heal_mock_endpoint
Fixes an endpoint after a failure.
set_fault_rule
Injects errors, latency or broken payloads.
list_fault_rules
Lists active fault rules.
clear_fault_rules
Removes one or all fault rules.

What it does

Mock endpoints
Create static or templated responses with variants.
Stateful CRUD resources
Scaffold collections with seed records in one call.
OpenAPI import
Import an OpenAPI or Swagger spec from text or URL.
Failure inspection
Review recent failed and unmatched requests with diagnostics.
Fault injection
Add errors, latency or broken payloads for a set time.
Contract as resources
Read OpenAPI 3.1 and TypeScript types per workspace.

Good for

  • Scaffold a mock backend from existing frontend code
  • Debug why a request returned 404 or 500 on a mock
  • Test how an app handles a 503, 429 or slow response
  • Turn an OpenAPI spec into live mock endpoints

Pricing

Free

Free; 50,000 mock requests/month per workspace, up to 3 workspaces

Prices change. Check apimock.dev before you buy.

APIMock FAQ

Is APIMock free?

Yes. The pricing page says there are no paid plans, with 50,000 mock requests a month per workspace.

How do I sign in?

Use OAuth, or a personal access token that starts with am_pat_ for clients like Cursor.

Can I connect read-only?

Yes. Read tokens only list and inspect; untick the write option when signing in.

What are the rate limits?

120 MCP requests a minute per user, with 10 a minute for import and scaffold tools.

How do I add APIMock to Claude Code?

Run this command in your terminal: claude mcp add --transport http apimock https://app.apimock.dev/api/mcp

What are the best alternatives to APIMock?

The closest alternatives to APIMock are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

Alternatives to APIMock

  1. REA

    MCP server

    CLI and MCP server that lets coding agents reverse engineer apps and binaries

    Runs locally
    • Open source
    • 464K GitHub stars
    • Developer tools
  2. Codebase Memory

    MCP server

    Local MCP server that builds a code knowledge graph for AI coding agents

    Runs locally
    • Open source
    • 48.7K GitHub stars
    • Knowledge and memory
  3. GitHub

    MCP server

    Official MCP server connecting AI assistants to GitHub repos, issues and workflows

    Not checked yet
    • Remote
    • Open source
    • 34.5K GitHub stars
    • Developer tools
  4. MCP toolkit giving coding agents symbol-level code retrieval and editing

    Runs locally
    • Open source
    • 31.5K GitHub stars
    • Developer tools
  5. XERJ

    MCP server

    Local search engine for AI agents with cited answers over your code and docs

    Runs locally
    • Open source
    • 19.2K GitHub stars
    • Knowledge and memory
  6. Ouroboros

    MCP server

    Spec-first layer that pins requirements and verifies results of AI coding agent work

    Runs locally
    • Open source
    • 6.4K GitHub stars
    • Developer tools