Return the response you need
Status, headers, body and delay. Use a sequence to fail once and succeed on retry.
A Chrome extension that intercepts REST, Server-Sent Events and WebSocket traffic inside the page. Drive it by hand, or let your AI agent drive it over MCP. No proxy, no certificate, no backend.
AI & MCP
MockPro ships an MCP server with more than 100 tools. Your coding agent creates the mocks, drives the page and reads the result.
add_ruleupdate_rulemock_from_openapirecord_then_replay read_network_logsread_console_logssnapshot_pagequery_dom clicktypehoverscrollnavigate capture_screenshotrun_lighthousestart_chrome_debugreplay_request
A local MCP server links your agent to the extension over 127.0.0.1.
No cloud relay, no account. Find your extension id on the MCP page of the MockPro dashboard.
claude mcp add --scope user --transport stdio mockpro -- \
npx -y mockpro-mcp --extension-id <YOUR_EXTENSION_ID> --readonly The agent reads rules, logs and the page, and changes nothing.
--approve Every click, type and navigation waits for your Allow in the browser.
default The agent mocks, clicks and types on its own while you watch.
Ask why a request fails and let the agent draft the fix. It reads the logs and the page, and every change waits for your Allow. Bring your own model: your API key stays in your browser and is sent only to the provider you choose.
Rule actions
Each rule matches a URL pattern and method, then mocks the response, edits the real one, or makes it fail.
Status, headers, body and delay. Use a sequence to fail once and succeed on retry.
The request goes to the network. Path operations edit its JSON on the way back, with a diff preview.
Network errors, timeouts, cut bodies, malformed JSON and dropped sockets, on any share of requests.
Logs show status, headers and body for each request. "Mock this response" turns a real reply into a rule draft.
Script Server-Sent Event sequences and WebSocket replies, or drop the connection mid-stream.
Live requests for the current tab and rules you can edit in place, without leaving the page.
Record a session with its request timeline, or capture the viewport, an element or the full page.
Developer tools
No tab-switching. Every tool opens inside the MockPro dashboard and runs offline.
No. MockPro runs entirely in the page via the Chrome extension — it monkey-patches fetch, XHR, EventSource, and WebSocket before your app code runs. No proxy server, no CA cert install, no system-level changes.
REST requests via fetch and XMLHttpRequest, Server-Sent Events via EventSource, and WebSocket connections (ws:// and wss://). All three are intercepted in the page world, so every request your app makes is covered.
Not to us: MockPro has no server and no analytics. Rules are stored in your browser and logs are held in memory only. Data leaves the browser only when you choose to, for example when the side-panel agent sends your chat and the context it reads to the model provider you configured. See the privacy policy for the full details.
Yes. The extension and the mockpro-mcp server are free to install and use. The side-panel agent uses your own model API key, which your provider may bill.
Register the mockpro-mcp server once with your MCP client (the AI section above has the exact command for Claude Code). The agent then talks to the extension over a local WebSocket on 127.0.0.1:27319 and can create mock rules, read logs, snapshot the page and click or type on it. Start with --readonly or --approve if you want to stay in control of every action.
Over MCP: any client that runs a local stdio MCP server, such as Claude Code, Claude Desktop, Cursor, Codex or VS Code. In the side-panel agent: Anthropic, any OpenAI-compatible endpoint (OpenAI, OpenRouter, Ollama, LM Studio) or Chrome built-in AI, with your own key.
Install MockPro, add a rule, reload the page. Then hand the same tools to your AI agent.