Travel Planner MCP Server
旅行计划器 MCP 服务器 (@gongrzhe/server-travelplanner-mcp)
旅行规划模型上下文协议 (MCP) 服务器实现,用于与 Google 地图和旅行规划服务进行交互。该服务器使 LLM 能够执行与旅行相关的任务,例如位置搜索、地点详情查找和行程时间计算。
安装和使用
通过 Smithery 安装
要通过Smithery自动安装 Claude Desktop 的旅行计划器:
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或者全局安装:
# Install globally
npm install -g @gongrzhe/server-travelplanner-mcp
# Run after global installation
GOOGLE_MAPS_API_KEY=your_api_key @gongrzhe/server-travelplanner-mcpRelated MCP server: Google Maps MCP Server
成分
工具
搜索地点
使用 Google Places API 搜索地点
输入:
query(字符串):地点搜索查询location(可选):用于偏差结果的纬度和经度radius(可选):以米为单位的搜索半径
获取地点详情
获取有关特定地点的详细信息
输入:
placeId(字符串):用于检索详细信息的 Google Place ID
计算路线
计算两地之间的路线
输入:
origin(字符串):起始位置destination(字符串):结束位置mode(可选):出行模式(驾车、步行、骑行、公交)
获取时区
获取某个位置的时区信息
输入:
location:纬度和经度坐标timestamp(可选):用于时区计算的时间戳
配置
与 Claude Desktop 一起使用
要将此服务器与 Claude Desktop 应用程序一起使用,请将以下配置添加到claude_desktop_config.json的“mcpServers”部分:
{
"mcpServers": {
"travel-planner": {
"command": "npx",
"args": ["@gongrzhe/server-travelplanner-mcp"],
"env": {
"GOOGLE_MAPS_API_KEY": "your_google_maps_api_key"
}
}
}
}或者,如果您已经安装了该包,则可以直接使用 node 命令:
{
"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(必需):您的 Google Maps API 密钥,并启用以下 API:地点 API
路线 API
地理编码 API
时区 API
执照
此 MCP 服务器采用 MIT 许可证。更多详情,请参阅项目仓库中的 LICENSE 文件。
Available Tools
5 toolscreate_itineraryC
Creates a personalized travel itinerary based on user preferences
Inputs: destination (required), endDate (required), origin (required), startDate (required), +2 more.
get_accommodationsC
Searches for accommodation options in a specified location
Inputs: checkIn (required), checkOut (required), location (required), budget.
get_transport_optionsB
Retrieves available transportation options between two points
Inputs: date (required), destination (required), origin (required).
optimize_itineraryC
Optimizes an existing itinerary based on specified criteria
Inputs: itineraryId (required), optimizationCriteria (required).
search_attractionsC
Searches for attractions and points of interest in a specified location
Inputs: location (required), categories, radius.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: itinerary creation, accommodation search, transport options retrieval, itinerary optimization, and attraction search. There is no overlap in functionality, making it easy for an agent to select the right tool.
All tool names follow a consistent verb_noun pattern (e.g., create_itinerary, get_accommodations, optimize_itinerary). This uniformity enhances readability and predictability for agents.
With 5 tools, the server is well-scoped for travel planning, covering key aspects like itinerary management, accommodations, transport, and attractions. Each tool serves a distinct and necessary function.
The toolset covers core travel planning operations, but minor gaps exist, such as updating or deleting itineraries and booking accommodations or transport. However, agents can likely work around these with the provided tools.
Maintenance
Related MCP Connectors
Travel tools for AI agents: plan and edit real trips, search stays and tours, import travel videos.
Routing, geocoding, places, matrix and map tools for location-aware AI workflows.
Give AI assistants access to real-time data. Search the web, compare flights, find hotels, and more.
Mobility, geocoding and nearby urban services for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables location-aware AI agents to search for nearby places, get detailed place information including hours and ratings, and calculate routes with turn-by-turn directions using Google Maps APIs.22MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to access Google Maps services including places search, details, directions, geocoding, and nearby search through natural language.628 PyPI3MIT
- AlicenseAqualityDmaintenanceEnables Claude to plan trips by performing live searches against Google Flights, hotels, vacation rentals, activities, and events, plus weather and currency conversion.115MIT
- AlicenseNot gradedqualityCmaintenanceProvides geocoding, place search, directions, distance matrix, and elevation data from Google Maps. Enables natural language queries to locate places, get directions, and retrieve map-related information.98 npmMIT
Appeared in Searches
- A server for planning travel itineraries and trips
- A service or tool for viewing maps and street layouts
- A planner for grouping travel activities by location and creating daily itineraries
- A service for finding locations and navigation directions
- A server for finding travel-related information or services