WireMock API Mocking and Testing
Unified capability for API mocking and integration testing workflows using WireMock. Enables developers and QA engineers to create, manage, and verify mock API stubs; record and replay real traffic; debug unmatched requests; and manage stateful test scenarios — all through a single orchestrated interface.
What You Can Do
MCP Tools
list-stub-mappings
List all registered stub mappings. Use this to see what API endpoints are currently mocked.
create-stub-mapping
Create a new stub mapping to mock an API endpoint with a specific request pattern and response.
get-stub-mapping
Get a specific stub mapping by its UUID to inspect its request/response configuration.
update-stub-mapping
Update an existing stub mapping to change its request matcher or response.
delete-stub-mapping
Remove a specific stub mapping by UUID.
import-stub-mappings
Import a batch of stub mappings from a JSON definition.
find-stub-mappings-by-metadata
Find stub mappings that match specific metadata criteria.
list-requests
List all requests logged in the request journal since the last reset.
find-requests
Find logged requests matching specific URL and method criteria.
count-requests
Count how many requests matching specific criteria were received.
get-unmatched-requests
Get requests that did not match any stub mapping — useful for debugging missing stubs.
find-near-misses-for-request
Find stub mappings that are closest to matching a specific request — helps debug near misses.
find-near-misses-for-pattern
Find logged requests closest to matching a specific request pattern.
start-recording
Start recording real API traffic as stub mappings from a target base URL.
stop-recording
Stop recording and retrieve the captured stub mappings.
get-recording-status
Check whether WireMock is currently recording (NeverStarted, Recording, or Stopped).
take-snapshot
Take a snapshot of current request traffic as stub mappings.
list-scenarios
List all stateful scenarios and their current state for stateful mock testing.
reset-scenarios
Reset all scenario states back to their initial state.
update-settings
Update global WireMock server settings such as fixed response delay.
reset-all
Reset all stub mappings and the request journal to clean default state.