MCP Now
Travel Planner

Travel Planner

by GongRzhe
GitHub

Travel planning and itinerary management server integrating with Google Maps API for location search, place details, and route calculations.

location
place
install
travel
google

Travel Planner MCP Server (@gongrzhe/server-travelplanner-mcp)

smithery badge

A Travel Planner Model Context Protocol (MCP) server implementation for interacting with Google Maps and travel planning services. This server enables LLMs to perform travel-related tasks such as location search, place details lookup, and travel time calculations.

Travel Planner Server MCP server

Installation & Usage

Installing via Smithery

To install Travel Planner for Claude Desktop automatically via Smithery:

1npx -y @smithery/cli install @GongRzhe/TRAVEL-PLANNER-MCP-Server --client claude

Installing Manually

1# Using npx (recommended) 2npx @gongrzhe/server-travelplanner-mcp 3 4# With environment variable for Google Maps API 5GOOGLE_MAPS_API_KEY=your_api_key npx @gongrzhe/server-travelplanner-mcp

Or install globally:

1# Install globally 2npm install -g @gongrzhe/server-travelplanner-mcp 3 4# Run after global installation 5GOOGLE_MAPS_API_KEY=your_api_key @gongrzhe/server-travelplanner-mcp

Components

Tools

  • searchPlaces

    • Search for places using Google Places API
    • Input:
      • query (string): Search query for places
      • location (optional): Latitude and longitude to bias results
      • radius (optional): Search radius in meters
  • getPlaceDetails

    • Get detailed information about a specific place
    • Input:
      • placeId (string): Google Place ID to retrieve details for
  • calculateRoute

    • Calculate route between two locations
    • Input:
      • origin (string): Starting location
      • destination (string): Ending location
      • mode (optional): Travel mode (driving, walking, bicycling, transit)
  • getTimeZone

    • Get timezone information for a location
    • Input:
      • location: Latitude and longitude coordinates
      • timestamp (optional): Timestamp for time zone calculation

Configuration

Usage with Claude Desktop

To use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json:

1{ 2 "mcpServers": { 3 "travel-planner": { 4 "command": "npx", 5 "args": ["@gongrzhe/server-travelplanner-mcp"], 6 "env": { 7 "GOOGLE_MAPS_API_KEY": "your_google_maps_api_key" 8 } 9 } 10 } 11}

Alternatively, you can use the node command directly if you have the package installed:

1{ 2 "mcpServers": { 3 "travel-planner": { 4 "command": "node", 5 "args": ["path/to/dist/index.js"], 6 "env": { 7 "GOOGLE_MAPS_API_KEY": "your_google_maps_api_key" 8 } 9 } 10 } 11}

Development

Building from Source

  1. Clone the repository
  2. Install dependencies:
    1npm install
  3. Build the project:
    1npm run build

Environment Variables

  • GOOGLE_MAPS_API_KEY (required): Your Google Maps API key with the following APIs enabled:
    • Places API
    • Directions API
    • Geocoding API
    • Time Zone API

License

This MCP server is licensed under the MIT License. For more details, please see the LICENSE file in the project repository.