Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Api Mock Generator

FreeNot checked

Enables instant creation of mock API servers from OpenAPI specs or natural language descriptions, with built-in fake data generation, CRUD endpoints, and config

GitHubEmbed

About

Enables instant creation of mock API servers from OpenAPI specs or natural language descriptions, with built-in fake data generation, CRUD endpoints, and configurable delays/errors for testing.

README

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

Tool Description
mock_from_openapi Generate mock server from OpenAPI 3.x spec
mock_from_description Generate mock from natural language (e.g., "todo app with users, todos, auth")
generate_types Generate TypeScript interfaces
generate_client Generate fetch-based API client SDK
mock_config Configure 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"]
    }
  }
}

Links

License

MIT

from github.com/lazymac2x/api-mock-generator

Installing Api Mock Generator

This server has no published package — it is built from source. Open the repository and follow its README.

▸ github.com/lazymac2x/api-mock-generator

FAQ

Is Api Mock Generator MCP free?

Yes, Api Mock Generator MCP is free — one-click install via Unyly at no cost.

Does Api Mock Generator need an API key?

No, Api Mock Generator runs without API keys or environment variables.

Is Api Mock Generator hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Api Mock Generator in Claude Desktop, Claude Code or Cursor?

Open Api Mock Generator on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Related MCPs

Compare Api Mock Generator with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All development MCPs