Tripadvisor

A Model Context Protocol (MCP) server for Tripadvisor Content API. This provides access to Tripadvisor location data, reviews, and photos through standardized MCP interfaces, allowing AI assistants to search for travel destinations and experiences.
  • python

51

GitHub Stars

python

Language

6 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs

Tripadvisor MCP Server gives AI assistants fast, standardized access to Tripadvisor location data, reviews, and photos through MCP interfaces. It enables searching destinations, retrieving detailed location info, and obtaining related media and reviews within a consistent, scalable protocol.

How to use

Use this server to query Tripadvisor data through an MCP client. You can search for locations like hotels, restaurants, and attractions, fetch detailed location information, pull reviews and photos, and find nearby places based on coordinates. Ensure you provide your API key to authorize requests, and configure your MCP client to connect via the local stdio server defined here.

How to install

Prerequisites you need before starting:

  • Python and the uv tool as the MCP runtime
  • A valid Tripadvisor Content API key

Install the MCP runtime and dependencies, then run the server using the standard stdio configuration.

# Install the MCP runtime (uv) following the installer script
curl -LsSf https://astral.sh/uv/install.sh | sh

# Create and activate a virtual environment
uv venv
source .venv/bin/activate  # Unix/macOS
.venv\Scripts\activate     # Windows

# Install the package in editable mode (adjust to your setup as needed)
uv pip install -e .

# Run the MCP server from the project directory
uv --directory <full path to tripadvisor-mcp directory> run src/tripadvisor_mcp/main.py

Configuration and initial setup

Obtain your API key from the Tripadvisor Developer Portal and set it in the environment so the MCP server can authenticate requests.

# Set the API key for the server runtime
export TRIPADVISOR_API_KEY=your_api_key_here  # Unix/macOS
set TRIPADVISOR_API_KEY=your_api_key_here     # Windows
{
  "mcpServers": {
    "tripadvisor": {
      "command": "uv",
      "args": [
        "--directory",
        "<full path to tripadvisor-mcp directory>",
        "run",
        "src/tripadvisor_mcp/main.py"
      ],
      "env": {
        "TRIPADVISOR_API_KEY": "your_api_key_here"
      }
    }
  }
}

Docker usage and environment management

You can containerize and run the MCP server with Docker for isolation and easy deployment.

# Build the Docker image
docker build -t tripadvisor-mcp-server .

# Run the container with your API key
docker run -it --rm -e TRIPADVISOR_API_KEY=your_api_key_here tripadvisor-mcp-server
{
  "mcpServers": {
    "tripadvisor": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e", "TRIPADVISOR_API_KEY",
        "tripadvisor-mcp-server"
      ],
      "env": {
        "TRIPADVISOR_API_KEY": "your_api_key_here"
      }
    }
  }
}

Notes on troubleshooting and security

If you encounter issues starting the server, ensure the API key is correctly set in your environment and that the path to the MCP directory is accurate. Review any error messages from the MCP runtime for clues about missing dependencies or misconfigurations.

About this server

This MCP server provides access to Tripadvisor location data, reviews, and photos through standardized interfaces that enable AI assistants to search for travel destinations and experiences more efficiently.

Available tools

search_locations

Search for locations by query text, category, and other filters

search_nearby_locations

Find locations near specific coordinates

get_location_details

Get detailed information about a location

get_location_reviews

Retrieve reviews for a location

get_location_photos

Get photos for a location

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational