tatkal.flights partners@tatkalflights.com

MCP Connector — Developer Reference

Integrate Tatkal Flights with Claude, ChatGPT, Cursor, and other AI assistants via the Model Context Protocol. Live INR fares across IndiGo, Air India, Akasa, SpiceJet, and Air India Express for 180+ Indian domestic routes.

Endpoints

PurposeURL
MCP endpointhttps://api.tatkal.flights/mcp
Authorization-server discovery/.well-known/oauth-authorization-server
Protected-resource discovery/.well-known/oauth-protected-resource
Authorization URLhttps://tatkal.flights/oauth/authorize
Token URLhttps://api.tatkal.flights/oauth/token
Revocation URLhttps://api.tatkal.flights/oauth/revoke
User dashboard (revoke connections)https://tatkal.flights/account/api-keys

OAuth 2.1 flow

Authorization Code with PKCE. S256 is mandatorycode_challenge_method=plain is rejected.

  1. Client generates code_verifier + code_challenge (S256).
  2. Redirect user to /oauth/authorize?response_type=code&client_id=&redirect_uri=&scope=flights:search&code_challenge=&code_challenge_method=S256&state=.
  3. User signs in to tatkal.flights, approves, gets redirected back with ?code=…&state=….
  4. Exchange code at POST /oauth/token with grant_type=authorization_code, code, code_verifier, redirect_uri, client_id.
  5. Receive access_token (30-day expiry). Use as Authorization: Bearer … on /mcp.

Scopes: flights:search, flights:read.

Allowed redirect_uri hosts: claude.ai, claude.com, anthropic.com, chat.openai.com, chatgpt.com, localhost, 127.0.0.1.

The tool: search_flights

Input schema

FieldTypeRequiredNotes
fromstringyes3-letter IATA (DEL, BOM, BLR…)
tostringyes3-letter IATA
datestringyesYYYY-MM-DD
adultsintno1–9 (default 1)
cabinenumnoeconomy / premium_economy / business / first
stopsenumnodirect / any
airlinesstring[]noSubstring match on airline name
depart_afterstringnoHH:MM
depart_beforestringnoHH:MM
limitintno1–20 (default 10)

Output (per flight option)

Each option carries: airline name + flight number, departure/arrival airport & time, duration, stops, cabin, INR price, baggage allowance (15 kg check-in + 7 kg cabin standard), fare-rule flags, meal flag (true only for Air India mainline), and a deep-link booking_url to tatkal.flights with the flight pre-selected.

Fare rules & baggage (policy)

Rate limits

Security

Booking always happens on tatkal.flights. The connector returns deep-link URLs; the user fills in passenger details and pays securely on our site. No payment information ever flows through the AI chat.

Quick test

curl -i https://api.tatkal.flights/mcp
# → 401 Unauthorized
# → WWW-Authenticate: Bearer resource_metadata="https://api.tatkal.flights/.well-known/oauth-protected-resource"

curl -s https://api.tatkal.flights/.well-known/oauth-protected-resource | jq

Contact

Partnership / directory submission queries: partners@tatkalflights.com
Customer support (refund / PNR questions): care@tatkalflights.com
Operated by Swadesi Travel Pvt Ltd, India.