Travel Planner MCP Server

by GongRzhe
Verified

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Provides integration with Google Maps APIs including Places API, Directions API, Geocoding API, and Time Zone API for location search, route calculation, and travel planning

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

成分

工具

  • 搜索地点
    • 使用 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 文件。

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

通过与 Google 地图和旅行规划服务(包括位置搜索、地点详情和旅行时间计算)交互,使 LLM 能够执行与旅行相关的任务。

  1. Installation & Usage
    1. Installing via Smithery
    2. Installing Manually
  2. Components
    1. Tools
  3. Configuration
    1. Usage with Claude Desktop
  4. Development
    1. Building from Source
    2. Environment Variables
  5. License
    ID: y3u6yjiiq1