MockBase is a powerful, free-to-try mock API server designed to accelerate frontend development and robust API integration testing. It provides a live HTTPS endpoint that can be configured to respond exactly as needed, without any installation or signup required to get started.
Key Features:
- Dynamic and Conditional Responses: Configure routes to return different responses based on various criteria such as query parameters, headers, JSON body paths, GraphQL operation names, or elements within a SOAP envelope. This allows for highly realistic API simulations. Responses can be rendered dynamically using Jinja2 templating, enabling echoing requests, minting UUIDs, or stamping timestamps.
- Stateful CRUD Operations: Enable stateful CRUD with a single click. POST requests can create resources that are genuinely available when subsequently retrieved via GET, backed by Redis, eliminating the need for custom code to manage state.
- Comprehensive Failure Simulation (Chaos Engineering): Go beyond happy-path testing by simulating various failure scenarios.
- Chaos Injection: Deliberately fail a percentage of requests with chosen shapes like slow gateway timeouts, truncated JSON bodies, empty 200 responses, or connection resets. This is weighted to model realistic mixes of success and failure.
- Rate Limit Simulation: Deterministically apply rate limiting, where the Nth request in a window receives a 429 status with a
Retry-Afterheader, crucial for testing backoff logic. - Callouts: Schedule asynchronous webhooks to land at inconvenient moments, testing the resilience of your systems to delayed notifications.
- Delay Injection: Add up to ten seconds of delay to any route to observe the impact of slow networks on your UI and application performance.
- Live Request Inspector: Debug integrations efficiently with a real-time WebSocket stream that displays every incoming request. See method, path, status, headers, request and response bodies, latency, and client IP. You can send test calls directly from the page with custom headers and copy the exact request in various formats (cURL, fetch, axios, Python requests, Go, PHP, Ruby, Java, C#, PowerShell). Sensitive data like authorization headers and cookies are redacted for security. The last 500 requests are browsable for 7 days.
- OpenAPI Integration & Record/Replay:
- Import OpenAPI: Easily import OpenAPI 3.x specifications by pasting, uploading a file, or providing a URL. MockBase parses the spec and shows what routes it will create.
- Record & Replay: Point MockBase at a real API. Unmatched requests are proxied, captured, and can be converted into permanent mock routes with a single click, making it easy to build mocks from existing services.
- Export OpenAPI: Export your configured mocks back into an OpenAPI document, with schemas inferred from examples and shared components declared as
$ref.
- Version Control & Automation:
- Version History: Every save automatically snapshots the previous state, retaining 30 versions per mock for 90 days. Restores are undoable, and you can take named snapshots before critical edits.
- Mock-as-Code: Manage mocks programmatically using a personal API key. The dependency-free
mockbase-cliallows pushing JSON config files to create/update mocks and pulling them back for Git integration or CI/CD pipelines. - MCP Server Integration: Integrate with MCP clients like Claude Desktop or Claude Code to create, edit, and inspect live mock traffic directly, bypassing the dashboard.
MockBase is ideal for developers and QA teams who need a flexible, powerful, and accessible mock API server for rapid prototyping, comprehensive testing of happy and failure paths, and seamless integration with existing development workflows. Dur...





