API Mock Generator - Instant Mock Server avatar

API Mock Generator - Instant Mock Server

Under maintenance

Pricing

Pay per usage

Go to Apify Store
API Mock Generator - Instant Mock Server

API Mock Generator - Instant Mock Server

Under maintenance

🔥 7-DAY LAUNCH SPRINT (May 1–8, 2026): First 100 runs free for new users. Generate realistic mock API responses from JSON schemas or OpenAPI specifications. Create test fixtures, simulate API endpoints, and generate sample data for frontend development.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

2x lazymac

2x lazymac

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Share

API Mock Generator

npm License: MIT

Describe your API in English. Get a running mock server. Generate mock API servers instantly from OpenAPI specs or natural language descriptions. MCP-enabled for AI coding agents.

Quick Start

npm install
npm start

MCP Tools

ToolDescription
mock_from_openapiGenerate mock server from OpenAPI 3.x spec
mock_from_descriptionGenerate mock from natural language (e.g., "todo app with users, todos, auth")
generate_typesGenerate TypeScript interfaces
generate_clientGenerate fetch-based API client SDK
mock_configConfigure delay, error rates, pagination

Features

  • Zero external API dependencies — all data generation is built-in
  • Contextual fake data — names for name fields, emails for email fields, dates for timestamps
  • CRUD endpoints — auto-generated list, get, create, update, delete
  • Pagination — built-in page/limit support on list endpoints
  • Request logging — GET /_logs to inspect all requests
  • Error simulation — configurable error rate for resilience testing
  • Response delay — simulate slow networks
  • TypeScript types — generate interfaces for all resources
  • Client SDK — ready-to-use fetch-based API client

Install

$npm i @lazymac/api-mock-generator

As MCP Server

{
"mcpServers": {
"api-mock-generator": {
"command": "node",
"args": ["node_modules/@lazymac/api-mock-generator/src/main.js"]
}
}
}

License

MIT