Environment variables
All configuration variables use theFLI_MCP_ prefix.
FLI_MCP_DEFAULT_PASSENGERS
Default number of adult passengers for searches. Must be at least 1.
FLI_MCP_DEFAULT_CURRENCY
Three-letter currency code returned with search results. Must be exactly 3 characters.
FLI_MCP_DEFAULT_CABIN_CLASS
Default cabin class when none is specified. Options:
ECONOMYPREMIUM_ECONOMYBUSINESSFIRST
FLI_MCP_DEFAULT_SORT_BY
Default sorting strategy for flight results. Options:
CHEAPEST- Sort by lowest priceDURATION- Sort by shortest flight timeDEPARTURE_TIME- Sort by earliest departureARRIVAL_TIME- Sort by earliest arrival
FLI_MCP_DEFAULT_DEPARTURE_WINDOW
Default departure time window in ‘HH-HH’ 24-hour format. If not set, no time restriction is applied.
FLI_MCP_MAX_RESULTS
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:Configuration examples
European traveler
European traveler
Configure for Euro currency and preferred departure times:
Business traveler
Business traveler
Configure for business class and minimal results:
Family travel
Family travel
Configure for multiple passengers:
Budget traveler
Budget traveler
Focus on cheapest options with limited results:
FlightSearchConfig class
The configuration is implemented using theFlightSearchConfig 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:- Save the configuration file
- Completely quit Claude Desktop (not just close the window)
- Restart Claude Desktop
- The new configuration will be loaded automatically
Validating configuration
You can verify your configuration by asking Claude:Next steps
Tool reference
Learn about search parameters and options
Setup guide
Initial installation and configuration