Install
openclaw skills install @punitarani/fliGuidance for installing and using Fli correctly as a CLI and MCP server. Use when: setting up Fli with pipx, running fli flight searches, configuring Claude Desktop with fli-mcp, using the HTTP MCP server, or troubleshooting Fli command availability and common usage mistakes.
openclaw skills install @punitarani/fliUse this skill when the goal is to install Fli and use its CLI or MCP server correctly.
The primary path is:
pipx install flightsfli for terminal searchesfli-mcp for Claude Desktop or other STDIO MCP clientsfli-mcp-http only when an HTTP MCP endpoint is specifically neededDo not default to cloning the repository or using a source checkout. Only mention cloning the repo when the user explicitly wants to contribute to Fli itself.
Fli is a Python package for accessing Google Flights data through direct API interaction.
It has three public surfaces:
flifli packagefli-mcp and fli-mcp-httpFor this skill, focus on the CLI and MCP server first.
If the user wants to use Fli as a tool, recommend pipx install flights.
Why:
fli, fli-mcp, and fli-mcp-http on the user's PATHOnly fall back to pip install flights or uvx when:
pipx is unavailablepython3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install flights
If pipx is already installed, skip directly to:
pipx install flights
Run these checks after install:
fli --help
fli-mcp --help
which fli-mcp
If the commands are not found after pipx install flights, have the user run:
python3 -m pipx ensurepath
Then restart the terminal session.
After pipx install flights, these commands should be available:
fli - main CLI for flight searchesfli-mcp - MCP server over STDIOfli-mcp-http - MCP server over HTTP, defaulting to http://127.0.0.1:8000/mcp/Important naming detail:
flightsfli, fli-mcp, and fli-mcp-httpDo not tell users to run pipx install fli.
Use:
fli flights JFK LAX 2026-10-25
Use:
fli dates JFK LAX --from 2026-01-01 --to 2026-01-31
Use filters like these when the user asks for them:
fli flights JFK LHR 2026-10-25 \
--time 6-20 \
--airlines BA KL \
--class BUSINESS \
--stops NON_STOP \
--sort DURATION
Supported language to map correctly:
ECONOMY, PREMIUM_ECONOMY, BUSINESS, FIRSTANY, NON_STOP, ONE_STOP, TWO_PLUS_STOPSCHEAPEST, DURATION, DEPARTURE_TIME, ARRIVAL_TIMEFli supports a convenience shorthand where a non-command invocation is treated as a flights search.
Example:
fli JFK LAX 2026-05-15
This behaves like:
fli flights JFK LAX 2026-05-15
Use the explicit flights subcommand in examples unless the user asks for shortcuts.
Use fli-mcp for Claude Desktop and other STDIO-based MCP clients.
fli-mcp
This is the default recommendation for local assistant integration.
Use fli-mcp-http only when the user needs an HTTP endpoint.
fli-mcp-http
By default, it serves at:
http://127.0.0.1:8000/mcp/For HTTP integrations, the client should send:
Accept: application/json, text/event-streamWhen the user wants Claude Desktop integration, recommend this config first:
{
"mcpServers": {
"fli": {
"command": "fli-mcp",
"args": []
}
}
}
Suggested config paths:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\\Claude\\claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonAfter editing the config:
Good validation prompt:
Can you search for flights from JFK to LHR on 2026-03-15?
If the user wants defaults, these environment variables are relevant:
FLI_MCP_DEFAULT_PASSENGERSFLI_MCP_DEFAULT_CURRENCYFLI_MCP_DEFAULT_CABIN_CLASSFLI_MCP_DEFAULT_SORT_BYFLI_MCP_DEFAULT_DEPARTURE_WINDOWFLI_MCP_MAX_RESULTSExample:
{
"mcpServers": {
"fli": {
"command": "fli-mcp",
"args": [],
"env": {
"FLI_MCP_DEFAULT_CURRENCY": "EUR",
"FLI_MCP_DEFAULT_CABIN_CLASS": "BUSINESS",
"FLI_MCP_MAX_RESULTS": "10"
}
}
}
}
Give them the pipx install flights path first.
Show fli flights ... and fli dates ... examples first.
Show fli-mcp and the Claude Desktop config first.
Then show fli-mcp-http and mention the /mcp/ path and Accept header.
That is outside the primary scope of this skill. Only then discuss cloning the repository and using development commands.
fli instead of flightspipx installs successfully but commands are not foundfli or fli-mcp not foundTry:
python3 -m pipx ensurepath
Then restart the terminal.
Fli requires Python 3.10 or newer.
Check with:
python3 --version
Check these in order:
fli-mcp --help works in a terminalFli includes automatic rate limiting and retries, but live Google Flights requests can still fail temporarily.
If a query fails:
Use these docs for product-facing guidance:
https://punitarani-fli.mintlify.app/introductionhttps://punitarani-fli.mintlify.app/installationhttps://punitarani-fli.mintlify.app/mcp/setuphttps://punitarani-fli.mintlify.app/llms.txtUse product docs for examples and onboarding. Use the actual installed command names when writing instructions.
The default recommendation is pipx install flights. After that, use fli for terminal searches, fli-mcp for Claude Desktop and other STDIO MCP clients, and fli-mcp-http only when an HTTP MCP endpoint is specifically needed.