Plane Gays API docs

The Plane Gays API is a remote MCP server at https://mcp.planegays.app/mcp. Any MCP client, or any program that speaks JSON-RPC over HTTP, can use it to read and plan a Plane Gays user's trips on their behalf, after the user signs in and approves. There is no separate REST resource API: every capability is an MCP tool.

Machine-readable versions of this page: the OpenAPI description of every HTTP endpoint, and llms.txt for agents.

When to use it

It's not for searching or booking travel, sending email, reading trips the user isn't a member of, or creating Plane Gays accounts. No tool deletes a trip.

Getting access

Access is free and self-serve. There are no API keys to request: your client registers itself with OAuth dynamic client registration, and each user approves it on a Plane Gays consent page. The user needs a Plane Gays account, which is created in the iPhone or Android app and is free during the beta. To try it, create an account in the app, then connect a client such as Claude or Codex with the steps in Connect an AI assistant.

Authentication

Plane Gays uses OAuth 2.1 with PKCE, as the MCP authorization spec describes. Most MCP clients do all of this for you when you give them the server address.

  1. Call POST /mcp without a token. The 401 response's WWW-Authenticate header points to /.well-known/oauth-protected-resource/mcp.
  2. Read /.well-known/oauth-authorization-server for the endpoints below.
  3. Register: POST /register with your redirect_uris and client_name. You get a client_id. Clients are public: there is no client secret.
  4. Send the user's browser to /authorize with response_type=code, your client_id and redirect_uri, a state, an S256 code_challenge, resource=https://mcp.planegays.app/mcp and, optionally, the scope you need. The user signs in and approves at planegays.app/connect.
  5. Exchange the code: POST /token with grant_type=authorization_code, the code, redirect_uri, code_verifier and client_id.
  6. Send the access token as Authorization: Bearer pgat_.... It lasts an hour. Refresh it with grant_type=refresh_token, and use the new refresh token each time: reusing an old one revokes the connection.

A connection expires after 30 days without use, and after 90 days in all. POST /revoke with a token and your client_id disconnects it, and users can disconnect apps themselves in Settings.

Scopes

ScopeAllows
profile:readThe user's name and username, and their own email address.
trips:readTrips the user is a member of: details, itinerary, actions, notes and members.
trips:writeCreate and edit those trips, including removing activities, actions and people.
packing:readThe user's packing lists.
packing:writeCreate and edit packing lists, and attach them to trips.
confirmations:readBooking details read from confirmations the user forwarded.
social:readSummaries of trips people the user follows share, and user search.

Omit scope to ask for all of them. Every tool needs exactly one scope.

Example requests

Discover the authorization server

curl https://mcp.planegays.app/.well-known/oauth-authorization-server

Register a client

curl -X POST https://mcp.planegays.app/register \
  -H 'Content-Type: application/json' \
  -d '{"client_name": "My trip agent", "redirect_uris": ["http://127.0.0.1:8976/callback"]}'

List the tools

curl -X POST https://mcp.planegays.app/mcp \
  -H 'Authorization: Bearer pgat_...' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc": "2.0", "id": 1, "method": "tools/list"}'

Call a tool

curl -X POST https://mcp.planegays.app/mcp \
  -H 'Authorization: Bearer pgat_...' \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc": "2.0", "id": 2, "method": "tools/call",
       "params": {"name": "list_trips", "arguments": {"when": "upcoming"}}}'

The server is stateless: send every request with POST, and it answers with a single JSON response.

Errors

Every error is JSON, never an HTML page.

Rate limits

Every response carries the IETF RateLimit header fields for the burst budget each network gets, so a client can pace itself instead of waiting for a 429. The only exception is a 403 for a browser origin that isn't allowed.

RateLimit-Policy: "burst";q=600;w=60
RateLimit: "burst";r=599;t=60

q is the requests allowed per window of w seconds, r how many are left, and t the seconds until the window resets. A 429 always carries Retry-After.

Versioning and deprecation

The API is versioned by MCP protocol version. Your client and the server agree on one in initialize, and your client sends it in the MCP-Protocol-Version header on every later request. The server supports 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05 and 2024-10-07, and answers any other version with a 400.

Within a protocol version, tools only change additively: new tools, new optional arguments and new fields in results. Before a tool is removed or renamed, or an argument or result field is removed or changes meaning, we announce it on this page and in llms.txt at least 30 days ahead. No deprecations are scheduled.

Data rules

The API acts as the signed-in user, with the same permissions they have in the app. Trips are visible only to their members, and a trip someone isn't on looks exactly like one that doesn't exist. Other people's email addresses are never returned.