v3.27.0 · Built for AI agents over MCP

Mock, modify and break requests in the browser

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.

  • fetch
  • XHR
  • SSE
  • WebSocket

AI & MCP

Let your AI agent mock and test it

MockPro ships an MCP server with more than 100 tools. Your coding agent creates the mocks, drives the page and reads the result.

Mock

add_ruleupdate_rulemock_from_openapirecord_then_replay

Observe

read_network_logsread_console_logssnapshot_pagequery_dom

Act

clicktypehoverscrollnavigate

Debug

capture_screenshotrun_lighthousestart_chrome_debugreplay_request

Connect in one command

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.

terminal sh
claude mcp add --scope user --transport stdio mockpro -- \
  npx -y mockpro-mcp --extension-id <YOUR_EXTENSION_ID>
  • Claude Code
  • Claude Desktop
  • Cursor
  • Codex
  • VS Code
  • Any MCP client
--readonly

Read-only

The agent reads rules, logs and the page, and changes nothing.

default

Full access

The agent mocks, clicks and types on its own while you watch.

mockpro-mcp on npm →

Or chat with an agent in the side panel

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.

  • AnthropicClaude models
  • OpenAIGPT models
  • OpenRouterAny hosted model
  • Ollama · LM StudioLocal, offline
  • Chrome built-in AINo key needed

Rule actions

Three things you can do to a request

Each rule matches a URL pattern and method, then mocks the response, edits the real one, or makes it fail.

Mock

Return the response you need

Status, headers, body and delay. Use a sequence to fail once and succeed on retry.

Modify

Keep the real response, change one field

The request goes to the network. Path operations edit its JSON on the way back, with a diff preview.

Fault

Break things on purpose

Network errors, timeouts, cut bodies, malformed JSON and dropped sockets, on any share of requests.

Every response, one click to mock

Logs show status, headers and body for each request. "Mock this response" turns a real reply into a rule draft.

Streams and sockets

Script Server-Sent Event sequences and WebSocket replies, or drop the connection mid-stream.

A side panel next to your app

Live requests for the current tab and rules you can edit in place, without leaving the page.

Sessions and captures

Record a session with its request timeline, or capture the viewport, an element or the full page.

Developer tools

28 utilities built right in

No tab-switching. Every tool opens inside the MockPro dashboard and runs offline.

Encode / decode

  • Base64 encode/decode Encode and decode Base64 with UTF-8 support
  • URL encode/decode Encode/decode URL components and parse URLs

Formatters

  • JSON formatter Pretty-print, minify, validate, and sort JSON keys
  • Markdown preview Live GFM preview with sanitized HTML, syntax highlighting, and cheatsheet

Generators

  • UUID generator Generate random UUID v4 values
  • Hash generator Generate MD5, SHA-1, SHA-256, SHA-512 hashes
  • Password generator Generate secure random passwords and secrets
  • QR code generator Generate QR codes from text or URLs
  • Mock data generator Generate typed mock datasets from a schema with seeded reproducible output

Converters

  • Unix timestamp Convert between Unix timestamps and dates
  • String case Convert between camelCase, snake_case, kebab-case, etc.
  • Color converter Convert between HEX, RGB, and HSL color formats
  • JSON to TypeScript Generate TypeScript interfaces from JSON
  • cURL to code Convert cURL commands to fetch/axios code
  • Timezone converter Convert times across multiple timezones
  • YAML / CSV / JSON converter Convert bidirectionally between JSON, YAML, and CSV with type preservation

Inspectors

  • JWT decoder Decode and inspect JSON Web Tokens
  • Query string Parse and build URL query strings
  • Regex tester Test regular expressions with match highlighting
  • Text diff Compare two texts with highlighted differences
  • WCAG contrast Check color contrast for WCAG accessibility
  • Cron parser Parse cron expressions and show next executions
  • JSON tree viewer Explore JSON as a collapsible tree with click-to-copy paths and search
  • JSON diff Compare two JSON values and see a structural diff with added, removed, and changed nodes
  • Clipboard inspector Inspect, compare, save, and restore clipboard formats in a private in-memory session
  • Local File Workspace Browse local projects read-only by default, with explicitly consented Edit and Save

Reference

  • HTTP status codes Searchable HTTP status code reference

Image

  • Image Studio Crop, rotate, resize, adjust, redact, inspect, compress, and export images offline

Frequently asked questions

Does MockPro need a proxy or certificate?

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.

What kinds of requests can it mock?

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.

Is my data sent anywhere?

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.

Is MockPro free?

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.

How does the AI / MCP integration work?

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.

Which AI models can I use?

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.

Mock your first request in a minute

Install MockPro, add a rule, reload the page. Then hand the same tools to your AI agent.