Tripadvisor MCP
Supports containerized deployment with Docker for isolation and easy setup, including configuration options for running the MCP server within Docker containers.
Provides access to Tripadvisor's Content API, enabling search for travel destinations, hotels, restaurants, and attractions, as well as retrieving detailed location information, reviews, photos, and nearby points of interest.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Tripadvisor MCP find top-rated Italian restaurants in Rome with photos"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.
Related MCP server: expedia-travel-recommendations-mcp
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_hereAdd 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-serverUsing docker-compose:
Create a .env file with your Tripadvisor API key and then run:
docker-compose upRunning 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 | shYou 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 fileTesting
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-missingTools
Tool | Category | Description |
| Search | Search for locations by query text, category, and other filters |
| Search | Find locations near specific coordinates |
| Retrieval | Get detailed information about a location |
| Retrieval | Retrieve reviews for a location |
| Retrieval | Get photos for a location |
License
MIT
Available Tools
5 toolsget_location_detailsC
Get detailed information about a specific location
Inputs: locationId (required), language.
get_location_photosC
Get photos for a specific location
Inputs: locationId (required), language.
get_location_reviewsC
Get reviews for a specific location
Inputs: locationId (required), language.
search_locationsC
Search for locations (hotels, restaurants, attractions) on Tripadvisor
Inputs: searchQuery (required), language, category, phone, +2 more.
search_nearby_locationsC
Search for locations near a specific latitude/longitude
Inputs: latitude (required), longitude (required), language, category.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool has a clearly distinct purpose: get_location_details retrieves general information, get_location_photos handles photos, get_location_reviews focuses on reviews, search_locations performs general searches, and search_nearby_locations finds locations based on proximity. There is no overlap or ambiguity between these functions.
All tool names follow a consistent verb_noun pattern with 'get_' or 'search_' prefixes and descriptive suffixes like 'details', 'photos', 'reviews', 'locations', and 'nearby_locations'. The naming is uniform and predictable throughout the set.
With 5 tools, this server is well-scoped for its Tripadvisor domain, covering key operations like retrieving details, photos, reviews, and performing searches. Each tool serves a unique and necessary function without being excessive or insufficient.
The tool set provides strong coverage for core Tripadvisor functionalities, including search and retrieval of location details, photos, and reviews. A minor gap exists in lacking CRUD operations (e.g., creating or updating reviews), but this is reasonable for a read-focused API, and agents can work effectively with the provided tools.
Maintenance
Related MCP Connectors
Live Google Maps business search, review, and photo data for AI agents over MCP.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
The Ferryhopper MCP server is a connector for LLMs and AI Agents in maritime travel that exposes ferry routes, schedules, and booking options. It enables AI assistants to search ports and connections across 33 countries and 190+ ferry operators, provide real-time ferry itineraries with indicative prices, and assist users with planning island-hopping or multi-leg journeys by processing natural language queries about ferry times, passenger counts, and travel durations.
Related MCP Servers
- AlicenseBqualityDmaintenanceThis MCP server provides access to TripAdvisor data for planning vacations, enabling users to search for and get details about locations, attractions, restaurants, and hotels through an interactive planning experience.42Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server for Expedia travel recommendations. Enables LLMs to search hotels, flights, activities, and car rentals using natural language.24Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server for travel program search, comparison, and booking via Yourttoo API, optimized for LLMs with token-saving responses.ISC
- AlicenseAqualityDmaintenanceMCP server for Yelp integration, enabling AI agents to search for local businesses, read reviews, view photos, check hours, find deals, and discover trending spots.1254 npmMIT