Rihla
Flexible multi-leg, multi-airport flight search - cheapest valid combination across an…
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.1.0
- Listing updated
- 5 days ago
About Rihla
Rihla is an open-source MCP server. It runs locally on your machine and is started by your AI client.
Flexible multi-leg, multi-airport flight search - cheapest valid combination across an itinerary.
Install
Run in a terminal
claude mcp add rihla --env TRAVELPAYOUTS_TOKEN='<TRAVELPAYOUTS_TOKEN>' --env SERPAPI_KEY='<SERPAPI_KEY>' -- uvx rihla-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"rihla": {
"command": "uvx",
"args": [
"rihla-mcp"
],
"env": {
"TRAVELPAYOUTS_TOKEN": "<TRAVELPAYOUTS_TOKEN>",
"SERPAPI_KEY": "<SERPAPI_KEY>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"rihla": {
"command": "uvx",
"args": [
"rihla-mcp"
],
"env": {
"TRAVELPAYOUTS_TOKEN": "<TRAVELPAYOUTS_TOKEN>",
"SERPAPI_KEY": "<SERPAPI_KEY>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"rihla": {
"type": "stdio",
"command": "uvx",
"args": [
"rihla-mcp"
],
"env": {
"TRAVELPAYOUTS_TOKEN": "<TRAVELPAYOUTS_TOKEN>",
"SERPAPI_KEY": "<SERPAPI_KEY>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"rihla": {
"command": "uvx",
"args": [
"rihla-mcp"
],
"env": {
"TRAVELPAYOUTS_TOKEN": "<TRAVELPAYOUTS_TOKEN>",
"SERPAPI_KEY": "<SERPAPI_KEY>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"rihla": {
"command": "uvx",
"args": [
"rihla-mcp"
],
"env": {
"TRAVELPAYOUTS_TOKEN": "<TRAVELPAYOUTS_TOKEN>",
"SERPAPI_KEY": "<SERPAPI_KEY>"
}
}
}
}Using several servers? Build one config file with the MCP config generator.
Configuration
TRAVELPAYOUTS_TOKENTravelpayouts Data API token (free) - the primary price source. Without any keys the server runs on offline mock data.SERPAPI_KEYSerpApi key (optional, 250 free searches/mo) - fills routes Travelpayouts misses with bookable Google Flights fares.RIHLA_PROFILESource profile: 'local' (all configured sources), 'hosted' (redistribution-licensed only), or 'mock' (offline).
Pricing
Open source
Rihla FAQ
Is Rihla free?
Yes. Rihla is open source, so you can use and self-host it for free.
How do I add Rihla to Claude Code?
Run this command in your terminal: claude mcp add rihla --env TRAVELPAYOUTS_TOKEN='<TRAVELPAYOUTS_TOKEN>' --env SERPAPI_KEY='<SERPAPI_KEY>' -- uvx rihla-mcp
Where this comes from
- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.