Skip to main content
Glama
TripAdvisor Vacation Planner MCP Server

TripAdvisor Vacation Planner MCP Server

by hhw67865

TripAdvisor 度假计划器 MCP 服务器

该 MCP 服务器提供对 TripAdvisor 数据的访问,用于规划假期、查找景点、餐厅和酒店。

特征

  • 按名称和类别搜索地点

  • 获取有关特定位置的详细信息

  • 查找附近的景点、餐厅和酒店

  • 查看照片和评论

  • 交互式假期计划提示

Related MCP server: travel-mcp-server

设置说明

先决条件

紫外线安装

  1. 克隆此存储库

  2. 创建并激活虚拟环境:

    uv venv
    # On Windows
    .venv\Scripts\activate
    # On macOS/Linux
    source .venv/bin/activate
  3. 安装所需的依赖项:

    uv add "mcp[cli]"

运行服务器

您可以使用以下方式直接运行服务器:

# Set your API key as an environment variable
export TRIPADVISOR_API_KEY=your_api_key_here  # Linux/macOS
set TRIPADVISOR_API_KEY=your_api_key_here     # Windows Command Prompt
$env:TRIPADVISOR_API_KEY="your_api_key_here"  # Windows PowerShell

# Run the server
mcp run server.py

设置 Claude Desktop

使用以下命令设置 MCP 服务器:

mcp install server.py

配置 Claude 桌面

  1. 打开 Claude 桌面

  2. 前往“设置”>“MCP 服务器”

  3. 添加具有以下配置的新服务器:

    {
      "tripadvisor": {
        "command": "uv",
        "args": [
          "run",
          "--with",
          "mcp[cli]",
          "mcp",
          "run",
          "PATH_TO_YOUR_PROJECT\\server.py"
        ],
        "env": {
          "TRIPADVISOR_API_KEY": "YOUR_API_KEY_HERE"
        }
      }
    }
  4. 将PATH_TO_YOUR_PROJECT替换为项目目录的绝对路径

  5. 将YOUR_API_KEY_HERE替换为您实际的 TripAdvisor API 密钥

使用假期计划器

  1. 在 Claude 中开始新对话

  2. 只需使用“假期计划”提示即可

  3. 按照交互式提示来计划您的完美假期!

使用的 API 端点

  • 位置搜索:按名称和类别查找位置

  • 位置详情:获取有关位置的全面信息

  • 地点照片:查看某个地点的照片

  • 地点评论:阅读某个地点的评论

  • 附近搜索:查找特定点附近的位置

故障排除

  • 如果您看到 401 未授权错误,请检查您的 API 密钥是否正确,以及您的 IP 是否在 TripAdvisor 开发者门户中列入白名单

  • 对于 Claude Desktop 集成的问题,请验证您的配置设置并确保 server.py 的路径正确

  • 如果 Claude 无法完成,那么很有可能是您使用了太多的输入令牌。get_location_details_tool 通常是罪魁祸首。

Available Tools

4 tools
get_location_details_toolB
Get essential details about a location by ID for trip planning

Args:
    location_id: TripAdvisor location ID

Inputs: location_id (required).

get_nearby_locationsB
Find locations near a specific latitude and longitude

Args:
    latitude: Latitude coordinate
    longitude: Longitude coordinate
    category: Optional category filter (e.g., "hotels", "restaurants", "attractions")

Inputs: latitude (required), longitude (required), category.

plan_vacationB
Initiates the vacation planning process using the structured prompt.
This should be used whenever a user wants to plan a trip or vacation.

Returns:
    A message confirming the vacation planning process has started

Inputs: no named parameters.

search_locationsB
Search for locations on TripAdvisor

Args:
    query: Search term (e.g., "hotels in Paris")
    category: Optional category filter (e.g., "hotels", "restaurants", "attractions")

Inputs: query (required), category.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 4 tools

    Disambiguation4/5

    The tools have mostly distinct purposes: get_location_details_tool retrieves specific location info, get_nearby_locations finds nearby places, search_locations searches by query, and plan_vacation initiates trip planning. However, get_nearby_locations and search_locations could potentially overlap if a user searches for 'hotels near me' versus using coordinates, but their descriptions clarify the distinction.

    Naming Consistency3/5

    The naming is mixed: get_location_details_tool, get_nearby_locations, and search_locations follow a verb_noun pattern, but plan_vacation uses a verb_noun without 'get' or 'search', and get_location_details_tool includes '_tool' suffix inconsistently. This creates a readable but not fully consistent convention across all tools.

    Tool Count3/5

    With 4 tools, the count is borderline for a vacation planner server. It covers basic functions like searching and planning, but feels thin for a comprehensive trip planning domain, potentially lacking tools for booking, reviews, or itinerary management, which might limit agent effectiveness.

    Completeness2/5

    The tool surface has significant gaps for a vacation planner. It includes search and planning initiation but lacks CRUD operations for itineraries, booking tools, review access, or update/delete functions for planned trips. This incompleteness will likely cause agent failures in handling full vacation planning workflows.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      MCP server that enables LLMs to interact with Tripadvisor API, supporting location data, reviews, and photos through standardized MCP interfaces
      5
      64
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Coordinates flights, hotels, events, weather, currency, and traffic data through a single MCP server, enabling comprehensive trip planning via natural language prompts.
      MIT