Travel MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Travel MCP Server Find flights from NYC to Tokyo for next week and estimate a mid-range budget for 2 people."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Travel MCP Server
A Model Context Protocol (MCP) server for comprehensive travel planning, providing flight search, accommodation booking, currency exchange, weather forecasting, and trip budget calculation capabilities.
Features
š« Flight Search: Find and compare flights with various options
šØ Accommodation Search: Search for hotels, vacation rentals, and other accommodations
š± Currency Exchange: Get real-time exchange rates for travel budgeting
š¤ļø Weather Forecast: Check weather conditions for your travel dates
š° Trip Budget Calculator: Calculate and plan your travel expenses
Related MCP server: Ingrids Reisetjenester
Installation
Clone the repository:
git clone <repository-url>
cd travel-mcp-serverInstall dependencies:
npm installSet up environment variables:
Copy
.env.exampleto.envFill in your API keys (see API Keys Setup)
API Keys Setup
You'll need to obtain API keys from the following services:
Flight API: Amadeus, Skyscanner, or similar flight data provider
Accommodation API: Booking.com, Airbnb, or similar accommodation service
Currency Exchange API: Fixer.io, ExchangeRate-API, or similar service
Weather API: OpenWeatherMap, WeatherAPI, or similar weather service
Google Places API: For attractions and restaurant recommendations
Update your .env file with these keys:
FLIGHT_API_KEY=your_flight_api_key
BOOKING_API_KEY=your_booking_api_key
EXCHANGE_API_KEY=your_exchange_api_key
WEATHER_API_KEY=your_weather_api_key
GOOGLE_PLACES_API_KEY=your_google_places_api_keyUsage
Development
Run the server in development mode with hot reload:
npm run devProduction
Build and start the server:
npm run build
npm startWatch Mode
Run with automatic restart on file changes:
npm run watchAvailable Tools
The MCP server provides the following tools:
1. Search Flights (search_flights)
Search for flights between destinations with customizable options.
Parameters:
origin: Departure airport/citydestination: Arrival airport/citydepartureDate: Departure datereturnDate: Return date (optional for one-way)passengers: Number of passengersclass: Flight class (economy, business, first)
2. Search Accommodation (search_accommodation)
Find hotels, vacation rentals, and other accommodation options.
Parameters:
destination: City or locationcheckIn: Check-in datecheckOut: Check-out dateguests: Number of guestsrooms: Number of roomstype: Accommodation type (hotel, apartment, etc.)
3. Get Exchange Rate (get_exchange_rate)
Get current exchange rates between currencies.
Parameters:
from: Source currency code (e.g., USD)to: Target currency code (e.g., EUR)amount: Amount to convert (optional)
4. Get Weather Forecast (get_weather_forecast)
Check weather conditions for your travel destination.
Parameters:
location: City or locationdate: Date for forecastdays: Number of days to forecast (optional)
5. Calculate Trip Budget (calculate_trip_budget)
Calculate estimated trip costs including flights, accommodation, and daily expenses.
Parameters:
destination: Travel destinationduration: Trip duration in daystravelers: Number of travelerscategory: Budget category (budget, mid-range, luxury)
Project Structure
travel-mcp-server/
āāā src/
ā āāā index.ts # Main server entry point
ā āāā services/
ā āāā FlightService.ts # Flight search functionality
ā āāā AccommodationService.ts # Accommodation search
ā āāā CurrencyService.ts # Currency exchange
ā āāā WeatherService.ts # Weather forecasting
āāā dist/ # Compiled TypeScript output
āāā package.json # Project dependencies and scripts
āāā tsconfig.json # TypeScript configuration
āāā .env # Environment variables (not in repo)
āāā .gitignore # Git ignore rules
āāā README.md # This fileIntegration with MCP Clients
This server can be used with any MCP-compatible client such as:
Claude Desktop
Other AI assistants supporting MCP
Custom MCP client applications
Add the server to your MCP client configuration:
{
"mcpServers": {
"travel-planner": {
"command": "npx",
"args": ["travel-mcp-server"]
}
}
}Development Guide
Tech Stack
TypeScript: Type-safe JavaScript development
Node.js: Runtime environment
MCP SDK: Model Context Protocol implementation
Axios: HTTP client for API requests
Zod: Schema validation
dotenv: Environment variable management
Adding New Services
Create a new service class in
src/services/Implement the required methods
Register the service in
src/index.tsAdd corresponding tools and handlers
Running Tests
npm testContributing
Fork the repository
Create a feature branch:
git checkout -b feature-nameMake your changes
Run tests:
npm testCommit your changes:
git commit -m 'Add feature'Push to the branch:
git push origin feature-nameSubmit a pull request
License
This project is licensed under the ISC License - see the LICENSE file for details.
Support
If you encounter any issues or have questions:
Check the Issues section
Create a new issue with detailed information
Provide logs and reproduction steps
Roadmap
Add more travel service integrations
Implement caching for API responses
Add travel itinerary planning
Support for group travel coordination
Integration with calendar services
Mobile app companion
Note: Remember to keep your API keys secure and never commit them to version control. Always use environment variables for sensitive configuration.
Available Tools
5 toolscalculate_trip_budgetB
Calculate total estimated budget for a trip
Inputs: duration (required), budgetLevel (required), destinations (required), travelers.
get_exchange_rateB
Get current currency exchange rates
Inputs: to (required), from (required), amount.
get_weather_forecastB
Get weather forecast for travel dates
Inputs: city (required), country (required), endDate (required), startDate (required).
search_accommodationC
Search for hotels and accommodations
Inputs: city (required), checkIn (required), checkOut (required), budget, +1 more.
search_flightsC
Search for flight prices and schedules
Inputs: origin (required), departDate (required), destination (required), passengers, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogā¦
TDQS
Scored across 5 tools
Each tool targets a distinct aspect of travel planning: budget, exchange rates, weather, accommodation, and flights. There is no overlap in purpose, making it easy for an agent to select the correct tool.
All tool names follow a consistent verb_noun pattern (e.g., calculate_trip_budget, search_flights), with the verb describing the action and the noun the entity, ensuring predictability.
With 5 tools, the server is well-scoped for a travel planning assistant, covering the essential tasks without being too sparse or overwhelming.
The set covers core travel planning needs (budget, exchange, weather, flights, accommodation), leaving only minor gaps such as destination information or itinerary management, which agents can work around.
Maintenance
Related MCP Connectors
Plans a whole trip from a total budget, every price labelled live, estimate or official.
Travel tools for AI agents: plan and edit real trips, search stays and tours, import travel videos.
Your personal AI travel concierge ā flights, hotels, 116M+ POIs, visas, weather & more
Give AI assistants access to real-time data. Search the web, compare flights, find hotels, and more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables comprehensive travel planning by integrating Google Travel Services and Amadeus GDS for dual flight and hotel searches, plus event discovery, weather forecasting, currency conversion, and location services. Combines consumer-friendly search with professional travel industry data for optimal trip planning.6MIT
- -licenseNot gradedqualityNot gradedmaintenanceEnables intelligent travel planning by combining weather forecasts and route calculations for destinations. Provides personalized travel recommendations based on weather conditions and supports trip planning with persistent conversation memory.-
- AlicenseNot gradedqualityDmaintenanceA comprehensive travel planning copilot that provides geographic data, weather forecasts, transportation details, currency exchange rates, and contextual content to create personalized travel experiences. Enables users to plan itineraries, check real-time conditions, and gather inspirational content for destinations.2 npmApache 2.0
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI-assisted travel planning with real-time weather forecasts, place discovery, customized itinerary generation based on interests and budget, and travel distance calculations between cities.-