Endpoint and authentication
Server URL: https://app.payana.today/api/mcp. Transport: Streamable HTTP. Authentication: OAuth 2.0 with PKCE (S256) and dynamic client registration. No static credential is required for a directory connector; the OAuth client is registered automatically.
The server also advertises:
/.well-known/oauth-protected-resource/.well-known/oauth-authorization-server/api/mcp/oauth/register/api/mcp/oauth/authorize/api/mcp/oauth/token/api/mcp/oauth/revoke
Before you connect
- Payana ops must enable AI copilot & remote MCP for the agency.
- The agency must be on a plan that includes AI drafting.
- An owner or admin signs in to Payana Studio when the OAuth consent screen opens.
ChatGPT
- Open
chatgpt.com/pluginsand select Create or add a custom connector. - Name it Payana and use the server URL above.
- Choose OAuth and approve the Payana consent screen.
- Enable the connector in a chat and mention @Payana.
Claude
In claude.ai, open Customize → Connectors and add the server URL with OAuth. Team and Enterprise owners can add it once under Organization settings → Connectors. The directory listing uses OAuth; a fixed bearer token is only for private custom connectors where OAuth is unavailable.
Claude Code
Add the server and complete the browser sign-in:
claude mcp add --transport http payana https://app.payana.today/api/mcpRestart Claude Code or run /mcp to confirm the connection.
Scope and token lifetime
The connection requests payana.agency: read agency data and create or append to unpublished trip drafts. Access tokens last one hour; refresh tokens last 30 days and rotate on use. Revoke access in Settings → AI & MCP → Revoke; that clears the static token and every OAuth token for the agency.
Tools
| Tool | Effect |
|---|---|
get_agency_profile | Read the agency name, currency, tax regime, margin, GST rate, and plan. |
list_vendors | List active contracted vendors. Contact fields are omitted. |
list_rate_cards | List active fleet rate cards and their net costs. |
search_trips | Search the agency's managed trips by name or destination. |
get_trip | Read one trip and its itinerary segments. |
list_leads | Search the lead pipeline. Contact details and notes are omitted. |
get_lead | Read one lead. Contact details and notes are omitted. |
draft_itinerary | Generate an unpersisted draft grounded in the agency's vendors and rate cards. |
create_draft_trip | Save an UNPUBLISHED trip for the agency to review. Idempotent when a key is supplied. |
add_itinerary_segments | Append segments to a draft trip. Retrying the same call appends duplicates. |
Safety limits
- Writes are limited to unpublished drafts. Published, archived, cancelled, and other-agency trips are read-only or inaccessible.
- Drafts count toward the agency's trip limit and appear under Trips → Draft for review.
- List responses omit vendor and lead contact details. There is no tool to publish, set prices, link a customer, invoice, message a traveller, delete records, or move money.
- Every draft write is audited with actor “Payana MCP”. Pass
idempotencyKeytocreate_draft_tripwhen retrying.
Support and data
Questions: hello@payana.today. Data handling is described in the privacy policy. The agency can revoke access at any time from Payana Studio.