Skip to main content
The MCP server can be customized using environment variables. All configuration is optional and has sensible defaults.

Environment variables

All configuration variables use the FLI_MCP_ prefix.

FLI_MCP_DEFAULT_PASSENGERS

integer
default:"1"
Default number of adult passengers for searches. Must be at least 1.

FLI_MCP_DEFAULT_CURRENCY

string
default:"USD"
Three-letter currency code returned with search results. Must be exactly 3 characters.

FLI_MCP_DEFAULT_CABIN_CLASS

string
default:"ECONOMY"
Default cabin class when none is specified. Options:
  • ECONOMY
  • PREMIUM_ECONOMY
  • BUSINESS
  • FIRST

FLI_MCP_DEFAULT_SORT_BY

string
default:"CHEAPEST"
Default sorting strategy for flight results. Options:
  • CHEAPEST - Sort by lowest price
  • DURATION - Sort by shortest flight time
  • DEPARTURE_TIME - Sort by earliest departure
  • ARRIVAL_TIME - Sort by earliest arrival

FLI_MCP_DEFAULT_DEPARTURE_WINDOW

string
Default departure time window in ‘HH-HH’ 24-hour format. If not set, no time restriction is applied.

FLI_MCP_MAX_RESULTS

integer
Maximum number of results returned by each tool. Must be greater than 0. If not set, all results are returned.

Configuration with Claude Desktop

Set environment variables in your Claude Desktop configuration file:

Configuration file locations

macOS:
Windows:
Linux:

Configuration examples

Configure for Euro currency and preferred departure times:
Configure for business class and minimal results:
Configure for multiple passengers:
Focus on cheapest options with limited results:

FlightSearchConfig class

The configuration is implemented using the FlightSearchConfig Pydantic settings class in fli/mcp/server.py:51. This class:
  • Automatically loads environment variables with the FLI_MCP_ prefix
  • Validates all configuration values
  • Provides type safety for configuration options
  • Exposes defaults through the MCP resource endpoint

Configuration schema

The server exposes its configuration schema through an MCP resource. AI assistants can query this resource to understand the current configuration:

Applying configuration changes

After modifying environment variables:
  1. Save the configuration file
  2. Completely quit Claude Desktop (not just close the window)
  3. Restart Claude Desktop
  4. The new configuration will be loaded automatically

Validating configuration

You can verify your configuration by asking Claude:
Claude can access the configuration resource to show you the active settings.

Next steps

Tool reference

Learn about search parameters and options

Setup guide

Initial installation and configuration