# APIMock

> APIMock is a free MCP server for developer tools. Create and debug hosted mock APIs, CRUD resources and injected faults from a coding agent. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** Web, API
- **Website:** https://apimock.dev/docs/mcp
- **MCP Registry name:** dev.apimock/apimock
- **Categories:** developer tools
- **Listing updated:** 2026-11-16

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://app.apimock.dev/api/mcp
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "apimock": {
      "url": "https://app.apimock.dev/api/mcp"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

- `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.

## 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

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/apimock
