# BlockFit > BlockFit is a fitness marketplace in Brighton, UK. People find classes at independent local studios (yoga, Pilates, reformer, HIIT, spin, strength, boxing and more) and book them in one app, paying per class or with a studio membership. ## Public pages These need no account. Each class, studio and listing page carries schema.org data (JSON-LD). - [Sitemap](https://app.blockfit.co/sitemap.xml): the class listings for each city and kind of class, every live studio, and every class still to come in the next 14 days. - Classes in Brighton, https://app.blockfit.co/brighton: classes coming up in and around Brighton over the next 7 days, by day, up to 20 a day, each with its time, studio and area, price and spots left, and a link to its class page. One kind of class: https://app.blockfit.co/brighton/{activity}, where activity is one of spin, yoga, pilates, reformer, hiit, strength, boxing, dance, barre, bootcamp, crossfit, hyrox, martial-arts, swimming, meditation. One day, with every class that day: add `date` (YYYY-MM-DD, today or a day in the next 13), for example https://app.blockfit.co/brighton/spin?date={YYYY-MM-DD}. Each page has a schema.org ItemList of the Events it lists. - Class page, https://app.blockfit.co/class/{sessionId}: one class: what it is, the studio, the trainer, the date and time, where it is, the price and how many spots are left. Its schema.org Event has the same details, and a ReserveAction pointing at the page. - Studio page, https://app.blockfit.co/studio/{studioId}: a studio: where it is and the classes it runs, with a schema.org ExerciseGym for each location, the facilities there as its amenityFeature, and the studio's intro offers for newcomers as its makesOffer. - [Find a class](https://app.blockfit.co/search): search classes by day, time, type, price and place. It runs in the browser, so it needs JavaScript. A link can set the search: `date` (YYYY-MM-DD, a day on the schedule), `time` (morning, afternoon or evening, comma-separated), `category` (class types as the API names them, such as YOGA or CYCLING, comma-separated), `query` (text), `minPrice` and `maxPrice` (in pounds), and `lat` and `lng` (where to search from). For example https://app.blockfit.co/search?date=2026-12-01&time=morning&category=YOGA ## Booking a class - To send someone to book a class themselves, give them https://app.blockfit.co/class/{sessionId}?src=agent: the class page, marked as a link from an agent. - Booking needs a BlockFit account. Someone signed out who presses Book on a class page is asked to sign in or sign up, then comes straight back to the class to book it. - A class is paid for from the person's BlockFit wallet, or with credits from a membership at that studio. Paying by card tops the wallet up by the class's price and pays from it in one step; the card payment is made by the person. - Someone new to a studio may be offered its intro offer on the class page instead of the usual price. - Before the booking is confirmed, the class page shows the studio's free cancellation cut-off. Cancelling in time refunds the wallet or the credit. Any booking can also be undone with a full refund within 3 minutes of making it, whatever the cut-off, as long as the class hasn't started. ## BlockFit's MCP server - BlockFit has a remote MCP server at https://api.blockfit.co/mcp (Streamable HTTP). Add it to an agent as a custom connector. - With no account connected, `search_classes`, `get_class` and `search_studios` find classes and studios. Each class comes with a `book_url` (https://app.blockfit.co/class/{sessionId}?src=agent) to give someone to book it themselves. - `get_class` says what the class's location has (`facilities`, such as showers, lockers, mats and parking) and what the studio tells people before their first class (`first_visit_notes`). `search_studios` takes `facilities` to find studios that have them. A studio that hasn't said has no `facilities`: that means unknown, not none. - Intro offers: many studios have one for people new to them, such as a first class or a few classes for less. `search_studios` gives a studio's `intro_offer` (its name, price, what's included and who it's for) and takes `has_intro_offer`; `search_classes` marks a class it covers with `intro_offer_available`. When the person is new to a studio, mention its intro offer. Whether they qualify (a genuine first visit) is checked by BlockFit when they book: don't tell them they do. With their account connected, `get_class` shows the intro offer only when they can have it. - To book, cancel, or read bookings and the wallet (`book_class`, `cancel_booking`, `my_bookings`, `wallet_balance`), or to ask the person to top up (`request_top_up`, `top_up_status`), the person connects their BlockFit account: see Connect your agent, below. Without it, those tools answer 401. - Check the class, its time and price with the person before booking it, and before a cancellation that won't be refunded. - Within 3 minutes of booking, `cancel_booking` refunds in full whatever the cut-off, as long as the class hasn't started: `book_class` gives that time as `undo_until`. - Top-ups (`wallet:topup`): `request_top_up` asks the person to top up their wallet by £5 to £50, in whole pounds, and charges nothing. It gives a `pay_url` (https://app.blockfit.co/wallet/top-up/pay/{token}), a page that needs no BlockFit sign-in, paid by card, Apple Pay, Google Pay or Link. Open it in your own browser and pay it with the person's approval (their Link wallet, say), or give them the link to pay themselves. The money only ever goes into their own wallet. The link works once and expires in 10 minutes, and an agent can have at most 5 waiting. The `pay_url` is given once: `top_up_status` says when it's paid, but doesn't repeat the link. Give `return_url` (optional) and, once it's paid or can't be, the page offers "Back to" your app there: it must be an https URL on one of your own registered hosts (a host of your `redirect_uris` or your `client_uri`), or the request is refused and none is made. Without it, the page uses your `client_uri`, or asks the person to go back to you. `book_class` takes `return_url` too, for the top-up it offers when the wallet is short. When the wallet is too short for `book_class`, an agent with `wallet:topup` is also offered a top-up of the exact shortfall. A top-up never counts towards the weekly spending limit. ## Connect your agent - A person adds BlockFit to their agent by sending it this message: `Add BlockFit: https://api.blockfit.co/mcp`. [Add BlockFit to your AI assistant](https://blockfit.co/agents) explains it to them, for any agent. No account yet? They can create one, free, while connecting, with an email link, with Google on the web or Android, or with Apple in the iPhone app. - MCP server: https://api.blockfit.co/mcp. Streamable HTTP, POST only. - Personal Agent Protocol (Poppy 1.0) discovery: https://app.blockfit.co/.well-known/poppy.json. It names BlockFit, this MCP server, the scopes and how consequential each one is. - Protected resource metadata (RFC 9728): https://api.blockfit.co/.well-known/oauth-protected-resource/mcp. Start here. - Authorization server metadata (RFC 8414): https://api.blockfit.co/.well-known/oauth-authorization-server. It has the authorize, token and registration endpoints. - Agents sign in with the authorization code flow with PKCE (S256), and no client secret. Register with dynamic client registration, or use the URL of a Client ID Metadata Document as the client_id. The `resource` (RFC 8707) is the MCP server's URL. - The access token works only at the MCP server: BlockFit's other endpoints refuse it with 401 `invalid_token`. Book, cancel and read the account through the MCP server's tools. - A metadata document may declare `token_endpoint_auth_method` `private_key_jwt` with a `jwks_uri` on the client_id's host, as Personal Agent Protocol (Poppy) agents do. Its `redirect_uris` must then be https URLs on the client_id's host, or loopback addresses (`http://127.0.0.1` or `http://[::1]`, not `localhost`). That agent sends a client assertion (RFC 7523), signed with ES256 or PS384 and with `aud` set to exactly the issuer, with every token, refresh and revocation request. Dynamic client registration is for public clients only (`none`). - The scopes, as the customer reads them when they approve: - `classes:read`: Search classes and studios - `bookings:read`: See your upcoming and past bookings - `bookings:write`: Book and cancel classes for you, including intro offers, paid from your wallet or studio credits - `wallet:read`: See your wallet balance and credits left - `wallet:topup`: Ask you to top up your wallet; you pay yourself, by card or Apple Pay / Google Pay - To book for someone, ask for `bookings:read bookings:write wallet:read`. You don't need `classes:read`: searching classes and studios needs no account, so it allows nothing more. Add `wallet:topup` to be able to ask them to top up: it's never granted unless you ask for it by name. - When they approve, the customer chooses which of these the agent gets, and a weekly spending limit: £30 unless they change it. Only money from their BlockFit wallet counts towards it, not studio credits, gifts or free classes. They can change the limit or disconnect the agent in the BlockFit app, under Settings › Connected apps (not in their assistant’s settings). - A new account’s wallet starts empty. To pay for a first class, they can top up in the app (or, if they let you ask for top-ups, with wallet:topup, through the pay_url request_top_up gives you), then book it with book_class, on a studio’s intro offer if they’re new to that studio (it’s paid from the wallet too). Or they can book it themselves at its book_url and pay by card, intro offer included: the card tops up the wallet, by £5 at least, and the wallet pays, keeping any change. - When the customer disconnects the agent in Connected apps, its tokens stop working at once: the next account tool call gets 401 `invalid_token`, and a refresh gets `invalid_grant`. Searching still works without an account. - The server is stateless: it gives no session ID (no `Mcp-Session-Id`), and every POST stands alone. - Retries are safe: calling `book_class` again with the same arguments never books or charges twice. ## Blog BlockFit's blog is at https://blockfit.co/blog, with an [RSS feed](https://blockfit.co/blog/rss.xml). Each post is also at https://blockfit.co/blog/{slug}.md as Markdown. - [BlockFit now works with your AI assistant](https://blockfit.co/blog/blockfit-now-works-with-your-ai-assistant): Ask your AI assistant to find you a class at an independent studio in Brighton & Hove, and it can now book it for you on BlockFit, within a weekly limit you set. Markdown: https://blockfit.co/blog/blockfit-now-works-with-your-ai-assistant.md