trip-search-mcp
Enables Claude to plan trips by performing live searches against Google Flights, hotels, vacation rentals, activities, and events, plus weather and currency conversion.
README
trip-search-mcp
Let Claude plan trips for you, in plain English. Live searches against Google Flights, Google Hotels, vacation rentals, Airbnb, Tripadvisor activities, and event ticket vendors ā plus weather forecasts, currency conversion, persistent price watches, and per-property detail drill-downs. Eleven tools, one config block.
You: Find me round-trip flights Helsinki ā Washington DC for May 18,
returning May 29, one stop or fewer.
Claude: [calls search_flights with WAS auto-expanded to IAD, DCA, BWI;
merges 3 parallel results, ranks cheapest first, returns a
summary with "Book on Google Flights" links]
š FEATURES.md has the full plain-English feature list with paste-ready example prompts for every capability ā read that to see what's possible.
š TRIP-PLANNING-EXPANSION-SPEC.md tracks the five-track expansion plan (weather, currency, events, activities, drill-down). Weather is shipped; the other four are queued.
Before you start
You need:
- A computer running macOS, Windows, or Linux
- Claude Desktop, signed in
- About 5 minutes the first time
You do NOT need an account anywhere except Claude ā unless you also want hotel search, which uses a free SerpAPI key (covered as an optional step below).
Install ā step by step
Everything below happens in your Terminal app (macOS/Linux) or PowerShell (Windows).
Don't know what a terminal is? macOS: press
ā+Space, typeTerminal, press Enter. Windows: press the Win key, typePowerShell, press Enter.
1. Install Python 3.12 (skip if you already have it)
python3 --version
If you see Python 3.12.x or higher, jump to step 2. Otherwise install uv ā one line, brings Python with it:
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Open a fresh terminal window after the installer finishes so the uv command is on your path.
2. Download the project
git clone https://github.com/nanwer/trip-search-mcp.git
cd trip-search-mcp
Missing git? macOS: run xcode-select --install. Windows: install from git-scm.com and reopen PowerShell.
3. Install the package
uv venv
uv pip install -e .
Creates .venv/ and installs everything. About 30 seconds.
4. Find the absolute path to the venv Python
You'll paste this into Claude Desktop's config in the next step.
# macOS / Linux
echo "$(pwd)/.venv/bin/python"
# Windows
echo "$(Resolve-Path .\.venv\Scripts\python.exe)"
Copy what it prints ā looks like /Users/you/trip-search-mcp/.venv/bin/python (macOS) or C:\Users\you\trip-search-mcp\.venv\Scripts\python.exe (Windows).
5. Add a trip-search entry to Claude Desktop's config
This is the one step where you have to edit a text file by hand (or get Claude to edit it for you ā see the callout below). The file is JSON; if you've never edited JSON before, just be careful with commas and quotes.
Where is the file?
| OS | Path | Quickest way to find it |
|---|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
In Finder, hit ā+Shift+G and paste ~/Library/Application Support/Claude/. Or run the open -e command below. |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
In File Explorer, paste %APPDATA%\Claude\ into the address bar. Or run the notepad command below. |
| Linux | ~/.config/Claude/claude_desktop_config.json |
Open in your favorite text editor. |
Open the config file:
# macOS
open -e "$HOME/Library/Application Support/Claude/claude_desktop_config.json"
# Windows
notepad "$env:APPDATA\Claude\claude_desktop_config.json"
5a. Pick your scenario
The config file is shared across every MCP server Claude Desktop knows about. Read the right scenario below before editing ā adding trip-search to a file that already has other servers in it is different from setting it up from scratch.
š Not sure which scenario you're in or worried about breaking things? Take a screenshot of your current config file (or copy-paste its contents) into a Claude chat and ask: "Merge a trip-search block into this MCP config without removing my existing servers. My venv Python path is /PASTE/PATH/FROM/STEP-4/HERE." Claude will hand back the full merged JSON. Paste that back into the file. No JSON wrangling required.
Scenario A ā You've never set up an MCP server before (fresh file)
The file probably doesn't exist yet. Create it:
# macOS
mkdir -p "$HOME/Library/Application Support/Claude"
cat > "$HOME/Library/Application Support/Claude/claude_desktop_config.json" << 'JSON'
{
"mcpServers": {
"trip-search": {
"command": "/PASTE/PATH/FROM/STEP-4/HERE",
"args": ["-m", "trip_search_mcp.server"]
}
}
}
JSON
# Windows
New-Item -ItemType Directory -Path "$env:APPDATA\Claude" -Force | Out-Null
@'
{
"mcpServers": {
"trip-search": {
"command": "C:\\PASTE\\PATH\\FROM\\STEP-4\\python.exe",
"args": ["-m", "trip_search_mcp.server"]
}
}
}
'@ | Out-File -Encoding utf8 "$env:APPDATA\Claude\claude_desktop_config.json"
Then open it in a text editor and replace /PASTE/PATH/FROM/STEP-4/HERE with the path you copied in step 4. Windows users: every \ in the path must be doubled to \\.
Scenario B ā You already have other MCP servers configured
Your file looks something like this (the names will differ ā yours might have Outline, Slack, Figma, etc.):
{
"mcpServers": {
"outline": {
"command": "...",
"args": [...],
"env": {...}
}
}
}
You need to add the trip-search block alongside your existing one(s). Open the file:
# macOS
open -e "$HOME/Library/Application Support/Claude/claude_desktop_config.json"
# Windows
notepad "$env:APPDATA\Claude\claude_desktop_config.json"
Then add "trip-search": { ... } inside mcpServers. The result should look like this:
{
"mcpServers": {
"outline": {
"command": "...",
"args": [...],
"env": {...}
},
"trip-search": {
"command": "/PASTE/PATH/FROM/STEP-4/HERE",
"args": ["-m", "trip_search_mcp.server"]
}
}
}
ā ļø Two things to watch out for:
- Don't forget the comma after the closing
}of your existing server block, before"trip-search":. Without it, the file is invalid JSON and Claude Desktop will load no MCP servers. - Windows paths: every
\in thecommandfield must be doubled (\\). Example:"command": "C:\\Users\\you\\trip-search-mcp\\.venv\\Scripts\\python.exe"
Save the file when done.
Lost the formatting? Paste your file's current contents (and the path from step 4) into a Claude chat and ask it to add the trip-search block for you. Way safer than hand-editing if you're not comfortable with JSON.
6. Fully quit and reopen Claude Desktop
Closing the window isn't enough. Quit from the menu bar (macOS: āQ or right-click the dock icon ā Quit) or from the system tray (Windows: right-click the Claude icon ā Quit). Then reopen.
7. Test it
Open a new chat in Claude Desktop. Click the hammer/tools icon at the bottom of the message box ā you should see trip-search with 7 always-on tools plus 4 more after step 8 below:
| Tool | Needs SERPAPI_KEY? |
|---|---|
search_flights |
No |
search_cheapest_dates |
No |
search_stays with category="airbnb" |
No |
get_weather_forecast |
No |
convert_currency |
No |
watch_flight_price / list_active_watches / cancel_watch |
No |
search_stays (default / hotels / vacation_rentals) |
Yes |
get_stay_details |
Yes |
search_events |
Yes |
search_activities |
Yes |
Ask Claude:
"Find me round-trip flights from JFK to LHR, leaving July 12 returning July 22, 1 adult, economy."
If you get a summary with prices and a "Book on Google Flights" link, you're done. Browse FEATURES.md for everything else you can ask.
Step 8 (optional) ā turn on hotel + event + activity search
Hotels, vacation rentals, events, activities, and get_stay_details use SerpAPI ā free tier 100 searches/month. The flight tools, the Airbnb category, weather, currency, and watches all work without it.
-
Sign up at serpapi.com (Google login works).
-
Copy your key from serpapi.com/manage-api-key.
-
Open your config file again and add an
envblock to the trip-search entry. Two scenarios:If trip-search is your only MCP server, your file becomes:
{ "mcpServers": { "trip-search": { "command": "/PASTE/PATH/FROM/STEP-4/HERE", "args": ["-m", "trip_search_mcp.server"], "env": { "SERPAPI_KEY": "paste-your-key-here" } } } }If you have other MCP servers alongside trip-search, only modify the trip-search block ā leave the others untouched:
{ "mcpServers": { "outline": { ... }, // leave alone "slack": { ... }, // leave alone "trip-search": { "command": "/PASTE/PATH/FROM/STEP-4/HERE", "args": ["-m", "trip_search_mcp.server"], "env": { // ā add this block "SERPAPI_KEY": "paste-your-key-here" } } } }ā ļø Don't forget the comma after
"args": [...]before"env":ā without it, the JSON is invalid. -
āQ and reopen Claude Desktop. The four SerpAPI-gated tools (
search_stayshotels mode,get_stay_details,search_events,search_activities) now work.
š Again, if you'd rather not hand-edit JSON, paste your current config plus the API key into a Claude chat and ask it to add the SerpAPI env block for you. Faster than chasing missing commas.
If something doesn't work
| Symptom | Fix |
|---|---|
The trip-search server doesn't appear in Claude's tools menu |
You forgot to fully quit. āQ (or quit from the system tray on Windows), then reopen. |
search_stays says "SERPAPI_KEY is not set" |
The env block is missing or you reopened Claude before saving the config. Re-check step 8, then āQ + reopen. |
| Claude says "the tool call timed out" | A previous Claude Desktop quit may have left a stale MCP subprocess running. Run pgrep -f trip_search_mcp ā if more than 2 PIDs show up, run pkill -f trip_search_mcp.server (macOS/Linux) or End Task on every Claude process in Task Manager (Windows), then āQ + reopen. |
ModuleNotFoundError: No module named 'trip_search_mcp' |
The command path in your config points to the wrong Python. Re-run step 4 and paste that exact path. |
Airbnb search returns an upstream_error |
Airbnb sometimes pushes back on scraping during high traffic. Wait a few minutes and retry. If it keeps failing, pyairbnb may need a release. |
docs/SETUP.md has a longer, verbose walkthrough.
Card / button rendering ā baked into the server
The MCP server publishes server-level instructions at handshake time that tell Claude:
- Render multi-result tool output as an HTML artifact with one card per result (not as prose).
- Every booking partner gets its own button, side-by-side.
These instructions load once when Claude Desktop connects to the server and persist for the whole chat ā you don't have to remember to add anything to your prompts.
If you still see prose-with-markdown-links for a specific query (Claude has discretion), you can reinforce with:
"Render every multi-result tool output as an HTML/React artifact card with prominent buttons ā don't summarize as prose."
Or for a single combined trip-plan artifact:
"Put the final trip plan in a single HTML artifact. Each item is a card with a big rounded 'Book on X' button ā not a markdown link."
The directive lives in src/trip_search_mcp/server.py as _SERVER_INSTRUCTIONS. Edit it there if you want to tune the behavior for your own use.
Updating to the latest version
Claude Desktop spawns the MCP subprocess once at launch and keeps running it. Pulling new code doesn't reload the running process ā you have to āQ and reopen Claude Desktop after every update.
Recent install (within the last few weeks)
cd /path/to/trip-search-mcp
git pull
uv pip install -e . # reinstalls in case dependencies changed
Then āQ Claude Desktop and reopen.
Verify:
.venv/bin/python -c "from trip_search_mcp.server import mcp; print(mcp.name)"
# ā trip-search-mcp
Updating from an older version (before the flights-mcp ā trip-search-mcp rename)
Older installs used the module name flights_mcp (now trip_search_mcp). If your Claude Desktop config still says -m flights_mcp.server, the server will fail to start with ModuleNotFoundError after the update. Three things to fix:
-
Pull and reinstall:
cd /path/to/trip-search-mcp # path is unchanged; GitHub redirects the old repo URL git pull uv pip install -e . # picks up new deps including pyairbnb -
Edit your Claude Desktop config. Open
~/Library/Application Support/Claude/claude_desktop_config.json(macOS) or%APPDATA%\Claude\claude_desktop_config.json(Windows) and update theargsarray:- "args": ["-m", "flights_mcp.server"] + "args": ["-m", "trip_search_mcp.server"]Optionally rename the JSON key from
"flights"to"trip-search"so the entry in Claude Desktop's tools menu matches the new docs. -
āQ Claude Desktop and reopen.
Common gotchas during an update
| Symptom | Cause / Fix |
|---|---|
ModuleNotFoundError: No module named 'trip_search_mcp' |
Your config still points at the old module name. See "Updating from an older version" above. |
ModuleNotFoundError: No module named 'pyairbnb' |
New dependency added since your install. Run uv pip install -e . to pick it up. |
trip-search server shows "running" but new tools (search_stays, get_stay_details, watch_flight_price, ā¦) don't appear |
You didn't fully quit. Closing the window doesn't kill the subprocess on macOS or Windows. Use āQ (macOS) or the system-tray Quit (Windows). |
| Updates seem to apply but a specific tool times out | Two MCP subprocesses may be running (Claude Desktop occasionally fails to kill the old one). Check with pgrep -f trip_search_mcp.server ā if you see more than 2 PIDs, run pkill -f trip_search_mcp.server and reopen Claude Desktop. |
| The Claude Code CLI (not Desktop) doesn't see the updates | claude mcp commands cache server metadata. Restart your Claude Code session, or remove and re-add the server: claude mcp remove trip-search && claude mcp add trip-search -- /ABSOLUTE/PATH/TO/.venv/bin/python -m trip_search_mcp.server |
For developers
.venv/bin/pytest -q # 350 tests, all fixture-driven, no live API calls
Source layout:
src/trip_search_mcp/
āāā server.py FastMCP entry point ā registers 7 tools
āāā models.py Pydantic I/O models
āāā cache.py TTL response cache (tool-namespaced keys)
āāā cities.py City code ā airport list map (27 cities)
āāā errors.py ErrorCode enum, ToolError, envelope helpers
āāā logging_config.py JSON-line file logger
āāā tools/
ā āāā search_flights.py
ā āāā search_cheapest_dates.py
ā āāā search_stays.py
ā āāā get_stay_details.py
ā āāā watch_flight_price.py
ā āāā list_active_watches.py
ā āāā cancel_watch.py
āāā fli_backend/ flights ā via fli library, no auth
āāā serpapi_hotels_backend/ hotels + vacation rentals ā SerpAPI
āāā serpapi_events_backend/ concerts + festivals + sports ā SerpAPI google_events
āāā tripadvisor_backend/ things-to-do ā SerpAPI Tripadvisor (ssrc=A)
āāā airbnb_backend/ Airbnb direct ā pyairbnb + Nominatim geocoding
āāā open_meteo_backend/ weather forecasts ā Open-Meteo, no auth
āāā ecb_backend/ currency conversion ā ECB daily feed, no auth
āāā monitoring/ SQLite-backed price watches (lazy refresh)
Capture fresh real-data fixtures (uses live APIs ā burns 1 call each):
.venv/bin/python scripts/verify_fli.py # flights
.venv/bin/python scripts/verify_serpapi_hotels.py # hotels
.venv/bin/python scripts/verify_vacation_rentals.py # rentals
.venv/bin/python scripts/verify_property_details.py # property details
Further docs:
- FEATURES.md ā every capability, plain English, with example prompts and combined-workflow scenarios.
- docs/SETUP.md ā verbose install + troubleshooting.
- AGENTS.md ā notes for AI coding agents working on this repo (topology, gotchas, hallucination traps).
- BACKLOG.md ā completed items + new follow-ups surfaced during the work.
License
MIT.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.