NewYour AI agent can build the mocks (MCP)
Mock API server for REST, GraphQL, WebSocket and SOAP
Create an endpoint, get a URL and point your app or test suite at it. That way you can build against an API that isn't finished yet. Mockhop is a hosted API mock server, and you can start for free.
Connect your AI agent
Other clients- GET/payments/orders/:id200
- POST/payments/orders201
- PATCH/payments/orders/:id200
$ URL=https://acme.mockhop.cloud$ curl -s -X POST $URL/payments/orders \ -H "Content-Type: application/json" \ -d '{"customerId":"cust-456", "items":[{"productId":"p-1", "quantity":2}]}'
201 Created { "orderId": 48213, "customerId": "cust-456", "itemCount": 1, "status": "PENDING", "createdAt": "2026-11-12T18:42:07Z" }
acme is your organization, payments is your project.
You
Create a users API I can call from my app
Mockhop tools
- create_project template: "users"
- get_project
- list_request_logs
Mock URL
https://acme.mockhop.cloud
200 OK [ { "id": "1", "name": "Mira Keller", "email": "mira.keller@example.org", "role": "member" }, ... ]
Schematic illustration. acme is your organization, users-api is the project the agent created.
Connect your AI agent
Mockhop has an MCP server. With an API key, a coding agent can build REST, GraphQL and WebSocket mocks, import an OpenAPI file, write the mock URL into your code and read the request logs when a call fails.
claude mcp add --transport http mockhop https://app.mockhop.com/api/mcp \
--header "Authorization: Bearer YOUR_API_KEY"{
"mcpServers": {
"mockhop": {
"url": "https://app.mockhop.com/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}{
"mcpServers": {
"mockhop": {
"type": "http",
"url": "https://app.mockhop.com/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}{
"mcpServers": {
"mockhop": {
"serverUrl": "https://app.mockhop.com/api/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}[mcp_servers.mockhop]
url = "https://app.mockhop.com/api/mcp"
bearer_token_env_var = "MOCKHOP_API_KEY"{
"mcpServers": {
"mockhop": {
"serverUrl": "https://app.mockhop.com/api/mcp",
"headers": {
"Authorization": "Bearer ${env:MOCKHOP_API_KEY}"
}
}
}
}The tool names on this page are trademarks of their respective owners. Mockhop is not affiliated with them and is not endorsed by them.
- GET/payments/orders/4821320012 ms
- POST/payments/orders20148 ms
- DELETE/payments/orders/74046 ms
- PATCH/payments/orders/4220021 ms
- GET/payments/charges/ch_12029 ms
- PUT/payments/customers/cust-45620017 ms
- GET/payments/orders3044 ms
- POST/payments/refunds50331 ms
01IMPORT
Create mock APIs from OpenAPI, Postman, HAR or cURL
Most teams already have a spec, a collection or a capture of real requests. Import it and Mockhop creates the endpoints for you.
- OPENAPI
- creates endpoints and example response bodies from your spec.
- POSTMAN
- requests from a collection you already use.
- HAR
- traffic you captured in the browser's developer tools.
- CURL
- paste a command, get an endpoint.
- WSDL
- SOAP operations from a service description.
- EXPORT
- move a whole project between organizations or installations.
- GET/payments/orders200
- POST/payments/orders201
- GET/payments/refunds200
02TEMPLATES
Dynamic responses that read the request
Write the response once as a template. Mockhop fills it in on every call with values from the request and generated data, so the same endpoint answers differently for different input.
{
"customerId": "cust-456",
"items": [{ … }]
}{
"orderId": {{ fakerInt 10000 99999 }},
"customerId":
"{{ jsonPath .body "customerId" }}",
"itemCount":
{{ jsonPath .body "items" | len }},
"status": "PENDING",
"createdAt": "{{ timestamp }}"
}{
"orderId": 48213,
"customerId": "cust-456",
"itemCount": 1,
"status": "PENDING",
"createdAt": "2026-11-12T18:42:07Z"
}- Fake data for names, addresses, companies, card numbers and more, in English, German, Turkish and French.
- Project environment variables you can reference from any response.
03FAILURE MODES
Simulate API errors, latency and timeouts
Most bugs show up when a dependency is slow, returns an error, or changes its answer halfway through a flow. You can set each of these on the endpoint itself.
MATCHING
pick the response by header, query parameter, body field or path segment.
STRATEGY
sequential, random, weighted, or based on your rules.
LATENCY
a fixed delay, or a random one between a minimum and a maximum.
ERRORS
return your chosen status code and body for a share of calls, for example 10%.
TIMEOUT
hold the response long enough to trigger your client's timeout.
RATE LIMIT
answer 429 after a set number of requests per window.
CIRCUIT BREAKER
the endpoint moves between closed, open and half-open like a real one.
- 200
- 200
- 503
- 2002,400 ms
- 429
circuit breakerclosedopenhalf-open
- pending202
- processing200
- succeeded200
Scenarios walk a client through steps. Send the same session header and each call to the endpoint moves one step forward. Handy for testing polling.
- GET/v1/rates?base=EUR200
- GET/v1/rates?base=USD200
- GET/v1/rates?base=GBP200
04PROXY RECORDING
Record a real API and replay it as mocks
Turn on proxy mode for a project and Mockhop forwards each request to the real API while saving the request and the response. This helps when the real API is slow, charges per call, or has test data that keeps changing under you. Proxy and recording are available on the Pro, Team and Business plans.
05PROTOCOLS
GraphQL, WebSocket and SOAP mocks
GRAPHQL
query { order(id: 48213) { status } } {"data":{"order":{ "status":"PENDING"}}}
Define resolvers with their own response data and delay.
WEBSOCKET
- {"type":"welcome"}
- subscribe orders
- {"subscribed":"orders"}
A socket endpoint with a welcome message and replies matched to what the client sends.
SOAPexample
GetOrderStatus
<soap:Envelope> <soap:Body> <status>PENDING</status> </soap:Body> </soap:Envelope>
Import a WSDL and answer operations with XML envelopes.
WebSocket and SOAP are included from the Pro plan.
- acme
- ├─ payments
- └─ catalog
- LKowner
- MBadmin
- JTmember
- RAviewer
- 12:04adminUpdate POST /payments/orders
- 12:07memberCreate GET /catalog/items
- 12:19ownerDelete DELETE /payments/orders/7
Webhookshttps://ci.example.com/hooksTriggerOn: error
Audit log on Team and Business.
06TEAM
One mock URL for your team and CI
An organization holds your projects. Add colleagues, give each one a role, and everyone uses the same mock URLs in their apps and CI jobs.
- Organizations, members and roles.
- A request log with status, latency, headers and body for every call, and analytics per endpoint.
- Webhooks that call your URL after a mock is hit, on every call, only on success, or only on errors.
07WHY MOCKHOP
Why we built Mockhop
I have been developing software for more than 15 years. In many projects, part of the team waited for an API that wasn't ready yet, and tests failed because a service we depended on was slow that day. We used local mock servers, hand-written fixtures and the mock features of API clients. Each covered part of what we needed, but we kept connecting several tools and passing URLs around in chat. So we built the tool we wanted to have: one hosted place where the whole team and the CI pipeline use the same mocks.
Serkan Yildiz, founder
- What we ran into: The frontend was ready, the backend wasn't. Everyone ran their own local mock, with different data and different URLs.
- In Mockhop: One organization, one mock address. The team, test environments and CI jobs call the same endpoints.
- What we ran into: Errors only showed up in production: timeouts, 429s, a service that answered with 500 now and then.
- In Mockhop: Delay, error rate, timeout, rate limit and circuit breaker are settings on the endpoint, so these cases can be tested before a release.
- What we ran into: Writing responses by hand took long, and they drifted away from the real API.
- In Mockhop: Import an OpenAPI file or a Postman collection, or record the real API through the proxy and turn the recordings into mocks. Templates fill responses with values from the request.
08FAQ
Questions about Mockhop
What is a mock API server?
A mock API server answers requests the way a real API would, with responses you define. Frontend and mobile teams use it to build before the backend is ready, and test suites use it to get predictable answers, including errors. Mockhop is a hosted API mocking tool, so there is nothing to install.
How do I create a mock API with Mockhop?
Create a free account and a project, then add an endpoint with a method, a path and a response. Your organization gets its own address such as acme.mockhop.cloud, and once you've confirmed your email address, the endpoint answers there, for example at acme.mockhop.cloud/payments/orders.
Can I import an OpenAPI spec or a Postman collection?
Yes. Mockhop creates endpoints from OpenAPI (Swagger) files, Postman collections, HAR captures, cURL commands and WSDL files.
Which protocols does Mockhop support?
REST, GraphQL, WebSocket and SOAP. WebSocket and SOAP are included from the Pro plan.
Can I simulate errors, slow responses and timeouts?
Yes. For each endpoint you can set a fixed or random delay, return an error for a share of calls, hold the response until the client times out, limit requests per time window and switch on a circuit breaker.
Can I use the mocks in a CI pipeline?
Yes. Your tests call the mock URLs like any other HTTP API, so nothing needs to be installed in the pipeline. Creating and changing mocks through an API isn't available yet; for now that happens in the web app.
Is there a free plan?
Yes. The Free plan includes 1,000 requests a month. It isn't a time-limited trial. We delete accounts that haven't been used for 90 days, after letting you know in advance. See all plans
Can I run Mockhop in my own network?
On request. Tell us about your setup, and we'll discuss running Mockhop on your own Kubernetes cluster or Docker hosts, with LDAP sign-in and an audit log. Send a request
Start on the Free plan with 1,000 requests a month. Paid plans start at €9.98 a month, incl. VAT.
Need Mockhop inside your own network? On request, we can discuss an installation on your Kubernetes cluster or Docker hosts, with LDAP sign-in and an audit log.