Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

tripadvisor-mcp

MCP.Pizza Chef: pab1it0

The tripadvisor-mcp is a Model Context Protocol server that exposes Tripadvisor Content API data, including locations, reviews, and photos. It enables AI assistants to query travel destinations, retrieve detailed information, and find nearby attractions through standardized MCP interfaces. Features include API key authentication, Docker support, and configurable interactive tools for flexible integration.

Use This MCP server To

Search Tripadvisor for hotels, restaurants, and attractions Retrieve detailed information about specific travel locations Access user reviews and photos for travel destinations Find nearby locations based on geographic coordinates Integrate Tripadvisor data into AI travel assistant workflows Enable AI models to provide real-time travel recommendations Configure and expose selective Tripadvisor tools to MCP clients

README

Tripadvisor MCP Server

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.

Features

  • Search for locations (hotels, restaurants, attractions) on Tripadvisor

  • Get detailed information about specific locations

  • Retrieve reviews and photos for locations

  • Search for nearby locations based on coordinates

  • API Key authentication

  • Docker containerization support

  • Provide interactive tools for AI assistants

The list of tools is configurable, so you can choose which tools you want to make available to the MCP client.

Usage

  1. Get your Tripadvisor Content API key from the Tripadvisor Developer Portal.

  2. Configure the environment variables for your Tripadvisor Content API, either through a .env file or system environment variables:

# Required: Tripadvisor Content API configuration
TRIPADVISOR_API_KEY=your_api_key_here
  1. Add the server configuration to your client configuration file. For example, for Claude Desktop:
{
  "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"
      }
    }
  }
}

Note: if you see Error: spawn uv ENOENT in Claude Desktop, you may need to specify the full path to uv or set the environment variable NO_UV=1 in the configuration.

Docker Usage

This project includes Docker support for easy deployment and isolation.

Building the Docker Image

Build the Docker image using:

docker build -t tripadvisor-mcp-server .

Running with Docker

You can run the server using Docker in several ways:

Using docker run directly:

docker run -it --rm \
  -e TRIPADVISOR_API_KEY=your_api_key_here \
  tripadvisor-mcp-server

Using docker-compose:

Create a .env file with your Tripadvisor API key and then run:

docker-compose up

Running with Docker in Claude Desktop

To use the containerized server with Claude Desktop, update the configuration to use Docker with the environment variables:

{
  "mcpServers": {
    "tripadvisor": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e", "TRIPADVISOR_API_KEY",
        "tripadvisor-mcp-server"
      ],
      "env": {
        "TRIPADVISOR_API_KEY": "your_api_key_here"
      }
    }
  }
}

This configuration passes the environment variables from Claude Desktop to the Docker container by using the -e flag with just the variable name, and providing the actual values in the env object.

Development

Contributions are welcome! Please open an issue or submit a pull request if you have any suggestions or improvements.

This project uses uv to manage dependencies. Install uv following the instructions for your platform:

curl -LsSf https://astral.sh/uv/install.sh | sh

You can then create a virtual environment and install the dependencies with:

uv venv
source .venv/bin/activate  # On Unix/macOS
.venv\Scripts\activate     # On Windows
uv pip install -e .

Project Structure

The project has been organized with a src directory structure:

tripadvisor-mcp/
├── src/
│   └── tripadvisor_mcp/
│       ├── __init__.py      # Package initialization
│       ├── server.py        # MCP server implementation
│       ├── main.py          # Main application logic
├── Dockerfile               # Docker configuration
├── docker-compose.yml       # Docker Compose configuration
├── .dockerignore            # Docker ignore file
├── pyproject.toml           # Project configuration
└── README.md                # This file

Testing

The project includes a test suite that ensures functionality and helps prevent regressions.

Run the tests with pytest:

# Install development dependencies
uv pip install -e ".[dev]"

# Run the tests
pytest

# Run with coverage report
pytest --cov=src --cov-report=term-missing

Tools

Tool Category Description
search_locations Search Search for locations by query text, category, and other filters
search_nearby_locations Search Find locations near specific coordinates
get_location_details Retrieval Get detailed information about a location
get_location_reviews Retrieval Retrieve reviews for a location
get_location_photos Retrieval Get photos for a location

License

MIT


tripadvisor-mcp FAQ

How do I authenticate the tripadvisor-mcp server?
You authenticate using an API key obtained from the Tripadvisor Developer Portal, which must be configured in the server environment.
Can I customize which Tripadvisor tools are available to the MCP client?
Yes, the server supports configurable tools, allowing you to enable or disable specific functionalities as needed.
Does the tripadvisor-mcp server support containerized deployment?
Yes, it includes Docker containerization support for easy deployment and scalability.
What types of location data can I access through this MCP server?
You can access hotels, restaurants, attractions, reviews, photos, and nearby location searches.
How does the server handle location searches by coordinates?
It allows searching for nearby locations based on latitude and longitude coordinates provided by the client.
Is the tripadvisor-mcp server compatible with multiple LLM providers?
Yes, it is designed to work with various LLMs like OpenAI, Claude, and Gemini through the MCP standard.
What is required to start using the tripadvisor-mcp server?
You need a Tripadvisor Content API key and to configure environment variables as per the documentation.