MCP server for Mockzilla. Let Claude Code, Cursor, and Gemini CLI install Mockzilla, inspect OpenAPI specs, and spin up realistic local mock APIs in seconds. No account required for local use.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add mockzilla-mcp -- npx -y @mockzilla/mcp{
"mcpServers": {
"mockzilla-mcp": {
"command": "npx",
"args": ["-y", "@mockzilla/mcp"]
}
}
}MCP Servers overview
# @mockzilla/mcp
MCP server for [Mockzilla](https://mockzilla.org/) - an open-source API mock server for OpenAPI specifications. Let Claude Code, Claude Desktop, Cursor, or Gemini CLI install Mockzilla, inspect OpenAPI specs, and spin up realistic local mock APIs in seconds. No account required for local use.
Source: [github.com/mockzilla/mockzilla-mcp](https://github.com/mockzilla/mockzilla-mcp)
## Use cases
- **Local API development** - mock any OpenAPI spec without a real backend or sandbox account
- **CI/CD integration testing** - zero external dependencies in your pipeline
- **PSP and payment API mocking** - Stripe, PayPal, Adyen from your editor without test accounts
- **Crypto exchange API mocking** - Binance, Bybit without registered accounts
- **Rate limit protection** - develop against OpenAI, Twilio without burning quota
- **Agentic workflows** - let Claude or Cursor spin up and manage mock servers automatically
## Two planes
`@mockzilla/mcp` exposes two planes of tools to your MCP client.
### Local plane (no account required)
Runs on your machine. No Mockzilla account needed.
From an agent you can:
- Check whether the Mockzilla CLI is installed, and install it into a managed cache (no changes to system PATH).
- Inspect and lint an OpenAPI spec, or scan a folder for specs.
- Simplify a spec that is too heavy to mock, or pack services into a `.mockz` archive.
- Serve any OpenAPI spec locally as a portable mock server, and call its endpoints.
- Mock a single HTTP endpoint without a spec.
- List, stop, and clear locally managed mocks.
### Hosted plane (log in once)
Ask your agent to log in, or ask for something hosted. The agent calls the `login` tool, your browser opens the Mockzilla login, and you pick an organization and read-only or read-and-write access. The bridge keeps the login on your machine and renews it by itself. Hosted tools are listed from the start; before you log in, the agent is told to log in first.
Agents can then:
- List deployed sims.
- Browse catalog products.
- Deploy hosted mocks from a spec, URL, or catalog bundle.
- Wait for a deploy and return the live URL.
Before logging in, only the local plane is exposed. Agents can still help users explore Mockzilla and run local mocks before they sign up.
## Example prompts
You can use these directly from Claude Code, Claude Desktop, Cursor, or Gemini CLI once `mockzilla` is configured as an MCP server.
### Local plane (no account)
- "Is the mockzilla CLI installed on this machine?"
- "Install Mockzilla for me."
- "Spin up the Petstore OpenAPI spec locally so I can curl it."
- "What endpoints does `https://example.com/openapi.yaml` expose?"
- "Mock `POST /checkout` to return a 402 response."
- "List the mock endpoints you're managing."
- "Stop the mock server you started."
### Hosted plane (after logging in)
- "Log me in to Mockzilla."
- "List the sims I have deployed."
- "Show me the catalog products."
- "Deploy a Stripe sandbox named `stripe-test` and give me the live URL."
- "Create a hosted mock from this OpenAPI URL on mockzilla.org."
## Install
### Claude Code
One-liner, no config file editing:
```bash
claude mcp add -s user mockzilla -- npx -y @mockzilla/mcp@latest
```
- `-s user` installs for your user account (available in every project).
- Drop `-s user` to scope to the current project only.
### Claude Desktop
Edit `~/Library/Application Support/Claude/claude_desktop_config.json`:
```json
{
"mcpServers": {
"mockzilla": {
"command": "npx",
"args": ["-y", "@mockzilla/mcp@latest"]
}
}
}
```
Restart Claude Desktop after editing.
### Cursor
Easiest: **Settings -> MCP Servers -> Add new MCP server** and fill in:
- Name: `mockzilla`
- Command: `npx`
- Args: `-y @mockzilla/mcp@latest`
Or edit `~/.cursor/mcp.json` directly:
```json
{
"mcpServers": {
"mockzilla": {
"command": "npx",
"args": ["-y", "@mockzilla/mcp@latest"]
}
}
}
```
Restart Cursor after editing.
### Gemini CLI
One-liner, no manual JSON editing:
```bash
gemini mcp add -s user mockzilla npx -y @mockzilla/mcp@latest
```
- `-s user` writes to `~/.gemini/settings.json` (available in every project).
- Drop `-s user` (or use `-s project`) to scope to the current directory's `.gemini/settings.json`.
Or edit the settings file directly:
```json
{
"mcpServers": {
"mockzilla": {
"command": "npx",
"args": ["-y", "@mockzilla/mcp@latest"]
}
}
}
```
Restart the Gemini CLI after editing.
### Why `@latest`?
Without `@latest`, `npx` caches the first resolved version and won't pick up new publishes. Pinning to `@latest` makes `npx` re-check the registry on every spawn, so a Claude / Cursor / Gemini restart is enough to upgrade. Trade-off: ~200 ms extra startup time.
## Local tools
These tools are always available and never leave the user's machine.
### Setup and status
- **`check_cli`**
Resolve Mockzilla on this machine: system `PATH` -> bridge cache -> `go run` invocation. Returns install options if nothing matches.
- **`install_cli`**
Install Mockzilla into `~/.cache/mockzilla-mcp/`. Methods: `download` (prebuilt from GitHub releases, default), `go-install`, `go-run`. Never touches system `PATH`.
- **`bridge_status`**
Report the bridge's version, check npm for newer publishes, and surface upgrade steps.
### OpenAPI exploration and docs
- **`info`**
Summarise an OpenAPI spec without serving it: `{title, version, openapi_version, endpoint_count, paths}`. Also reads `.mockz` packages.
- **`lint`**
Find schemas in a spec that no value can satisfy, so a broken spec is caught before serving it: `{clean, defect_count, defects}`.
- **`discover_specs`**
Scan a directory for OpenAPI specs and folders of static endpoint files. Returns a `suggested_input` for `serve_locally`.
- **`mockzilla_docs_topics`**
List the Mockzilla docs, by category, with each topic's title and summary. The product docs from mockzilla.org and the engine docs both ship inside the package, so no network or login is needed.
- **`mockzilla_docs_read`**
Return the full markdown for one or more topics, or a whole category.
- **`mockzilla_docs_search`**
Keyword search across all docs; returns top sections with snippets.
### Reshaping specs
- **`simplify`**
Drop or reduce union types, strip `x-*` extensions, and optionally cap optional properties per schema. Writes the simplified spec to disk and returns its path.
- **`pack`**
Pack a directory of services into a `.mockz` archive that `serve_locally` can serve, even from a URL.
### Local mocking
- **`serve_locally`**
Start a portable mock server on a free port. Accepts a spec file, directory, or public `https` URL. Returns `{url, port, pid, services}`. For a single spec, `latency`, `errors`, `mount` and `context` add delay, inject error responses, change the mount path, or set replacement values.
- **`stop_locally`**
Stop a server started by `serve_locally`.
- **`call_endpoint`**
Make an HTTP request and return `{status, headers, body}`, to show a mock's response. Localhost only unless `allow_remote` is set.
- **`mock_endpoint`**
Quickly mock a single HTTP endpoint without an OpenAPI spec. Writes a static response into the managed mocks dir and (re)starts the shared server.
- **`list_mock_endpoints`**
List all endpoints currently mocked, plus the running server's URL and the Mockzilla UI URL.
- **`clear_mock_endpoints`**
Wipe all mocks and stop the managed server.
### Account
- **`login`**
Opens the Mockzilla login in the browser, where the user picks an organization and read-only or read-and-write access. Returns right away with the login link. The agent calls a hosted tool again once the user approves. The login is saved under `~/.config/mockzilla-mcp/`, one per server URL, and renewed automatically.
- **`logout`**
Revokes the connection and deletes the saved login. Log out and in again to switch organization or access.
## Hosted tools
`@mockzilla/mcp` lists the hosted tools from the start and forwards them to `mockzilla.org`'s MCP endpoint once you log in. At the time of writing, the hosted surface includes:
- `get_context`
- `list_sims`
- `list_catalog_products`
- `deploy_mock_from_catalog`
- `deploy_mock_from_spec`
- `deploy_mock_from_url`
- `wait_for_deploy`
Refer to the hosted server's docs or the MCP registry entry for the live tool list.
On a machine without a browser, such as CI or a remote server, set `MOCKZILLA_TOKEN` to an API key from the dashboard instead of logging in. The hosted tools are then available from the start.
## Configuration
| Env var | Default | Purpose |
|---------|---------|---------|
| `MOCKZILLA_TOKEN` | unset | API key (`mz_*`) to use instead of logging in, for machines without a browser. |
| `MOCKZILLA_MCP_URL` | `https://platform.mockzilla.org/mcp` | Override the hosted endpoint, e.g. `http://localhost:8000/mcp` for local development. |
| `MOCKZILLA_NO_BROWSER` | unset | Set to `1` to not open a browser on `login`; the agent shows the link instead. |
| `MOCKZILLA_MCP_CLIENT_ID` | `https://mockzilla.org/mcp-client.json` | OAuth client id `login` uses. Override only for local development, e.g. with a client registered on a local server. |
| `MOCKZILLA_BIN_VERSION` | matches bridge version | Pin a specific Mockzilla CLI version for `install_cli` to fetch. |
| `MOCKZILLA_MANAGED_PORT` | `2200` | Preferred port for the `mock_endpoint` server. Falls back to a kernel-picked port if busy. Avoid 3000 (Next.js/React), 5173 (Vite), 8080. Try 2400 or 4444 if 2200 is unavailable. |
| `MOCKZILLA_DOCS_DIR` | unset | Read docs from another build of `docs/`, made by `scripts/build.mjs`, instead of the packaged one. |
## Files
The bridge keeps the CLI and mocks under `~/.cache/mockzilla-mcp/`, and the login under `~/.config/mockzilla-mcp/`:
```text
~/.cache/mockzilla-mcp/
├── bin/mockzilla # downloaded or go-installed binary
├── config.json # { method, version, What people ask about mockzilla-mcp
What is mockzilla/mockzilla-mcp?
+
mockzilla/mockzilla-mcp is mcp servers for the Claude AI ecosystem. MCP server for Mockzilla. Let Claude Code, Cursor, and Gemini CLI install Mockzilla, inspect OpenAPI specs, and spin up realistic local mock APIs in seconds. No account required for local use. It has 5 GitHub stars and its last recorded update is dated 2026-09-14.
How do I install mockzilla-mcp?
+
You can install mockzilla-mcp by cloning the repository (https://github.com/mockzilla/mockzilla-mcp) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is mockzilla/mockzilla-mcp safe to use?
+
Our security agent has analyzed mockzilla/mockzilla-mcp and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains mockzilla/mockzilla-mcp?
+
mockzilla/mockzilla-mcp is maintained by mockzilla. The last recorded GitHub activity is dated 2026-09-14, with 0 open issues.
Are there alternatives to mockzilla-mcp?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy mockzilla-mcp to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/mockzilla-mockzilla-mcp)<a href="https://claudewave.com/repo/mockzilla-mockzilla-mcp"><img src="https://claudewave.com/api/badge/mockzilla-mockzilla-mcp" alt="Featured on ClaudeWave: mockzilla/mockzilla-mcp" width="320" height="64" /></a>More MCP Servers
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ
The fastest path to AI-powered full stack observability, even for lean teams.