MCP server for James Bloom MockServer - create expectations, verify requests, and manage mock state
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
An MCP (Model Context Protocol) server for interacting with James Bloom's MockServer. This enables AI assistants to create mock HTTP expectations, verify requests, clear state, and manage MockServer instances programmatically.
You need a running MockServer instance:
| Variable | Description | Default |
|---|---|---|
MOCKSERVER_HOST | MockServer hostname | localhost |
MOCKSERVER_PORT | MockServer port | 1080 |
Add to your MCP client configuration file (e.g., Claude Desktop, Kiro, Cursor):
For shared team MockServer, change MOCKSERVER_HOST to your server's address.
Create a mock HTTP expectation on MockServer.
Parameters:
httpRequest (required): Request matching criteria
method: HTTP method (GET, POST, PUT, DELETE, etc.)path: URL path to matchqueryStringParameters: Query parameters to matchheaders: Headers to matchbody: Body matcher with type (STRING, JSON, REGEX, XPATH, JSON_PATH) and valuehttpResponse: Response configuration
statusCode: HTTP status codeheaders: Response headersbody: Response body (string or object)delay: Response delay with timeUnit and valuetimes: How many times to match (remainingTimes, unlimited)timeToLive: Expectation lifetime (timeUnit, timeToLive)Example:
Verify that requests matching criteria were received by MockServer.
Parameters:
httpRequest (required): Request matching criteria (same as create_expectation)times: Expected request count
atLeast: Minimum number of requestsatMost: Maximum number of requestsexactly: Exact number of requestsExample:
Clear expectations and recorded requests from MockServer.
Parameters:
httpRequest (optional): Request matcher to clear specific expectations. If not provided, clears all.Example:
Perform a full reset of MockServer, clearing all expectations and recorded requests.
Parameters: None
Retrieve recorded requests from MockServer.
Parameters:
httpRequest (optional): Request matcher to filter recorded requestsExample:
Get MockServer connection status and configuration.
Parameters: None
API mocking enables early testing β start building and testing your frontend or integrations before the backend is ready. No more waiting. Ship faster.
MIT
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/mcpclientmock)<a href="https://allmcps.com/mcp/mcpclientmock"><img src="https://allmcps.com/api/badge/mcpclientmock?style=directory" alt="MCPClientMock on AllMCPs" /></a>