@mhdd_24/api-mocking-mcp
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., "@@mhdd_24/api-mocking-mcp create a mock endpoint for GET /users that returns a sample list"
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.
@mhdd_24/api-mocking-mcp
Create mock endpoints and responses.
Same architecture as @mhdd_24/sublime-mcp.
Full documentation: docs/WIKI.md
How it works (30 seconds)
You (chat) → MCP client → api-mocking-mcp → API Mocking APIs / CLIs / local toolsRelated MCP server: CAP-based S/4HANA Business Partner MCP Server
Prerequisites
Requirement | Notes |
Node.js 18+ | ESM TypeScript MCP server |
Credentials / CLIs | See environment variables below |
Install
Option A — npm (after publish)
npm install -g @mhdd_24/api-mocking-mcpOption B — npx
npx @mhdd_24/api-mocking-mcpOption C — clone and build
git clone https://github.com/Mhdd-24/API-Mocking-MCP.git
cd API-Mocking-MCP
npm install
npm run build
node dist/index.jsConfigure Cursor
Edit ~/.cursor/mcp.json:
{
"mcpServers": {
"apimock": {
"command": "npx",
"args": ["-y", "@mhdd_24/api-mocking-mcp"],
"env": {
"PROJECT_ROOT": "..."
}
}
}
}Local development:
{
"command": "node",
"args": ["/absolute/path/to/API-Mocking-MCP/dist/index.js"]
}Environment variables
Variable | Description |
| Default project/repository root |
Tools
Tool | Description |
| Health check for API Mocking MCP. |
| Generate a mock response for an endpoint. |
| Generate a mock collection JSON. |
License
ISC
Available Tools
3 toolsapimock_collectionC
Generate a mock collection JSON.
Inputs: name (required), endpoints (required).
apimock_mockC
Generate a mock response for an endpoint.
Inputs: path (required), method (required), schema.
apimock_statusB
Health check for API Mocking MCP.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools are clearly distinct: status is a health check, mock generates a single endpoint response, and collection generates a full mock collection. There is no ambiguity in their purposes.
All tool names share the consistent apimock_ prefix and follow a simple noun pattern (status, mock, collection). This makes the toolset predictable and easy to navigate.
Three tools is well-scoped for a simple API mocking utility. Each tool serves a single clear purpose without unnecessary bloat.
The core capabilities of checking service health, generating a single mock, and generating a collection are covered. A minor gap is the lack of configuration options (e.g., status codes or headers), but the surface is otherwise sufficient for basic mocking.
Maintenance
Related MCP Connectors
Mock REST APIs, fake OAuth2/OIDC provider, uptime monitors + heartbeats, live badge/QR images.
Hosted mock APIs from OpenAPI, TypeScript or Postman: realistic data, errors and latency on demand.
Build, debug and break hosted mock APIs from Claude: endpoints, stateful CRUD data, OpenAPI import, response variants and fault injection.
AI-native mock API server with MCP. Create REST/SOAP mocks from Claude, Cursor, or Windsurf.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables 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.MIT
- AlicenseNot gradedqualityDmaintenanceEnables testing and development against a mock S/4HANA Business Partner API, exposing customer and customer address entities through the MCP protocol.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables local agent interactions with a mock Study of Us API through tools for health checks, catalogs, current user info, reports, and voting.MIT
- AlicenseNot gradedqualityCmaintenanceEnables API development directly from MCP clients by creating and editing collections, running requests through the real CLI, generating documentation, and starting mock servers.1MIT