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
claude mcp add --transport http mockhop https://app.mockhop.com/api/mcp --header "Authorization: Bearer YOUR_API_KEY"
agentexample

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/users-api/users

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.

Terminal
claude mcp add --transport http mockhop https://app.mockhop.com/api/mcp \
  --header "Authorization: Bearer YOUR_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.

example
  • 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

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.
acme / paymentsexample
  • GET/payments/orders200
  • POST/payments/orders201
  • GET/payments/refunds200

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.

request
{
  "customerId": "cust-456",
  "items": [{ … }]
}
template
{
  "orderId": {{ fakerInt 10000 99999 }},
  "customerId":
    "{{ jsonPath .body "customerId" }}",
  "itemCount":
    {{ jsonPath .body "items" | len }},
  "status": "PENDING",
  "createdAt": "{{ timestamp }}"
}
response
{
  "orderId": 48213,
  "customerId": "cust-456",
  "itemCount": 1,
  "status": "PENDING",
  "createdAt": "2026-11-12T18:42:07Z"
}

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.

GET /payments/charges/ch_1example
  1. 200
  2. 200
  3. 503
  4. 2002,400 ms
  5. 429

circuit breakerclosedopenhalf-open

X-Mockhop-Session: test-17example
  1. pending202
  2. processing200
  3. 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.

your appMockhopapi.example.com
Proxy Recordingsexample
  • GET/v1/rates?base=EUR200
  • GET/v1/rates?base=USD200
  • GET/v1/rates?base=GBP200
GET/v1/ratesacme / payments

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.

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.

acmeexample
  • acme
  • ├─ payments
  • └─ catalog
  • LKowner
  • MBadmin
  • JTmember
  • RAviewer

Audit Logs

  • 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.

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.

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.

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.

Talk to us →