
Hoverfly
STDIOMCP server that exposes Hoverfly for dynamic API mocking in AI assistants
MCP server that exposes Hoverfly for dynamic API mocking in AI assistants
A Spring Boot-based Model Context Protocol (MCP) server that exposes Hoverfly as a programmable tool for AI assistants like Cursor, Claude Desktop, GitHub Copilot, or any other assistant supporting MCP. It enables dynamic mocking of third-party APIs to unblock development and testing when external services are unavailable.
git clone <repository-url> cd hoverfly-mcp-server mvn clean package java -jar target/hoverfly-mcp-server-0.0.1-SNAPSHOT.jar
To use this server with an AI assistant that supports Model Context Protocol (MCP), add the following to your .mcp.json
or mcp.config.json
:
{ "mcpServers": { "hoverfly-mcp": { "command": "docker", "args": [ "run", "-i", "--rm", "-p 8500:8500", "-p 8888:8888", "docker.io/kapish88/hoverfly-mcp-server" ] } } }
8500
: Hoverfly proxy port (mocked services)8888
: Hoverfly admin port (mock control API)Make sure Docker is installed. The image will be pulled automatically if not available locally.
Tool Name | Description |
---|---|
get_hoverfly_status | Checks if Hoverfly is running |
start_hoverfly_web_server | Starts Hoverfly in simulate mode as a web server |
stop_hoverfly_server | Stops Hoverfly and clears mocks |
fetch_hoverfly_version | Returns Hoverfly version |
list_hoverfly_mocks | Lists all active mock APIs (request-response pairs) |
add_hoverfly_mock | Adds a mock API using a JSON RequestResponsePair definition |
clear_hoverfly_mocks | Removes all existing mock APIs |
show_hoverfly_endpoints_info | Returns key Hoverfly endpoints and example usage |
get_hoverfly_documentation | Returns Hoverfly documentation for a specific topic |
suggest_hoverfly_matchers | Suggests matcher options for a given request-response pair JSON |
get_hoverfly_debug_logs | Fetches recent Hoverfly logs for debugging (limit is optional) |
These tools can be invoked programmatically by AI assistants through the MCP interface.
See LICENSE file for licensing terms.