GnistAI GnistAI
Log in

Flight Search

Multi-source flight search — currently Amadeus GDS, with Kiwi, SAS EuroBonus, and Seats.aero planned.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 7 tools tools 7 7 Transport

Data source: Amadeus GDS

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/flights/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-flights": {
      "url": "https://context.gnist.ai/mcp/flights/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/flights/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "search_flights", "arguments": {"origin": "example", "destination": "example", "departure_date": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/flights/

7 endpoints available:

Shell
curl "https://context.gnist.ai/rest/flights/search_flights?origin=example&destination=example&departure_date=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/flights/search_flights",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "origin": "example",
        "destination": "example",
        "departure_date": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc flights

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (7)

search_flights
Search for flights across multiple data sources.
ParameterTypeRequiredDescription
originstringrequiredOrigin IATA airport code (e.g. 'OSL').
destinationstringrequiredDestination IATA airport code (e.g. 'JFK').
departure_datestringrequiredDeparture date (YYYY-MM-DD).
return_dateanyoptionalReturn date for round-trip (YYYY-MM-DD). Omit for one-way.
adultsintegeroptionalNumber of adult passengers. (default: 1)
cabin_classanyoptionalCabin class: economy, premium_economy, business, or first.
modestringoptionalSearch mode: 'revenue' (paid flights), 'award' (points/miles), or 'all'. (default: "all")
max_resultsintegeroptionalMaximum number of results to return. (default: 20)
search_award_flights
Search specifically for award flights (points/miles redemptions).
ParameterTypeRequiredDescription
originstringrequiredOrigin IATA airport code (e.g. 'OSL').
destinationstringrequiredDestination IATA airport code (e.g. 'JFK').
departure_datestringrequiredDeparture date (YYYY-MM-DD).
return_dateanyoptionalReturn date for round-trip (YYYY-MM-DD). Omit for one-way.
adultsintegeroptionalNumber of adult passengers. (default: 1)
cabin_classanyoptionalCabin class: economy, premium_economy, business, or first.
max_resultsintegeroptionalMaximum number of results to return. (default: 10)
list_flight_sources
List all registered flight data sources and their status.
sas_awards_search
Search for SAS EuroBonus award seat availability on routes from Oslo to North America.
ParameterTypeRequiredDescription
destinationsanyoptionalIATA codes to check (e.g. ['MIA', 'LAX']). Omit to check all 11 configured destinations.
passengersintegeroptionalNumber of seats required on both legs. (default: 3)
min_stay_daysintegeroptionalMinimum stay duration in days. (default: 2)
max_stay_daysintegeroptionalMaximum stay duration in days. (default: 10)
priority_onlybooleanoptionalReturn only results for priority destinations (MIA, LAX). (default: false)
sas_awards_list_destinations
List all configured SAS EuroBonus award search destinations.
sas_awards_get_config
Return the current SAS EuroBonus search configuration.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related