The Travel Planner MCP Server enables Language Learning Models (LLMs) to perform travel-related tasks by interacting with Google Maps and travel planning services. It provides functionality for location search, place details lookup, route calculations, and timezone information.
For automated installation with Claude Desktop:
npx -y @smithery/cli install @GongRzhe/TRAVEL-PLANNER-MCP-Server --client claude
Run directly using npx (recommended):
# Basic usage
npx @gongrzhe/server-travelplanner-mcp
# With Google Maps API key
GOOGLE_MAPS_API_KEY=your_api_key npx @gongrzhe/server-travelplanner-mcp
Or install globally:
# Install the package globally
npm install -g @gongrzhe/server-travelplanner-mcp
# Run after global installation
GOOGLE_MAPS_API_KEY=your_api_key @gongrzhe/server-travelplanner-mcp
Search for places using Google Places API:
query
(string, required): Search query for placeslocation
(optional): Latitude and longitude to bias resultsradius
(optional): Search radius in metersGet detailed information about a specific place:
placeId
(string, required): Google Place ID to retrieve details forCalculate route between two locations:
origin
(string, required): Starting locationdestination
(string, required): Ending locationmode
(optional): Travel mode (driving, walking, bicycling, transit)Get timezone information for a location:
location
(required): Latitude and longitude coordinatestimestamp
(optional): Timestamp for time zone calculationAdd the following 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"
}
}
}
}
If you've installed the package locally, you can use:
{
"mcpServers": {
"travel-planner": {
"command": "node",
"args": ["path/to/dist/index.js"],
"env": {
"GOOGLE_MAPS_API_KEY": "your_google_maps_api_key"
}
}
}
}
To use this server, you'll need:
The API key should be set as the GOOGLE_MAPS_API_KEY
environment variable when running the server.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "travel-planner" '{"command":"npx","args":["@gongrzhe/server-travelplanner-mcp"],"env":{"GOOGLE_MAPS_API_KEY":"your_google_maps_api_key"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"travel-planner": {
"command": "npx",
"args": [
"@gongrzhe/server-travelplanner-mcp"
],
"env": {
"GOOGLE_MAPS_API_KEY": "your_google_maps_api_key"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"travel-planner": {
"command": "npx",
"args": [
"@gongrzhe/server-travelplanner-mcp"
],
"env": {
"GOOGLE_MAPS_API_KEY": "your_google_maps_api_key"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect