travel-mcp-server

travel-mcp-server

AI-powered travel search exposing flights, hotels, and weather as MCP tools, with a MongoDB-backed per-tool TTL cache whose timeouts are tuned to each upstream API's reliability characteristics.

Category
Visit Server

README

πŸ“ 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.

What It Does

Tool Data Source Status
get_latest_flight_data Google Flights (via fast-flights) Sample data fallback
get_latest_hotel_data Booking.com (Playwright scraper) Live scraping
get_weather_on_dates 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-15

Use 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 data

Architecture

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

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured