api-mock-generator
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@api-mock-generatormock a todo API with users and tasks"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
API Mock Generator
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 startRelated MCP server: Mockloop MCP
MCP Tools
Tool | Description |
| Generate mock server from OpenAPI 3.x spec |
| Generate mock from natural language (e.g., "todo app with users, todos, auth") |
| Generate TypeScript interfaces |
| Generate fetch-based API client SDK |
| 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-generatorAs MCP Server
{
"mcpServers": {
"api-mock-generator": {
"command": "node",
"args": ["node_modules/@lazymac/api-mock-generator/src/main.js"]
}
}
}Links
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
AI-native mock API server with MCP. Create REST/SOAP mocks from Claude, Cursor, or Windsurf.
AI-callable tools for API mocking, testing, monitoring, security, and automation.
Hosted MCP endpoint with realistic fake data for prototyping agents. 12 tools, no setup.
Mock REST APIs, fake OAuth2/OIDC provider, uptime monitors + heartbeats, live badge/QR images.
Related MCP Servers
AlicenseNot gradedqualityAmaintenanceA Model Context Protocol server that generates and runs mock API servers from API documentation like OpenAPI/Swagger specs, enabling developers and AI assistants to quickly spin up mock backends for development and testing.17MIT- AlicenseNot gradedqualityNot gradedmaintenanceAn Intelligent Model Context Protocol server that generates mock servers from OpenAPI specifications, featuring advanced logging, performance analytics, and server discovery for AI-assisted API development.MIT
- AlicenseAqualityBmaintenanceA high-performance, multi-protocol API mock server with 18 built-in MCP tools for managing HTTP, GraphQL, gRPC, WebSocket, MQTT, SSE, and SOAP mocks, chaos engineering, stateful CRUD resources, and request verification.18146Apache 2.0
- AlicenseNot gradedqualityBmaintenanceMock Server AI - MCP server providing AI-powered tools and automation by MEOK AI Labs7 npm47 PyPIMIT