Travel Planner MCP server integrates Google Maps for location search, route calculation, and travel time insights.
The Travel Planner Model Context Protocol (MCP) server serves as an essential intermediary between AI applications and external travel-related services such as Google Maps API, enabling advanced functionality like location-based searches, place details retrieval, route calculations, and timezone information. This server is designed to support AI-driven applications by providing a seamless interface for complex tasks related to travel planning.
The Travel Planner MCP Server boasts several core features that enhance the capabilities of AI applications through Model Context Protocol (MCP). Key functionalities include:
This feature allows users and AI applications to perform location-based searches using Google Places API. Users can specify a query, such as "bakery in downtown," along with optional parameters like location
for biasing results near a specific longitude and latitude or radius
to limit the search area.
Users can request detailed information about locations identified by their unique Google Place IDs. This feature is crucial for detailed explorations, such as understanding the amenities, reviews, and contact information available at a given place.
This capability enables route planning between two or more locations. Users can specify origins and destinations, along with optional preferences like travel mode (driving, walking, bicycling, or public transit). This feature supports sophisticated journey planning for diverse travel needs.
TimeZone information is vital for applications that need to display accurate local times and plan travel schedules based on time zones. Users can provide coordinates to determine the timezone in effect at those locations.
The Travel Planner MCP Server adheres to the Model Context Protocol (MCP) architecture, ensuring seamless integration with AI applications. The server's internal structure is modular and extensible, allowing easy updates to enhance functionality as new APIs or travel-related services become available.
The following Mermaid diagram illustrates the flow of data between an AI application, a Model Context Protocol (MCP) client, the Travel Planner MCP Server, and external tools such as Google Maps API:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
The Travel Planner MCP Server is compatible with multiple MCP clients, including those provided by major AI platforms like Claude Desktop, Continue, and Cursor:
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ | ✅ | ❌ | Tools Only |
To install Travel Planner for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @GongRzhe/TRAVEL-PLANNER-MCP-Server --client claude
Users can also install the server manually using npx
or by installing it globally:
npx @gongrzhe/server-travelplanner-mcp
Or with an environment variable for Google Maps API:
GOOGLE_MAPS_API_KEY=your_api_key npx @gongrzhe/server-travelplanner-mcp
# Install globally
npm install -g @gongrzhe/server-travelplanner-mcp
# Run after global installation
GOOGLE_MAPS_API_KEY=your_api_key @gongrzhe/server-travelplanner-mcp
AI assistants can integrate the Travel Planner MCP Server to offer travelers a seamless way to plan their trips. For example, when users ask an assistant "How far and how long does it take to get from the airport to downtown," the server will calculate the route and provide travel time estimates.
Personal assistants can use this server to suggest nearby restaurants or attractions based on user preferences. By integrating location search capabilities, personal assistants can dynamically present relevant options that comply with users' interests and current whereabouts.
To integrate the Travel Planner MCP Server with an MCP client like Claude Desktop, follow these steps:
{
"mcpServers": {
"travel-planner": {
"command": "npx",
"args": ["@gongrzhe/server-travelplanner-mcp"],
"env": {
"GOOGLE_MAPS_API_KEY": "your_google_maps_api_key"
}
}
}
}
Alternatively, the server can be configured to run directly with Node.js:
{
"mcpServers": {
"travel-planner": {
"command": "node",
"args": ["path/to/dist/index.js"],
"env": {
"GOOGLE_MAPS_API_KEY": "your_google_maps_api_key"
}
}
}
}
The Travel Planner MCP Server ensures interoperability with major AI platforms and robust performance across a wide range of use cases. The following compatibility matrix provides an overview of the server's support for different MCP clients:
MCP Client | Claude Desktop | Continue | Cursor |
---|---|---|---|
Resources | Full Support | Full Support | Tool Only |
Tools | Full Support | Full Support | |
Prompts | Full Support | Full Support | |
Status | Full Support | Full Support | Tools Only |
npm install
npm run build
GOOGLE_MAPS_API_KEY
(required): Your Google Maps API key with Places API, Directions API, Geocoding API, and Time Zone API enabled.Q: Can I connect the Travel Planner MCP Server to other AI platforms? A: Yes, the server is compatible with several MCP clients, including Claude Desktop, Continue, and Cursor. However, support for tools and prompts varies among clients.
Q: How do I ensure data privacy when using this server? A: The Travel Planner MCP Server encrypts sensitive information during transmission and complies with Google's API policies to maintain user privacy and security.
Q: Is it easy to update the Travel Planner MCP Server with new features or tools? A: Yes, due to its modular architecture, updating the server involves adding new modules for additional functionalities without disrupting existing operations.
Q: Are there any known limitations when using this server in AI workflows? A: Known limitations include the dependency on a reliable Google Maps API and potential rate limiting which could affect performance at high request volumes.
Q: How do I troubleshoot issues with the Travel Planner MCP Server? A: Common issues can be resolved by checking environment variables, ensuring correct command-line arguments, and consulting the README for detailed installation instructions.
Contributions to the Travel Planner MCP Server are welcome! Developers can contribute by:
npm test
All contributions should adhere to our coding style guide and be accompanied by corresponding documentation updates.
The Travel Planner MCP Server is part of the broader Model Context Protocol ecosystem, providing essential tools for advanced AI application development. For more information on MCP and related projects, visit:
By leveraging the Travel Planner MCP Server, developers can unlock innovative capabilities and enhance AI application integrations for real-world travel planning scenarios.
RuinedFooocus is a local AI image generator and chatbot image server for seamless creative control
Access NASA APIs for space data, images, asteroids, weather, and exoplanets via MCP integration
Simplify MySQL queries with Java-based MysqlMcpServer for easy standard input-output communication
Explore CoRT MCP server for advanced self-arguing AI with multi-LLM inference and enhanced evaluation methods
Build stunning one-page websites track engagement create QR codes monetize content easily with Acalytica
Learn to set up MCP Airflow Database server for efficient database interactions and querying airflow data