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, POST only.
  • Protocol versions: 2025-11-25, 2025-06-18 and 2026-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

  1. Add the connector in your AI assistant with the server URL above.
  2. Sign in to NovaFit with your usual account.
  3. 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.
  4. 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 401 with WWW-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/mcp is required on the authorization and token requests. Tokens are bound to that resource.

Client registration

  • Client ID Metadata Documents: the client_id may be an https URL 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 be https, or http on localhost or 127.0.0.1 with an explicit port. For loopback redirects the port may differ from the registered one (RFC 8252), and localhost and 127.0.0.1 are 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 types authorization_code and refresh_token), /oauth/revoke and /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/revoke ends the whole connection: all its tokens and codes.

Scopes

ScopeWhat it allows
novafit:readThe consult tools.
novafit:writeThe 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 studio out if you belong to exactly one studio.
  • Changes: studio is always required.
  • branch: optional, a branch identifier or all. 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).

ToolWhat it doesType
list_studiosLists the studios this connection can use, with your role and the active branches in each. Takes no arguments.Read
list_classesLists 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_classGets one class with its booked people and each booking’s status, up to 50 per page (offset, limit).Read
list_clientsLists 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_clientGets 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_paymentsLists 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_membershipsLists memberships ending in the next 1 to 60 days, or that expired in the last 1 to 60 days.Read
create_classPrepares a new class: type, room, coach, start time, duration and capacity.Write
update_classPrepares 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_attendancePrepares marking one booking as attended or no-show, or every confirmed booking of a class as attended.Write
send_reminderPrepares 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:

  1. Preview. Call the tool with the change. Nothing changes. The response has stage: "preview", a previewId, an expiry time and a summary of the change and who it affects.
  2. 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 has stage: "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.

LimitRateBurstAt the same time
Requests per IP60 per minute20
Requests without a token, per IP30 per minute10
Requests per connection30 per minute203
Tool calls per person, across all of that person’s connections60 per minute205
Tool calls per person in one studio30 per minute203
Confirmed changes per person in one studio10 per minute51
Request body64 KiB
Response size100,000 characters
Time per request50 seconds
New client registrations per IP10 per hour
  • Before the JSON-RPC request is read (per IP, without a token, per connection): HTTP 429 with a Retry-After header and a JSON-RPC error -32001 whose data is { "code": "rate_limited", "retryAfterSeconds", "bucket" }, where bucket is ip, no_token or connection.
  • Inside tools/call (per person, per person in one studio, confirmed changes): a normal tool result with isError: true and { "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.

CodeMeaning
unauthenticatedThe connection ended or was revoked. Connect again.
forbiddenYour 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_foundThe studio, branch, class, booking, client or preview does not exist for you.
studio_requiredYou belong to several studios and did not say which one, or a change tool was called without studio. Includes the list of studios.
invalid_inputAn argument is missing or out of range. The message names the fields.
ambiguousget_client matched several clients. Includes the matches, so you can ask the person which one.
rate_limitedToo many requests. Wait the retryAfterSeconds given in the error.
timeoutThe request took longer than 50 seconds.
unavailableA temporary problem on NovaFit’s side. Try again later.
conflictThe data changed while the change was being prepared. Prepare it again.
expiredThe preview expired, was already used, or your permissions changed. Prepare it again.
rejectedNovaFit’s business rules do not allow the change. The message says why and what to do.

HTTP responses on /api/mcp

StatusMeaning
401Missing or invalid token. Follows the WWW-Authenticate challenge.
403The account is a NovaFit administration account, or the request came from a web page (an Origin header).
405The method is not POST.
413Body larger than 64 KiB.
415Content type is not application/json.
429Rate limit. See Retry-After.
503NovaFit 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

NovaFit Studio · operated by Mauro Diddier Cantú Campa · maurocantu@novafit.lat