# API Mock Server

> Spins up a realistic mock REST API from your OpenAPI spec or a plain description — latency simulation, error injection, and auth stubs included. For frontend teams blocked waiting on backend endpoints.

- Tier: Free
- Category: Web
- Works with: claude-code, cursor, codex, gemini-cli, opencode
- Tags: api, mock, openapi, rest, testing
- Canonical HTML URL: https://bestagentskills.xyz/zh/skills/api-mock-server

## Installation

## Claude Code

```bash
npx skills add bestagentskills/api-mock-server --skill api-mock-server
```

## Cursor

Add to your `.muse/rules/api-mock-server.mdc`, or install via CLI:

```bash
npx skills add bestagentskills/api-mock-server --agent cursor --skill api-mock-server
```

## Codex

```bash
npx skills add bestagentskills/api-mock-server --agent codex --skill api-mock-server
```

## Gemini CLI / OpenCode

```bash
npx skills add bestagentskills/api-mock-server --skill api-mock-server
```

Restart your agent session, then ask it to use the "API Mock Server" skill.

Catalog: https://bestagentskills.xyz/zh/skills.md