Home / Resources / MCP documentation

Payana MCP.

A remote Model Context Protocol server for travel agencies. It reads agency data and saves unpublished trip drafts for human review. It never publishes, prices, invoices, messages a traveller, or moves money.

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

  1. Payana ops must enable AI copilot & remote MCP for the agency.
  2. The agency must be on a plan that includes AI drafting.
  3. An owner or admin signs in to Payana Studio when the OAuth consent screen opens.

ChatGPT

  1. Open chatgpt.com/plugins and select Create or add a custom connector.
  2. Name it Payana and use the server URL above.
  3. Choose OAuth and approve the Payana consent screen.
  4. 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/mcp

Restart 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

ToolEffect
get_agency_profileRead the agency name, currency, tax regime, margin, GST rate, and plan.
list_vendorsList active contracted vendors. Contact fields are omitted.
list_rate_cardsList active fleet rate cards and their net costs.
search_tripsSearch the agency's managed trips by name or destination.
get_tripRead one trip and its itinerary segments.
list_leadsSearch the lead pipeline. Contact details and notes are omitted.
get_leadRead one lead. Contact details and notes are omitted.
draft_itineraryGenerate an unpersisted draft grounded in the agency's vendors and rate cards.
create_draft_tripSave an UNPUBLISHED trip for the agency to review. Idempotent when a key is supplied.
add_itinerary_segmentsAppend 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 idempotencyKey to create_draft_trip when 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.