by pab1it0
A Model Context Protocol (MCP) server for Tripadvisor Content API, enabling AI assistants to access Tripadvisor location data, reviews, and photos.
tripadvisor-mcp is a Model Context Protocol (MCP) server designed to integrate with the Tripadvisor Content API. It allows AI assistants to interact with Tripadvisor data, including location information, user reviews, and photos, through standardized MCP interfaces. This essentially bridges the gap between AI models and Tripadvisor's vast travel-related data.
To use tripadvisor-mcp, you first need to obtain a Tripadvisor Content API key from the Tripadvisor Developer Portal. This key is then configured as an environment variable (TRIPADVISOR_API_KEY
). The server can be run directly, or more commonly, integrated into an MCP client like Claude Desktop by adding a server configuration that specifies the command to run the tripadvisor-mcp
server. Docker support is also provided for easy deployment, allowing users to build and run the server within a container using docker build
and docker run
commands, or via docker-compose
.
Q: What is the Model Context Protocol (MCP)? A: The Model Context Protocol (MCP) is a standardized interface that allows AI models to interact with external services and data sources, providing them with context and capabilities beyond their core training.
Q: How do I get a Tripadvisor Content API key? A: You can obtain a Tripadvisor Content API key from the Tripadvisor Developer Portal.
Q: Can I run tripadvisor-mcp with Docker? A: Yes, tripadvisor-mcp includes full Docker support, allowing you to build and run the server in a Docker container for easy deployment and management.
Q: What tools does tripadvisor-mcp provide?
A: tripadvisor-mcp provides tools for searching locations (search_locations
, search_nearby_locations
), retrieving details (get_location_details
), and accessing reviews and photos (get_location_reviews
, get_location_photos
). These tools are configurable.
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.
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.
Get your Tripadvisor Content API key from the Tripadvisor Developer Portal.
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
{
"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 touv
or set the environment variableNO_UV=1
in the configuration.
This project includes Docker support for easy deployment and isolation.
Build the Docker image using:
docker build -t tripadvisor-mcp-server .
You can run the server using Docker in several ways:
docker run -it --rm \
-e TRIPADVISOR_API_KEY=your_api_key_here \
tripadvisor-mcp-server
Create a .env
file with your Tripadvisor API key and then run:
docker-compose up
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.
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 .
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
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
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 |
MIT
Please log in to share your review and rating for this MCP.
Discover more MCP servers with similar functionality and use cases
by danny-avila
Provides a customizable ChatGPT‑like web UI that integrates dozens of AI models, agents, code execution, image generation, web search, speech capabilities, and secure multi‑user authentication, all open‑source and ready for self‑hosting.
by ahujasid
BlenderMCP integrates Blender with Claude AI via the Model Context Protocol (MCP), enabling AI-driven 3D scene creation, modeling, and manipulation. This project allows users to control Blender directly through natural language prompts, streamlining the 3D design workflow.
by pydantic
Enables building production‑grade generative AI applications using Pydantic validation, offering a FastAPI‑like developer experience.
by GLips
Figma-Context-MCP is a Model Context Protocol (MCP) server that provides Figma layout information to AI coding agents. It bridges design and development by enabling AI tools to directly access and interpret Figma design data for more accurate and efficient code generation.
by mcp-use
Easily create and interact with MCP servers using custom agents, supporting any LLM with tool calling and offering multi‑server, sandboxed, and streaming capabilities.
by sonnylazuardi
This project implements a Model Context Protocol (MCP) integration between Cursor AI and Figma, allowing Cursor to communicate with Figma for reading designs and modifying them programmatically.
by lharries
WhatsApp MCP Server is a Model Context Protocol (MCP) server for WhatsApp that allows users to search, read, and send WhatsApp messages (including media) through AI models like Claude. It connects directly to your personal WhatsApp account via the WhatsApp web multi-device API and stores messages locally in a SQLite database.
by idosal
GitMCP is a free, open-source remote Model Context Protocol (MCP) server that transforms any GitHub project into a documentation hub, enabling AI tools to access up-to-date documentation and code directly from the source to eliminate "code hallucinations."
by Klavis-AI
Klavis AI provides open-source Multi-platform Control Protocol (MCP) integrations and a hosted API for AI applications. It simplifies connecting AI to various third-party services by managing secure MCP servers and authentication.