Fluid API and MCP server

The Fluid API lets AI agents and apps work with Fluid, the software pickleball and racquet clubs use for memberships, court reservations, programs, lessons, tournaments and leagues. It is a Model Context Protocol (MCP) server, the Fluid Assistant, reached over Streamable HTTP and secured with OAuth 2.0.

Quickstart

  1. Add the MCP server URL to your MCP client: https://mcp.fluidpb.com/assistant. Each club's own domain serves the same endpoint at /assistant.
  2. The client discovers the OAuth server from the WWW-Authenticate header of the first 401, registers itself (dynamic client registration) and opens the Fluid sign-in page.
  3. Sign in with a Fluid account and approve the connection. The client receives an access token.
  4. Call tools/list to see the tools your account can use, then tools/call to use them.

Try it from a terminal. Without a token the endpoint answers 401 with the discovery link:

curl -i -X POST https://mcp.fluidpb.com/assistant \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

API keys and authentication

Fluid has no static API keys. Every connection uses the OAuth 2.0 authorization code flow with PKCE (S256), and the token acts as the person who approved it, within their own Fluid role and club permissions. Members reach their own account; club staff reach the clubs and sections they manage.

  • Protected resource metadata (RFC 9728): https://app.fluidpb.com/.well-known/oauth-protected-resource
  • Authorization server metadata (RFC 8414): https://app.fluidpb.com/.well-known/oauth-authorization-server
  • Dynamic client registration (RFC 7591): POST https://app.fluidpb.com/api/mcp/oauth/register
  • Authorization: GET https://app.fluidpb.com/api/mcp/oauth/authorize
  • Token: POST https://app.fluidpb.com/api/mcp/oauth/token

Send the token as Authorization: Bearer <token>. OAuth tokens last 7 days; run the sign-in again to renew. For a quick test, a signed-in browser session can mint a one-hour token with POST /api/mcp/token. Signed-in users find the server URL and client setup steps on the Fluid Assistant page: https://app.fluidpb.com/assistant

Scopes

Request a scope with the scope parameter on the authorize request. Without one, the connection gets assistant.

Scope Grants
assistant Use the Fluid Assistant as the signed-in person, within what their own Fluid role and club permissions allow: look things up and make changes.
assistant:read Read-only: look up and report on what the signed-in person's role can see. No bookings, payments, messages or other changes.

What the tools cover

  • Members: court availability and booking, open play, clinics and lessons, waitlists, memberships and passes, the club store, league matches and scores.
  • Club staff: the club's schedule, members, bookings, programs, revenue and reports, the same records the Fluid dashboard shows.
  • Tournament and league directors: events, divisions, registrations, brackets, courts and results.

The live list, with each tool's name, description and input schema, comes from tools/list. It depends on the account and the scope, so it is not repeated here.

Testing safely

Fluid has no separate sandbox environment. To explore without changing anything, connect with the assistant:read scope: it lists only tools that look things up, and refuses any change. With assistant, every tool that costs money or changes a record first returns a preview (the price, the card and what will change) and runs only when called again with the confirmation it names.

Errors

Errors are JSON. HTTP errors use application/problem+json (RFC 9457) with a stable code and a resolution hint:

{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "code": "missing_token",
  "detail": "Sign in to use the Fluid Assistant.",
  "resolution": "Start the OAuth flow from the WWW-Authenticate header."
}

The OAuth endpoints return RFC 6749 error objects. A tool that cannot run returns an MCP tool result whose text names the problem and the next step.

Rate limits

  • MCP requests: 120 a minute and 5,000 a day for each account.
  • Tool calls that change something: 30 a minute and 1,000 a day for each account.
  • Client registration: 10 a minute and 60 a day for each IP address.
  • Token requests: 30 a minute and 300 a day.

Over a request limit, the endpoint answers 429 with a problem body and a Retry-After header: wait that many seconds before trying again. A change over its limit is refused before it runs, with a tool result that says how long to wait.

Versioning

The endpoint follows the MCP specification and negotiates the protocol version in initialize. Tools are added over time; a tool's name and inputs do not change in a way that breaks existing callers without notice.

Machine-readable files

  • OpenAPI 3.1 description
  • API catalog (RFC 9727)
  • Guides for AI agents and models (llms.txt), and every guide in one file
  • Fluid connector for members

Support

Questions or problems: help@fluidpb.com. See the privacy policy and terms of use.