by GongRzhe
A Travel Planner Model Context Protocol (MCP) server implementation for interacting with Google Maps and travel planning services, enabling LLMs to perform travel-related tasks.
TRAVEL-PLANNER-MCP-Server is a server-side application that acts as an intermediary between Large Language Models (LLMs) and Google Maps API. It allows LLMs to access and utilize Google Maps functionalities for travel planning and itinerary management. This server is built on the Model Context Protocol (MCP), facilitating seamless integration with LLM applications like Claude Desktop.
TRAVEL-PLANNER-MCP-Server can be installed and used in several ways:
npx -y @smithery/cli install @GongRzhe/TRAVEL-PLANNER-MCP-Server --client claude
.npx @gongrzhe/server-travelplanner-mcp
. For Google Maps API integration, set the GOOGLE_MAPS_API_KEY
environment variable: GOOGLE_MAPS_API_KEY=your_api_key npx @gongrzhe/server-travelplanner-mcp
.npm install -g @gongrzhe/server-travelplanner-mcp
and then run with GOOGLE_MAPS_API_KEY=your_api_key @gongrzhe/server-travelplanner-mcp
.For integration with Claude Desktop, you need to configure claude_desktop_config.json
by adding the server details under the mcpServers
section, including the command to run the server and your Google Maps API key.
TRAVEL-PLANNER-MCP-Server provides several tools that leverage Google Maps API:
searchPlaces
: Allows searching for places using Google Places API with options for query, location bias, and search radius.getPlaceDetails
: Retrieves detailed information about a specific place using its Google Place ID.calculateRoute
: Calculates routes between two locations, supporting different travel modes (driving, walking, bicycling, transit).getTimeZone
: Fetches timezone information for a given location and optional timestamp.This server is ideal for applications requiring intelligent travel planning capabilities, particularly those powered by LLMs. Potential use cases include:
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.
To install Travel Planner for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @GongRzhe/TRAVEL-PLANNER-MCP-Server --client claude
# Using npx (recommended)
npx @gongrzhe/server-travelplanner-mcp
# With environment variable for Google Maps API
GOOGLE_MAPS_API_KEY=your_api_key npx @gongrzhe/server-travelplanner-mcp
Or install globally:
# Install globally
npm install -g @gongrzhe/server-travelplanner-mcp
# Run after global installation
GOOGLE_MAPS_API_KEY=your_api_key @gongrzhe/server-travelplanner-mcp
searchPlaces
query
(string): Search query for placeslocation
(optional): Latitude and longitude to bias resultsradius
(optional): Search radius in metersgetPlaceDetails
placeId
(string): Google Place ID to retrieve details forcalculateRoute
origin
(string): Starting locationdestination
(string): Ending locationmode
(optional): Travel mode (driving, walking, bicycling, transit)getTimeZone
location
: Latitude and longitude coordinatestimestamp
(optional): Timestamp for time zone calculationTo use this server with the Claude Desktop app, add the following configuration to the "mcpServers" section of your claude_desktop_config.json
:
{
"mcpServers": {
"travel-planner": {
"command": "npx",
"args": ["@gongrzhe/server-travelplanner-mcp"],
"env": {
"GOOGLE_MAPS_API_KEY": "your_google_maps_api_key"
}
}
}
}
Alternatively, you can use the node command directly if you have the package installed:
{
"mcpServers": {
"travel-planner": {
"command": "node",
"args": ["path/to/dist/index.js"],
"env": {
"GOOGLE_MAPS_API_KEY": "your_google_maps_api_key"
}
}
}
}
npm install
npm run build
GOOGLE_MAPS_API_KEY
(required): Your Google Maps API key with the following APIs enabled:
This MCP server is licensed under the MIT License. For more details, please see the LICENSE file in the project repository.
Please log in to share your review and rating for this MCP.