For AI agents

The Scan Clinic is a private ultrasound scan and blood test clinic in London. This page is for AI assistants and the developers who build them. People can read it too.

What an agent can do today

Read, without logging in:

The API description is at https://thescanclinic.co.uk/openapi.json (OpenAPI 3.1). The catalogue of our APIs is at https://thescanclinic.co.uk/.well-known/api-catalog.

Connecting over MCP

Our MCP server is at https://thescanclinic.co.uk/mcp (Streamable HTTP). It speaks MCP 2026-07-28 and the earlier 2025-11-25, 2025-06-18 and 2025-03-26 versions, so current and older clients both work. The server card is at https://thescanclinic.co.uk/mcp/server-card.

To add it to Claude Code:

claude mcp add --transport http tsc https://thescanclinic.co.uk/mcp

In other clients, add a remote (HTTP) MCP server with that URL. No sign-in is needed for these tools:

MCP requests count towards the same limit as the API (600 per hour for each client address).

Booking tools (need an access token, see Signing in):

The same steps over the API:

  1. POST /wp-json/tsc-agent/v1/quote
  2. POST /wp-json/tsc-agent/v1/bookings, with an Idempotency-Key header
  3. GET /wp-json/tsc-agent/v1/bookings/{reference}

You can only see bookings you made. We never send back a person’s date of birth or phone number. book_url on each service is still a link a person can open to book on the website.

Appointments today

An agent cannot book an appointment for today. Times on today’s date are marked agent_bookable: false with the reason same_day.

Why: same-day appointments are booked without a deposit, so we take them directly with the patient. To book today, call 0203 904 7706, send a WhatsApp message to https://wa.me/447584426428 or request a callback at https://thescanclinic.co.uk/request-callback/. Every availability reply includes these details.

Signing in

Reading needs no login. Booking needs an access token. Getting one is free and automatic:

  1. Register your agent: POST https://thescanclinic.co.uk/wp-json/tsc-agent/v1/oauth/register with a JSON body such as {"client_name": "Your agent name"}. You get back a client_id and a client_secret. Keep the secret private; it is shown only once. Registering means you accept the terms below.
  2. Get a token: POST https://thescanclinic.co.uk/wp-json/tsc-agent/v1/oauth/token with grant_type=client_credentials, your client_id and client_secret. Tokens last one hour.
  3. Send it as Authorization: Bearer <token> on booking calls.

MCP clients that support OAuth (for example Claude and Cursor) do this for themselves: they find our sign-in details at https://thescanclinic.co.uk/.well-known/oauth-authorization-server and show the person a one-click consent screen. Full details: https://thescanclinic.co.uk/auth.md.

Paying

Every booking needs a £30 deposit, paid online. The rest is paid at the clinic. Prices and the deposit are always worked out by us, never taken from the agent.

1. The person pays on a payment page. This works for every agent. Book without a payment field. You get back payment_required with:

The time is not held until the deposit is paid. When the payment arrives, we check the time again:

Each agent can have at most 5 unpaid payment pages open at a time.

If the card is declined on the payment page, Stripe’s page tells the person and lets them try another card. You receive no error. get_booking stays payment_required until the page is paid or expires.

2. The agent pays straight away, with a Stripe shared payment token. This is not switched on yet; we will update this page when it is. Send payment: {"method": "stripe_shared_payment_token", "token": "spt_..."}. The token must allow £30 in GBP.

Until shared payment tokens are switched on, a payment field is ignored and you get a payment page as in option 1.

The person receives the confirmation by email either way.

Booking terms

Bookings are made on our terms and conditions: https://thescanclinic.co.uk/terms-and-conditions/. An agent should show these to the person before booking for them.

What our services involve

Rate limits

Reading is limited to 600 requests per hour for each client address. Every reply has RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers. If you go over, you get 429 with a Retry-After header (seconds). Prices, the service list and referral details can be cached for the time in Cache-Control.

Errors

Every error has the same shape:

{"error": {"code": "service_not_found", "message": "No service with that slug. GET /services lists them."}}
CodeStatusMeaning
rate_limited429Too many requests. Wait for Retry-After.
catalog_unavailable503The service list is not available right now. Call 0203 904 7706.
service_not_found404No service with that slug.
missing_service400/availability needs ?service=.
bad_request400A parameter was given more than once or in the wrong form.
bad_date400from and to must be YYYY-MM-DD.
bad_range400to is before from.
range_too_long400A range is at most 14 days.
out_of_window400Times are published for the next 14 days only.
not_agent_bookable409Needs a referral or cannot be booked online. reason says which; contact says how to book by phone.

Changelog

Terms for AI agents

These terms apply to any AI agent, app or service (“agent”) that registers with The Scan Clinic to get a booking token, and to the person or company that runs it. Registering means you accept them.

  1. Book only when a person asks. Make a booking only on the instruction of the patient, or of someone they have asked to book for them. Do not book speculatively, to hold times, or to test the system.
  2. Send true details. Give the patient’s real name, date of birth and contact details as they gave them to you. Do not invent, guess or reuse details.
  3. Tell the person what they are booking. Before booking, show the person the service, price, date and time, and our booking terms (https://thescanclinic.co.uk/terms-and-conditions/).
  4. No resale. Do not sell, resell or charge a fee for our appointments, and do not book appointments in order to pass them on.
  5. No scraping beyond the limits. Keep within the published rate limits. Do not copy our prices, times or pages in bulk for another service.
  6. Keep your credentials safe. Keep your client secret and tokens private. Tell us at [email protected] if you think they have been exposed, and revoke them.
  7. We may block an agent. We may limit, suspend or block any agent at any time, for example if it breaks these terms, makes bookings people did not ask for, or puts load on our systems. Bookings already made by a person stay valid unless we contact the patient.
  8. Changes. We may change these terms. The version on this page applies.

Questions: [email protected] or 0203 904 7706.

Contact

Phone 0203 904 7706. WhatsApp https://wa.me/447584426428. Email [email protected].