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
| Name | Required | Description | Default |
|---|---|---|---|
| budget | No | Budget in USD | |
| destination | Yes | Destination location | |
| endDate | Yes | End date (YYYY-MM-DD) | |
| origin | Yes | Starting location | |
| preferences | No | Travel preferences | |
| startDate | Yes | Start date (YYYY-MM-DD) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states 'creates' implying a write operation, but doesn't mention permissions, side effects, rate limits, or what the output looks like (e.g., format, success indicators). This is inadequate for a mutation tool with zero annotation coverage.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's front-loaded and appropriately sized, making it easy for an agent to parse quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a mutation tool with no annotations and no output schema, the description is insufficient. It doesn't explain the return values, error conditions, or behavioral traits like idempotency or data persistence. Given the complexity of creating a personalized itinerary, more context is needed to guide the agent effectively.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description adds no parameter-specific information beyond what's in the schema, which has 100% coverage with clear descriptions for all 6 parameters. The baseline score of 3 is appropriate as the schema does the heavy lifting, but the description doesn't enhance understanding of how parameters interact or affect the itinerary creation.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('creates') and resource ('personalized travel itinerary'), specifying it's based on user preferences. However, it doesn't differentiate from sibling tools like 'optimize_itinerary' which might also create or modify itineraries, so it's not fully distinctive.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives such as 'optimize_itinerary' or other siblings. It mentions 'based on user preferences' but doesn't specify prerequisites, exclusions, or comparative contexts, leaving the agent with minimal usage direction.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_accommodationsC
Searches for accommodation options in a specified location
| Name | Required | Description | Default |
|---|---|---|---|
| budget | No | Maximum price per night | |
| checkIn | Yes | Check-in date (YYYY-MM-DD) | |
| checkOut | Yes | Check-out date (YYYY-MM-DD) | |
| location | Yes | Location to search |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries full burden. It mentions searching but doesn't disclose behavioral traits such as whether results are paginated, if authentication is required, rate limits, or what the output format looks like. For a search tool with zero annotation coverage, this leaves significant gaps in understanding how it behaves.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, making it easy to understand at a glance.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (a search operation with 4 parameters), lack of annotations, and no output schema, the description is incomplete. It doesn't explain what the tool returns, how results are structured, or any behavioral constraints, leaving the agent with insufficient information for effective use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description adds minimal meaning beyond the input schema, which has 100% coverage with clear descriptions for all parameters. It implies location-based searching but doesn't provide additional context like search radius or result limits. With high schema coverage, the baseline score of 3 is appropriate as the schema does most of the work.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('searches') and resource ('accommodation options'), and specifies the scope ('in a specified location'). It doesn't explicitly distinguish from sibling tools like 'create_itinerary' or 'search_attractions', but the focus on accommodations is clear enough for basic differentiation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'create_itinerary' or 'search_attractions', nor does it mention prerequisites or exclusions. It merely states what the tool does without context for selection among available options.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_transport_optionsB
Retrieves available transportation options between two points
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Travel date (YYYY-MM-DD) | |
| destination | Yes | Destination point | |
| origin | Yes | Starting point |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. While 'retrieves' implies a read-only operation, the description doesn't mention important behavioral aspects like rate limits, authentication requirements, response format, whether results are cached, or what happens with invalid inputs. For a tool with zero annotation coverage, this is insufficient.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that states the core purpose without any wasted words. It's appropriately sized for a straightforward retrieval tool and front-loads the essential information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple retrieval tool with 100% schema coverage but no annotations and no output schema, the description is minimally adequate. It states what the tool does but lacks important context about behavioral characteristics, usage guidelines relative to siblings, and what the return value contains. The absence of output schema means the description should ideally hint at what's returned.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents all three parameters with clear descriptions. The description adds no additional parameter semantics beyond what's in the schema - it mentions 'between two points' which corresponds to origin/destination parameters, but provides no extra context about format, constraints, or usage beyond the schema's descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('retrieves') and resource ('available transportation options'), and specifies the scope ('between two points'). However, it doesn't differentiate this tool from potential sibling tools like 'optimize_itinerary' that might also involve transportation options.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. With sibling tools like 'create_itinerary' and 'optimize_itinerary' that might involve transportation planning, there's no indication of when this specific retrieval tool is appropriate versus those more comprehensive tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
optimize_itineraryC
Optimizes an existing itinerary based on specified criteria
| Name | Required | Description | Default |
|---|---|---|---|
| itineraryId | Yes | ID of the itinerary to optimize | |
| optimizationCriteria | Yes | Criteria for optimization (time, cost, etc.) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries full burden but only states it 'optimizes based on specified criteria' without disclosing behavioral traits like whether it modifies the original itinerary, requires specific permissions, has rate limits, or what the optimization entails (e.g., reordering, time adjustments). This leaves significant gaps for a mutation tool.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence with zero waste, front-loaded with the core action. Every word earns its place, making it appropriately sized and structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity as a mutation operation with no annotations and no output schema, the description is incomplete. It fails to explain what optimization does, what the return values are, or behavioral risks, leaving the agent with insufficient context for safe and effective use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters ('itineraryId' and 'optimizationCriteria'). The description adds no additional meaning beyond what the schema provides, such as examples of criteria or format details, meeting the baseline for high schema coverage.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action ('optimizes') and resource ('an existing itinerary'), specifying it works on existing itineraries rather than creating new ones. However, it doesn't differentiate from sibling tools like 'create_itinerary' or 'search_attractions' beyond the core function.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives like 'create_itinerary' or 'search_attractions', nor does it mention prerequisites such as needing an existing itinerary ID. It lacks explicit when/when-not instructions or named alternatives.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_attractionsC
Searches for attractions and points of interest in a specified location
| Name | Required | Description | Default |
|---|---|---|---|
| categories | No | Categories of attractions | |
| location | Yes | Location to search attractions | |
| radius | No | Search radius in meters |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the action ('Searches for') but doesn't describe what the search returns (e.g., list format, pagination), potential limitations (e.g., rate limits, data sources), or error conditions. For a search tool with zero annotation coverage, this lack of behavioral details is inadequate.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that directly states the tool's purpose without any fluff. It is front-loaded with the core action and resource, making it easy to parse. Every word earns its place, achieving optimal conciseness for this level of detail.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (search function with 3 parameters) and lack of annotations and output schema, the description is incomplete. It doesn't explain what the output looks like (e.g., list of attractions with details), behavioral aspects, or integration with sibling tools. This leaves significant gaps for an agent to understand how to use the tool effectively.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, with clear parameter descriptions (e.g., 'Location to search attractions', 'Search radius in meters'). The description adds no additional parameter semantics beyond what the schema provides, such as examples or constraints. With high schema coverage, the baseline score of 3 is appropriate, as the description doesn't compensate but also doesn't detract.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('Searches for') and resource ('attractions and points of interest'), and specifies the scope ('in a specified location'). It distinguishes itself from siblings like 'get_accommodations' or 'get_transport_options' by focusing on attractions. However, it doesn't explicitly differentiate from potential overlapping tools (none present), keeping it at 4 rather than 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, exclusions, or how it relates to sibling tools like 'create_itinerary' or 'optimize_itinerary', which might be used in conjunction. Without any usage context, this is a significant gap in helping the agent select the right tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
5 tool updates
v1.0.0- First observed
create_itinerary - First observed
get_accommodations - First observed
get_transport_options - First observed
optimize_itinerary - First observed
search_attractions
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.
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.
- geoOAuthco.thinair
Geocoding, routing, isochrones, traffic, weather, and place search for AI agents. 19 MCP tools.
Related MCP Servers
- FlicenseNot 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.22-
- AlicenseAqualityBmaintenanceEnables AI assistants to access Google Maps services including places search, details, directions, geocoding, and nearby search through natural language.62MIT
- AlicenseAqualityDmaintenanceEnables Claude to plan trips by performing live searches against Google Flights, hotels, vacation rentals, activities, and events, plus weather and currency conversion.115MIT
- FlicenseNot gradedqualityDmaintenanceEnables travel planning through natural language, providing weather forecasts, attraction search, itinerary generation, and distance calculations using free APIs.-
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