Skip to main content
Glama
Travel Planner MCP Server

Travel Planner MCP Server

by GongRzhe

旅行计划器 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-mcp

Related 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"
      }
    }
  }
}

发展

从源代码构建

  1. 克隆存储库

  2. 安装依赖项:

    npm install
  3. 构建项目:

    npm run build

环境变量

  • GOOGLE_MAPS_API_KEY (必需):您的 Google Maps API 密钥,并启用以下 API:

    • 地点 API

    • 路线 API

    • 地理编码 API

    • 时区 API

执照

此 MCP 服务器采用 MIT 许可证。更多详情,请参阅项目仓库中的 LICENSE 文件。

Available Tools

5 tools
create_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

    A3.5/5.0

    Scored across 5 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    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.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers