Mock REST, WebSocket, SSE, MQTT, gRPC & GraphQL APIs offline on your device.
Read full description
Mock Server Studio turns your Android phone into an offline local mock backend and multi-protocol API lab. Built for mobile app developers, QA engineers, frontend teams, and IoT creators who need instant endpoint testing without cloud servers or internet access.
Run a mock server on local Wi-Fi, hotspots, or loopback (localhost). Any laptop, browser, emulator, or microcontroller on your network can connect and consume mock data immediately.
MULTI-PROTOCOL ENGINE
• Full REST API Simulation
Mock GET, POST, PUT, PATCH, and DELETE endpoints with custom status codes (100–599) and latency delays. Return static or templated JSON, text, HTML, and binary payloads (Mock SVG, PNG, PDF).
• MQTT 3.1.1 Broker (Port 1883)
Embedded MQTT broker for IoT prototyping (ESP32, Arduino, Raspberry Pi). Handles CONNECT, PUBLISH, SUBSCRIBE, PINGREQ, and retained messages with zero cloud latency.
• Server-Sent Events (SSE) & AI Streaming
Test AI interfaces without live fees. Stream token payloads using OpenAI formats (chat.completion.chunk ending in [DONE]), or configure continuous JSON tickers.
• WebSockets & Socket.io Duplex
- WebSocket (ws://): Handshake, welcome frames, message echo, and periodic telemetry broadcasts.
- Socket.io: Engine.IO v4 handshake (/socket.io/?EIO=4), heartbeats, and client event echo.
• gRPC-Web Gateway
Unary gRPC-Web emulation supporting application/grpc-web+proto and text with grpc-status: 0 OK trailers for rapid client integration.
• GraphQL Gateway
Serve POST requests to /graphql with dynamic operation matching based on operationName fields or parsed query strings.
• Model Context Protocol (MCP Server)
POST /mcp JSON-RPC provider (tools/list and tools/call) enabling local AI coding agents like Claude Desktop and Cursor to discover mock endpoints dynamically.
SIMULATION & RESILIENCE
• Stateful Collections (Persistent CRUD)
Convert REST endpoints into persistent SQLite tables. POST creates records with auto UUIDs, GET fetches collections, and PUT/PATCH/DELETE modify records across app restarts.
• Workspaces & .local Domains (mDNS)
Organize mock endpoints into isolated project collections. Custom hostnames broadcast via mDNS over Wi-Fi (e.g., http://jobcade.local:8080) with automatic Host routing.
• Chaos Engineering & Fault Injection
Simulate network instability before production:
- Latency Jitter: Inject random latency spikes (ms).
- Failure Injection: Configurable fault rates triggering simulated 500 Internal Server Errors with x-chaos headers.
• Webhooks & Dynamic Templating
- Trigger automated POST webhooks to external targets after a configurable delay (up to 5 min).
- Template Tags: Dynamic mock schemas with {{uuid}}, {{timestamp}}, {{random.name}}, {{random.email}}, {{random.city}}, {{random.price}}, and context echoing ({{params.id}}, {{query.page}}, {{header.auth}}).
INSPECTOR, IMPORT & EXPORT
• Live Traffic Inspector
Real-time packet inspector filtered by protocol (REST, SSE, WS, Socket.io, GraphQL, MCP, MQTT, gRPC):
- Inspect headers, query parameters, payloads, and latency analytics.
- Multipart form-data decoding with file upload previews.
- Instant CLI generator: Output ready-to-run curl, grpcurl, mosquitto_pub, or websocat commands.
• Import & Export Suite
- Bulk Import: Load Postman Collections (v2/v2.1) and browser HAR files from storage or clipboard.
- Export Anywhere: Generate OpenAPI 3.0.3 contracts, Postman Collections, HAR session replays, and PDF Audit Reports.
• Instant Scannable QR Connection
Generate clean, ISO-standard QR codes on your dashboard. Point another phone or laptop camera to open base server endpoints instantly without typing IP addresses.
• Android Emulator Ready
Direct tunneling via "adb reverse tcp:8080 tcp:8080". Foreground service notification prevents OS termination during background testing.
Mock Server Studio delivers private, zero-tracking, 100% offline local API mocking right in your pocket. Developed by LKPixel.