NovaFit connector for AI assistants
Last updated: November 12, 2026
NovaFit Studio is studio-management software for boutique fitness studios: bookings, classes, clients, memberships and payments. The NovaFit connector lets an AI assistant work with your studio data through the Model Context Protocol (MCP), using your own NovaFit account and permissions.
- Server URL:
https://novafit.lat/api/mcp - Transport: MCP over HTTP (Streamable HTTP), JSON responses without streaming,
POSTonly. - Protocol versions:
2025-11-25,2025-06-18and2026-07-28. - Who can connect: studio owners, admins and staff. Staff can connect only if their studio has turned on the assistant module for them. Coach and client accounts are not supported.
- Payments: nothing is sold, charged or refunded through the connector.
What the assistant can do
The assistant sees and does what you can see and do in NovaFit, with your role and permissions in each studio. If your permissions change, the connection changes with them.
- Consult: studios and branches, classes and rosters, clients, payments and expiring memberships.
- Prepare changes (only if you allow it when connecting): create, edit or cancel a class, register attendance, and send an in-app class reminder. Every change is shown to you as a preview first. Nothing changes until you approve it.
Health data, card data and contact data (email and phone) never leave NovaFit. They are removed from every response.
Example prompts
- “What classes do I have today at my studio, and how many people are booked into each one?”
- “Which clients have a package expiring this week?”
- “Look up a client and tell me their last attendance and last payment.”
- “Show me last week’s payments.”
- “Create a spinning class on Tuesday at 6 pm with 12 spots.”
- “Send a reminder to everyone booked into tomorrow’s 7 am class.”
Connecting
- Add the connector in your AI assistant with the server URL above.
- Sign in to NovaFit with your usual account.
- On the NovaFit consent screen, review the studios and your role in each. Then choose what the assistant may do: Consult only (the default) or Consult and prepare changes.
- Choose Allow. You can also choose Cancel.
The sign-in and consent screens are available in English and Spanish. A connection lasts 30 days. To remove it earlier, go to novafit.lat/oauth/conexiones and choose Quitar acceso (remove access). Deleting your NovaFit account ends all of its connections at once.
Authentication
NovaFit is its own OAuth 2.1 authorization server. Its issuer is https://novafit.lat.
Discovery
- Protected resource metadata:
https://novafit.lat/.well-known/oauth-protected-resource/api/mcp - Authorization server metadata:
https://novafit.lat/.well-known/oauth-authorization-server - A request without a valid token gets
401withWWW-Authenticate: Bearer resource_metadata="…"pointing to the resource metadata.
Flow
- Authorization code with PKCE (S256 only). Public clients only (
token_endpoint_auth_method: none). - Every authorization response includes
iss(RFC 9207). resource=https://novafit.lat/api/mcpis required on the authorization and token requests. Tokens are bound to that resource.
Client registration
- Client ID Metadata Documents: the
client_idmay be anhttpsURL that serves the client’s metadata document. NovaFit fetches it when you consent: at most 32 KiB,application/json, no redirects, public addresses only. It is cached for 24 hours. - Dynamic Client Registration at
https://novafit.lat/oauth/register. Redirect URIs must behttps, orhttponlocalhostor127.0.0.1with an explicit port. For loopback redirects the port may differ from the registered one (RFC 8252), andlocalhostand127.0.0.1are treated as the same host. A registered client that still has no connection 24 hours after registering may be removed.
Endpoints and lifetimes
- Endpoints, all on
https://novafit.lat:/oauth/authorize,/oauth/token(grant typesauthorization_codeandrefresh_token),/oauth/revokeand/oauth/register. - Authorization code: 60 seconds. Access token: 15 minutes.
- Refresh token: until the connection ends. It rotates on every use, and reusing an old refresh token ends the connection.
- Connection: 30 days from consent.
- Revoking either token at
/oauth/revokeends the whole connection: all its tokens and codes.
Scopes
| Scope | What it allows |
|---|---|
novafit:read | The consult tools. |
novafit:write | The change tools (preview and confirm). Always granted together with novafit:read. |
The consent screen decides the scopes. “Consult only” grants novafit:read. “Consult and prepare changes” grants both, and is offered only when the client asks for novafit:write (or asks for no scope). A token request cannot widen the scopes of a connection.
Choosing a studio
Most tools take a studio argument: the studio’s identifier, as returned by list_studios.
- Reads: you may leave
studioout if you belong to exactly one studio. - Changes:
studiois always required. branch: optional, a branch identifier orall. Staff can only use their own branch. An admin who gives no branch works in the studio’s default branch. An owner who gives no branch works in the whole studio.
Current tools
These are the tools available today. New tools may be added; this page is updated when they are. Every tool returns structured content, declares an output schema and carries MCP annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint).
| Tool | What it does | Type |
|---|---|---|
list_studios | Lists the studios this connection can use, with your role and the active branches in each. Takes no arguments. | Read |
list_classes | Lists classes for one date or a range of up to 7 days, in the studio’s local calendar, with time, class type, coach, room, capacity and active bookings. Cancelled classes appear only with includeCancelled. includeOptions adds the class types, rooms and coaches that create_class needs. Up to 250 classes per week read; a truncated flag tells you when the list is cut. | Read |
get_class | Gets one class with its booked people and each booking’s status, up to 50 per page (offset, limit). | Read |
list_clients | Lists clients, 40 per page. Filters: name search and state (active, inactive, archived). Each client comes with credits, membership end date and last visit. | Read |
get_client | Gets one client’s status, credit balance, current membership and end date, last payment and last visit. Look the client up by clientId or by a name query. If several clients match, it returns ambiguous with the matches. | Read |
list_payments | Lists paid or pending sales in a date range, up to 50, with totals in MXN cents. Dates after the current moment are never included, and the response states the dates applied. It never charges or refunds. | Read |
list_expiring_memberships | Lists memberships ending in the next 1 to 60 days, or that expired in the last 1 to 60 days. | Read |
create_class | Prepares a new class: type, room, coach, start time, duration and capacity. | Write |
update_class | Prepares an edit to one class, or its cancellation. Cancelling returns the credits of the people booked and notifies them and the coach inside NovaFit. Classes are never deleted. | Write (destructive when cancelling) |
register_attendance | Prepares marking one booking as attended or no-show, or every confirmed booking of a class as attended. | Write |
send_reminder | Prepares an in-app notice inside NovaFit to everyone booked in one class. It never sends email or WhatsApp. | Sensitive write (reaches other people) |
How changes work
Every change tool works in two steps:
- Preview. Call the tool with the change. Nothing changes. The response has
stage: "preview", apreviewId, an expiry time and a summary of the change and who it affects. - Confirm. Show the preview to the person. Only after they explicitly approve it, call the same tool again with exactly
{ "studio", "previewId", "confirm": true }. The response hasstage: "done"and the result.
A preview can be confirmed once, within 5 minutes, by the same person, studio and tool. If the person’s permissions changed in between, the preview expires. Confirming a change that already finished returns the same result again. send_reminder notifies other people, so assistants should always ask before confirming it.
Limits
Limits use token buckets: each one allows a short burst and then refills at its per-minute rate.
| Limit | Rate | Burst | At the same time |
|---|---|---|---|
| Requests per IP | 60 per minute | 20 | |
| Requests without a token, per IP | 30 per minute | 10 | |
| Requests per connection | 30 per minute | 20 | 3 |
| Tool calls per person, across all of that person’s connections | 60 per minute | 20 | 5 |
| Tool calls per person in one studio | 30 per minute | 20 | 3 |
| Confirmed changes per person in one studio | 10 per minute | 5 | 1 |
| Request body | 64 KiB | ||
| Response size | 100,000 characters | ||
| Time per request | 50 seconds | ||
| New client registrations per IP | 10 per hour |
- Before the JSON-RPC request is read (per IP, without a token, per connection): HTTP
429with aRetry-Afterheader and a JSON-RPC error-32001whosedatais{ "code": "rate_limited", "retryAfterSeconds", "bucket" }, wherebucketisip,no_tokenorconnection. - Inside
tools/call(per person, per person in one studio, confirmed changes): a normal tool result withisError: trueand{ "code": "rate_limited", "retryAfterSeconds", "message" }, so the assistant can tell the person how long to wait.
Both are checked before the tool runs, so a limited call never has side effects. A normal working session stays well within them.
Errors
Tool errors come back as a normal MCP result with isError: true and a JSON body { "code", "message" }. The code is stable. The message is in English and says what happened and what to do. The one exception is rejected: its message comes from the studio’s business rules and may be in Spanish.
| Code | Meaning |
|---|---|
unauthenticated | The connection ended or was revoked. Connect again. |
forbidden | Your role or permissions do not allow this. Includes a change tool on a consult-only connection, and a staff member asking for another branch. |
not_found | The studio, branch, class, booking, client or preview does not exist for you. |
studio_required | You belong to several studios and did not say which one, or a change tool was called without studio. Includes the list of studios. |
invalid_input | An argument is missing or out of range. The message names the fields. |
ambiguous | get_client matched several clients. Includes the matches, so you can ask the person which one. |
rate_limited | Too many requests. Wait the retryAfterSeconds given in the error. |
timeout | The request took longer than 50 seconds. |
unavailable | A temporary problem on NovaFit’s side. Try again later. |
conflict | The data changed while the change was being prepared. Prepare it again. |
expired | The preview expired, was already used, or your permissions changed. Prepare it again. |
rejected | NovaFit’s business rules do not allow the change. The message says why and what to do. |
HTTP responses on /api/mcp
| Status | Meaning |
|---|---|
401 | Missing or invalid token. Follows the WWW-Authenticate challenge. |
403 | The account is a NovaFit administration account, or the request came from a web page (an Origin header). |
405 | The method is not POST. |
413 | Body larger than 64 KiB. |
415 | Content type is not application/json. |
429 | Rate limit. See Retry-After. |
503 | NovaFit could not verify the request right now. Try again later. |
OAuth endpoints return standard OAuth error codes: invalid_request, invalid_client, invalid_grant, invalid_scope, invalid_target, unsupported_grant_type, access_denied and temporarily_unavailable. Registration may also return invalid_client_metadata and invalid_redirect_uri. When a request is rejected for a rate limit, the response includes Retry-After.
Activity records
Each tool call is recorded in the studio’s activity log: the tool, the result, the duration, the names of the declared arguments and the size of the request. Argument values and the request body are not stored. IP addresses and browser details are not stored with these records; where NovaFit needs to recognize a network (for rate limits and client registration) it keeps only a keyed hash, never the address. Every change made through the connector is labeled in NovaFit as made by a connected app. Tokens and codes are never logged.
Privacy, terms and support
- Privacy: novafit.lat/privacy (Spanish: novafit.lat/privacidad)
- Terms: novafit.lat/terms (Spanish: novafit.lat/terminos)
- Support: novafit.lat/support · maurocantu@novafit.lat
- Security contact: maurocantu@novafit.lat
- Developer: Mauro Diddier Cantú Campa
