Tripadvisor MCP

by pab1it0
Verified
MIT License
  • Linux
  • Apple

Integrations

  • 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.

Tripadvisor MCP 서버

Tripadvisor 콘텐츠 API를 위한 MCP( 모델 컨텍스트 프로토콜 ) 서버입니다.

이를 통해 표준화된 MCP 인터페이스를 통해 Tripadvisor 위치 데이터, 리뷰, 사진에 액세스할 수 있어 AI 도우미가 여행 목적지와 경험을 검색할 수 있습니다.

특징

  • [x] Tripadvisor에서 위치(호텔, 레스토랑, 명소) 검색
  • [x] 특정 위치에 대한 자세한 정보를 얻으세요
  • [x] 위치에 대한 리뷰 및 사진 검색
  • [x] 좌표를 기준으로 근처 위치 검색
  • [x] API 키 인증
  • [x] Docker 컨테이너화 지원
  • [x] AI 어시스턴트를 위한 대화형 도구 제공

도구 목록은 구성 가능하므로 MCP 클라이언트에서 사용할 도구를 선택할 수 있습니다.

용법

  1. Tripadvisor 개발자 포털 에서 Tripadvisor 콘텐츠 API 키를 받으세요.
  2. .env 파일이나 시스템 환경 변수를 통해 Tripadvisor 콘텐츠 API에 대한 환경 변수를 구성하세요.

지엑스피1

  1. 클라이언트 설정 파일에 서버 설정을 추가하세요. 예를 들어, 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" } } } }

참고: Claude Desktop에서 Error: spawn uv ENOENT 표시되면 uv 에 대한 전체 경로를 지정하거나 구성에서 환경 변수 NO_UV=1 설정해야 할 수 있습니다.

Docker 사용법

이 프로젝트에는 쉬운 배포와 격리를 위한 Docker 지원이 포함되어 있습니다.

Docker 이미지 빌드

다음을 사용하여 Docker 이미지를 빌드합니다.

docker build -t tripadvisor-mcp-server .

Docker로 실행

Docker를 사용하여 여러 가지 방법으로 서버를 실행할 수 있습니다.

docker run을 직접 사용:

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

docker-compose 사용:

Tripadvisor API 키로 .env 파일을 만든 다음 다음을 실행합니다.

docker-compose up

Claude Desktop에서 Docker로 실행

Claude Desktop과 함께 컨테이너화된 서버를 사용하려면 환경 변수와 함께 Docker를 사용하도록 구성을 업데이트하세요.

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

이 구성은 -e 플래그와 변수 이름만 사용하여 Claude Desktop에서 Docker 컨테이너로 환경 변수를 전달하고, env 객체에 실제 값을 제공합니다.

개발

기여를 환영합니다! 제안이나 개선 사항이 있으시면 이슈를 개설하거나 풀 리퀘스트를 제출해 주세요.

이 프로젝트는 uv 사용하여 종속성을 관리합니다. 플랫폼에 맞는 지침에 따라 uv 설치하세요.

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

그런 다음 가상 환경을 만들고 다음을 사용하여 종속성을 설치할 수 있습니다.

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

프로젝트 구조

이 프로젝트는 src 디렉토리 구조로 구성되었습니다.

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

테스트

이 프로젝트에는 기능성을 보장하고 회귀를 방지하는 데 도움이 되는 테스트 모음이 포함되어 있습니다.

pytest로 테스트를 실행합니다.

# Install development dependencies uv pip install -e ".[dev]" # Run the tests pytest # Run with coverage report pytest --cov=src --cov-report=term-missing

도구

도구범주설명
search_locations찾다쿼리 텍스트, 카테고리 및 기타 필터를 사용하여 위치를 검색합니다.
search_nearby_locations찾다특정 좌표 근처의 위치 찾기
get_location_details검색위치에 대한 자세한 정보를 얻으세요
get_location_reviews검색위치에 대한 리뷰 검색
get_location_photos검색특정 위치의 사진을 받으세요

특허

MIT


-
security - not tested
A
license - permissive license
-
quality - not tested

LLM이 Tripadvisor API와 상호 작용할 수 있도록 하는 MCP 서버로, 표준화된 MCP 인터페이스를 통해 위치 데이터, 리뷰 및 사진을 지원합니다.

  1. Features
    1. Usage
      1. Docker Usage
        1. Building the Docker Image
        2. Running with Docker
        3. Running with Docker in Claude Desktop
      2. Development
        1. Project Structure
          1. Testing
          2. Tools
        2. License
          ID: 9p0vzeo2lj