Access Tripadvisor Data for AI Assistants
An MCP server that exposes Tripadvisor location search, reviews, and photos to AI assistants.
Why it matters
Integrate Tripadvisor's vast repository of location, review, and photo data into your AI assistant's capabilities. Enable sophisticated travel planning and information retrieval through standardized MCP interfaces.
Outcomes
What it gets done
Search for travel destinations, restaurants, and attractions.
Retrieve detailed location information, including reviews and photos.
Find locations near specific geographic coordinates.
Provide structured data access for AI-driven travel research.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/vb-tripadvisor | bash Capabilities
Tools your agent gets
Search locations by text query, category, and other filters
Search locations near specific coordinates
Get detailed information about a location
Get reviews for a location
Get photos of a location
Overview
Tripadvisor MCP Server
An MCP server that gives an AI assistant standardized access to Tripadvisor location search, details, reviews, and photos. Use when an AI assistant needs to search hotels, restaurants, or attractions and pull real Tripadvisor location, review, or photo data.
What it does
An MCP server for the Tripadvisor Content API that gives an AI assistant standardized access to Tripadvisor location data, reviews, and photos so it can search travel destinations and experiences. It exposes five tools: search_locations (query text, category, and other filters), search_nearby_locations (coordinate-based proximity search), get_location_details, get_location_reviews, and get_location_photos. The tool list is configurable, so you can expose only the subset relevant to a given MCP client. It's MIT-licensed and ships with Docker support for containerized deployment.
When to use - and when NOT to
Use it when an AI assistant needs to search hotels, restaurants, or attractions, pull detailed location information, reviews, or photos, or find nearby locations by coordinates - grounded in real Tripadvisor data rather than the model's own travel knowledge. It requires a Tripadvisor Content API key from the Tripadvisor Developer Portal, set as TRIPADVISOR_API_KEY; on Claude Desktop, a spawn uv ENOENT error typically means uv's full path needs to be specified, or NO_UV=1 needs to be set in the configuration.
Inputs and outputs
{
"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"
}
}
}
}
Input is a search query, coordinates, or a location identifier; output is structured Tripadvisor data - location matches, details, reviews, or photos - returned to the calling MCP client. The project ships a pytest test suite (uv pip install -e ".[dev]" then pytest, or pytest --cov=src --cov-report=term-missing for coverage) covering the src/tripadvisor_mcp/ package (server.py for the MCP server implementation, main.py for the application entry point).
How to install
Install dependencies with uv (uv venv, activate the environment, uv pip install -e .) and configure TRIPADVISOR_API_KEY via .env or system environment variables, then add the mcpServers entry above to your client config. Alternatively, build and run it in Docker: docker build -t tripadvisor-mcp-server ., then docker run -it --rm -e TRIPADVISOR_API_KEY=your_api_key_here tripadvisor-mcp-server or docker-compose up with a .env file; for Claude Desktop with Docker, point command at docker with args run --rm -i -e TRIPADVISOR_API_KEY tripadvisor-mcp-server, passing the actual key through the config's env object.
Who it's for
Developers building a travel-assistant AI that needs real Tripadvisor location, review, and photo data - search, nearby lookup, and detail retrieval - through a standard MCP interface, with a configurable tool set, an MIT license, and Docker-friendly deployment for either local or containerized use. Contributions are welcome via issues or pull requests for anyone extending the project's tool set or fixing bugs.
Source 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
Get your Tripadvisor Content API key from the Tripadvisor Developer Portal.
Configure the environment variables for your Tripadvisor Content API, either through a
.envfile or system environment variables:
# Required: Tripadvisor Content API configuration
TRIPADVISOR_API_KEY=your_api_key_here
- 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 ENOENTin Claude Desktop, you may need to specify the full path touvor set the environment variableNO_UV=1in 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 |
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.