PT

pab1it0/tripadvisor-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

64 stars 13 forks Качество 66 Тренд 0MIT

pab1it0/tripadvisor-mcp - кандидат на сервер MCP, импортированный из https://github.com/pab1it0/tripadvisor-mcp.

Обзор

pab1it0/tripadvisor-mcp - кандидат на сервер MCP, импортированный из https://github.com/pab1it0/tripadvisor-mcp.

Обзор (машинный перевод)

[Model Context Protocol] mcp (MCP) сервер для Tripadvisor Content API.

Это обеспечивает доступ к данным о местоположении Tripadvisor, обзорам и фотографиям через стандартизированные интерфейсы MCP, позволяя помощникам ИИ искать места назначения и впечатления.

Особенности

  • [x] Поиск мест (отелей, ресторанов, достопримечательностей) на Tripadvisor

  • [x] Получите подробную информацию о конкретных местах [x] Получить отзывы и фотографии для мест

  • [x] Поиск близлежащих мест по координатам

  • [x] Аутентификация ключей API

  • [x] Поддержка контейнеров Docker

  • [x] Предоставить интерактивные инструменты для помощников ИИ

Список инструментов настраивается, поэтому вы можете выбрать, какие инструменты вы хотите сделать доступными для клиента MCP.

Использование

  1. Получите ключ API контента Tripadvisor с портала разработчиков Tripadvisor.

  2. Настройте переменные среды для вашего API контента Tripadvisor либо через переменные файловой или системной среды .env:

  3. Добавить конфигурацию сервера в файл конфигурации клиента. Например, для Claude Desktop:

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального 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

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

  • [x] Get detailed information about specific locations

  • [x] Retrieve reviews and photos for locations

  • [x] Search for nearby locations based on coordinates

  • [x] API Key authentication

  • [x] Docker containerization support

  • [x] 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",
        "",
        "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

Открыть полный README на GitHub

Установка

docker run --rm -i -e TRIPADVISOR_API_KEY tripadvisor-mcp-server
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "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" } } } }