Travel MCP Server logo

Travel MCP Server

Community
gs-ysingh

A comprehensive travel planning server for flight search, accommodation booking, currency exchange, and weather forecasting.

Publishergs-ysingh
Repositorytravel-mcp-server
LanguageJavaScript
Forks
3
Stars
16
Available tools
0
Transport typestdio
Categories
Links
  • Connect tools to AI workflows

    Travel MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    16 stars and 3 forks from the linked repository.

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

Installation

  1. Clone the repository:
bash
git clone <repository-url>
cd travel-mcp-server
  1. Install dependencies:
bash
npm install
  1. Set up environment variables:
    • Copy .env.example to .env
    • Fill in your API keys (see API Keys Setup)

API Keys Setup

You'll need to obtain API keys from the following services:

  1. Flight API: Amadeus, Skyscanner, or similar flight data provider
  2. Accommodation API: Booking.com, Airbnb, or similar accommodation service
  3. Currency Exchange API: Fixer.io, ExchangeRate-API, or similar service
  4. Weather API: OpenWeatherMap, WeatherAPI, or similar weather service
  5. Google Places API: For attractions and restaurant recommendations

Update your .env file with these keys:

properties
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_key

Usage

Development

Run the server in development mode with hot reload:

bash
npm run dev

Production

Build and start the server:

bash
npm run build
npm start

Watch Mode

Run with automatic restart on file changes:

bash
npm run watch

Available 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/city
  • destination: Arrival airport/city
  • departureDate: Departure date
  • returnDate: Return date (optional for one-way)
  • passengers: Number of passengers
  • class: Flight class (economy, business, first)

2. Search Accommodation (search_accommodation)

Find hotels, vacation rentals, and other accommodation options.

Parameters:

  • destination: City or location
  • checkIn: Check-in date
  • checkOut: Check-out date
  • guests: Number of guests
  • rooms: Number of rooms
  • type: 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 location
  • date: Date for forecast
  • days: 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 destination
  • duration: Trip duration in days
  • travelers: Number of travelers
  • category: Budget category (budget, mid-range, luxury)

Project Structure

text
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 file

Integration 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:

json
{
  "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

  1. Create a new service class in src/services/
  2. Implement the required methods
  3. Register the service in src/index.ts
  4. Add corresponding tools and handlers

Running Tests

bash
npm test

Contributing

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature-name
  3. Make your changes
  4. Run tests: npm test
  5. Commit your changes: git commit -m 'Add feature'
  6. Push to the branch: git push origin feature-name
  7. Submit 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:

  1. Check the Issues section
  2. Create a new issue with detailed information
  3. 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.

Use Travel MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once Travel MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add Travel MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the Travel MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "travel-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the Travel MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the Travel MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use Travel MCP Server to help me with this task?
Travel MCP Server
Sure. I read it.
Here is what I found using Travel MCP Server.

Frequently asked questions

What is the Travel MCP Server MCP server used for?

Travel MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use Travel MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use Travel MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use Travel MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With Travel MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect Travel MCP Server MCP to TypingMind?

Travel MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does Travel MCP Server MCP provide in TypingMind?

Travel MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use Travel MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If Travel MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇