travel-mcp-server
Allows searching flights using Google Flights data (currently returning sample data).
π Architecture write-up & engineer's notes: tanayshah.dev/projects/travel-mcp-server/ β by Tanay Shah, AI engineer in NYC.
Travel MCP Server
An MCP server that gives AI assistants real-time access to flights, hotels, and weather data.
Why I Built This
I wanted to see if I could make Claude actually useful for travel planning - not just chatting about trips, but actually searching flights, comparing hotel prices, and checking weather forecasts. The Model Context Protocol (MCP) makes this possible by letting AI assistants call external tools.
The hard part wasn't the MCP integration - it was getting reliable travel data. Google Flights blocks scrapers aggressively, so flights fall back to sample data. Booking.com is more forgiving, so hotel scraping actually works. Weather uses Open-Meteo's free API which just works.
Related MCP server: ts-travel-mcp-server
What It Does
Tool | Data Source | Status |
| Google Flights (via fast-flights) | Sample data fallback |
| Booking.com (Playwright scraper) | Live scraping |
| Open-Meteo API | Live API |
Quick Start
# Install
pip install -e .
playwright install chromium
# Start MongoDB
docker run -d --name mongodb -p 27017:27017 mongo:latest
# Test it
travel-mcp test weather --city Paris --start 2025-06-15
travel-mcp test hotels --city "New York"
travel-mcp test flights --from JFK --to LAX --date 2025-06-15Use with Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"travel": {
"command": "travel-mcp",
"args": ["serve"]
}
}
}Then ask Claude things like:
"Find me hotels in Tokyo under $200/night"
"What's the weather like in Paris next week?"
"Search flights from JFK to LAX"
CLI Commands
travel-mcp serve # Run MCP server
travel-mcp test flights ... # Test flight search
travel-mcp test hotels ... # Test hotel search
travel-mcp test weather ... # Test weather search
travel-mcp cache stats # View cache statistics
travel-mcp cache clear # Clear cached dataArchitecture
Claude Desktop
β (MCP protocol)
Travel MCP Server
β
ββββββββββββββ¬ββββββββββββββ¬βββββββββββββββ
β Flights β Hotels β Weather β
β fast-flightsβ Playwright β Open-Meteo β
ββββββββββββββ΄ββββββββββββββ΄βββββββββββββββ
β β β
MongoDB (cache layer)Tech Stack
Python 3.11+ with asyncio
MCP SDK for Claude integration
Playwright for browser automation
MongoDB for caching with TTL indexes
Typer for CLI
Loguru for logging
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and compare flight offers through a cache-aware Streamable HTTP MCP server for AI agents.
Flight search MCP server providing search, pagination, and itinerary details for AI assistants.
TravelMind: 8 MCP tools for travel (12306 trains, flights, hotels, geocode, planning, policy).
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceA smart MCP gateway that routes AI agents to the right tools using hybrid search (vector + full-text) on MongoDB Atlas, collapsing the retrieval infrastructure into a single query.MIT
- AlicenseAqualityDmaintenanceA full-stack travel booking MCP server that enables AI clients to search flights, make reservations, cancel bookings, and manage persistent state across sessions.96 npm5MIT
- FlicenseBqualityBmaintenanceUnified MCP server exposing 12 DevOps tools across GitHub, PostgreSQL, Slack, and Google Calendar for AI agents, with rate limiting, input validation, and per-service scoped tokens.30-
- FlicenseNot gradedqualityCmaintenanceMCP server for agentic travel recommendations, exposing tools to retrieve member profiles and personalized travel recommendations with partner-specific rules and policies.-