Mock and Take Control of APIs You Don’t Own

Build better software by mocking external APIs and testing without dependencies.
Free, open-source, and under your control — your data is yours.

Mokapi API Mock Tool

Develop Without Waiting

Build and test instantly, even when external APIs are unavailable or unpredictable.

Test With Confidence

Run realistic tests that match production API behavior.

Automate Workflows

Automate API testing in your CI/CD pipelines for faster feedback.

Build Better Software with Mokapi

Build and test with confidence, even when APIs are outside your control.

Mokapi empowers developers to mock, simulate, and explore APIs, automate workflows, and unlock faster feedback—creating stable and reliable development environments.

Prevent Bugs — Reduce Dependencies — Simulate APIs

Create stable development and test environments to increase speed, accuracy, and efficiency.

Mokapi offers a set of powerful features to mock APIs, automate workflows, and generate realistic test data.

Customize Mocks with JavaScript

Simulate real-world API behavior dynamically. Adjust mocks on the fly and create flexible, rule-based responses that match production environments.

JavaScript code showing how to mock an API realistically

Run Mocks Anywhere—Local, Cloud, or CI/CD

Run Mokapi in any environment—local development, Docker, cloud, or CI/CD pipelines. Test APIs seamlessly, wherever your services are deployed.

Log output starting Mokapi in a Docker image.

Define Mocks as Code

Manage all API mocks, configurations, and behaviors as code. Track changes, simplify audits, and ensure consistency across environments.

OpenAPI spec and scripts to generate mock data.

Generate Realistic Test Data

Create dynamic, lifelike data for your mocks. Simulate users, transactions, messages, and more to improve testing accuracy.

Mokapi Faker decision tree for generating realistic random data.

Easily Patch & Merge Configurations

Use patch files to modify API specs without touching the original. Apply changes at runtime with hot-reloading for flexible mock management.

OpenAPI spec patched at runtime with additional files.

Streamline Your Testing Workflow

Mock APIs and services quickly, simulate real-world conditions, test edge cases, and validate integrations—without relying on external systems.

Example of using Mokapi to test a system with realistic data.

Visualize Your Mock APIs

View requests, responses, and sample data in real time with Mokapi’s dashboard for easier testing and validation.

Mokapi dashboard showing all mocked APIs with metrics and logs.

Use Cases & Tutorials

Mock REST APIs with OpenAPI

Learn how to mock an OpenAPI spec, configure Mokapi, and run it in Docker. Test REST endpoints without waiting for live APIs.

Start Tutorial

Simulate Kafka Topics with AsyncAPI

Test Kafka producers and consumers by mocking topics according to your AsyncAPI spec. Ensure reliable message generation and integration without a live Kafka cluster.

Start Tutorial

Mock LDAP Authentication

Step-by-step guide to mock LDAP login using Mokapi and Node.js. Test authentication flows without a real server.

Start Tutorial

Mock SMTP Email Sending

Simulate an SMTP server and send test emails using Node.js. Perfect for validating email workflows without real mail servers.

Start Tutorial

See Mokapi in Action

Explore how easily you can mock APIs and generate realistic data for testing—no backend required.