GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
Mock OpenAPI specs locally, or log in to deploy hosted mocks on mockzilla.org from your MCP client.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
MOCKZILLA_TOKEN, MOCKZILLA_MCP_URL, MOCKZILLA_MANAGED_PORT标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"mockzilla": {
"command": "npx",
"args": [
"-y",
"@mockzilla/mcp"
],
"env": {
"MOCKZILLA_TOKEN": "your-value",
"MOCKZILLA_MCP_URL": "your-value",
"MOCKZILLA_MANAGED_PORT": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add mockzilla --env MOCKZILLA_TOKEN=your-value --env MOCKZILLA_MCP_URL=your-value --env MOCKZILLA_MANAGED_PORT=your-value -- npx -y @mockzilla/mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"mockzilla": {
"command": "npx",
"args": [
"-y",
"@mockzilla/mcp"
],
"env": {
"MOCKZILLA_TOKEN": "your-value",
"MOCKZILLA_MCP_URL": "your-value",
"MOCKZILLA_MANAGED_PORT": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"mockzilla": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mockzilla/mcp"
],
"env": {
"MOCKZILLA_TOKEN": "your-value",
"MOCKZILLA_MCP_URL": "your-value",
"MOCKZILLA_MANAGED_PORT": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
MOCKZILLA_MCP_URL envMOCKZILLA_MANAGED_PORT env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日
注册名称已通过 GitHub 账户 mockzilla 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:MOCKZILLA_TOKEN
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.2.28)于28天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
MCP server for Mockzilla - 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
@mockzilla/mcp exposes two planes of tools to your MCP client.
Runs on your machine. No Mockzilla account needed.
From an agent you can:
.mockz archive.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:
Before logging in, only the local plane is exposed. Agents can still help users explore Mockzilla and run local mocks before they sign up.
You can use these directly from Claude Code, Claude Desktop, Cursor, or Gemini CLI once mockzilla is configured as an MCP server.
https://example.com/openapi.yaml expose?"POST /checkout to return a 402 response."openapi.yml into ./api."stripe-test and give me the live URL."One-liner, no config file editing:
claude mcp add -s user mockzilla -- npx -y @mockzilla/mcp@latest
-s user installs for your user account (available in every project).-s user to scope to the current project only.Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": { "mockzilla": { "command": "npx", "args": ["-y", "@mockzilla/mcp@latest"] } } }
Restart Claude Desktop after editing.
Easiest: Settings -> MCP Servers -> Add new MCP server and fill in:
mockzillanpx-y @mockzilla/mcp@latestOr edit ~/.cursor/mcp.json directly:
{
"mcpServers": { "mockzilla": { "command": "npx", "args": ["-y", "@mockzilla/mcp@latest"] } } }
Restart Cursor after editing.
One-liner, no manual JSON editing:
gemini mcp add -s user mockzilla npx -y @mockzilla/mcp@latest
-s user writes to ~/.gemini/settings.json (available in every project).-s user (or use -s project) to scope to the current directory's .gemini/settings.json.Or edit the settings file directly:
{
"mcpServers": { "mockzilla": { "command": "npx", "args": ["-y", "@mockzilla/mcp@latest"] } } }
Restart the Gemini CLI after editing.
@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.
These tools are always available and never leave the user's machine.
PATH -> bridge cache -> go run invocation. Returns install options if nothing matches.~/.cache/mockzilla-mcp/. Methods: download (prebuilt from GitHub releases, default), go-install, go-run. Never touches system PATH.{title, version, openapi_version, endpoint_count, paths}. Also reads .mockz packages.{clean, defect_count, defects}.suggested_input for serve_locally.x-* extensions, and optionally cap optional properties per schema. Writes the simplified spec to disk and returns its path..mockz archive that serve_locally can serve, even from a URL.mockzilla generate, the built-in mockzilla-codegen: Go models from a spec, plus a server, a client or MCP tools when asked. Reads codegen.yaml when the folder has one. Writes the files, lists them first with dry_run, or reports stale ones with check, along with the spec's errors and warnings. Needs CLI 2.11.0 or newer.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.serve_locally.{status, headers, body}, to show a mock's response. Localhost only unless allow_remote is set.status and headers for a failure or a redirect with a real body (404 with an error payload, 201 with a Location); omit response for a body-less 204 or 304. Needs mockzilla 2.8.20 or newer.id with service for one request's full headers and body. Reads the server's own history API, so no account is needed.recording_scope saying what each endpoint is keyed by, since with no match fields every call to an endpoint shares one recording. Writes config.yml only inside the bridge's own mocks dir; for a folder from your own project it returns the YAML and where it goes.https:// .api.mockz.io. The label is the repository name, with -2, -3 if it is taken. No Mockzilla account needed: the first push registers the repository. Merges into an existing services folder rather than replacing it, and never overwrites an existing workflow.~/.config/mockzilla-mcp/, one per server URL, and renewed automatically.@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_contextlist_simslist_catalog_productsdeploy_mock_from_catalogdeploy_mock_from_specdeploy_mock_from_urlwait_for_deployRefer 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.
| 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 i
只显示了开头部分;其余内容请在仓库中阅读