Tripadvisor Mcp

io.github.chrischall由 GitHub 帳號 chrischall 發布v1.2.0更新於 Nov 5, 2026

TripAdvisor location search, details, photos, and reviews via the Terra API

概覽

AI 產生的概覽

為助理提供 TripAdvisor 旅遊資料:透過 Terra API 搜尋飯店、餐廳與景點,並取得詳細資料、照片和評論。

可以做什麼
  • 依名稱搜尋地點,可依類別、國家或郵遞區號限縮範圍
  • 依經緯度、參考地點或邊界框尋找附近地點
  • 取得單一地點的完整詳細資料,或一次批次查詢多個地點 ID
  • 分頁取得照片與旅客評論
  • 診斷選用的瀏覽器橋接,並在沒有 API 金鑰時讀取地點的公開頁面
適用情境
適合讓助理進行旅遊研究、比較飯店、餐廳或景點,或在規劃行程時取得評分、地址與評論。所有工具皆為唯讀,適合查詢而非訂房或修改資料。
執行需求
透過 npx 以 stdio 在本機執行(需要 Node.js)。Terra 工具需要 TripAdvisor Terra API 金鑰,放在 TRIPADVISOR_API_KEY 中,並以 X-API-Key 標頭送出;舊版 Content API 金鑰會回傳 403。ta_web_* 工具不需要金鑰,但需要在 Chrome 中安裝 ContextMint Bridge 瀏覽器擴充功能並完成一次性配對授權。另有選用的快取、逾時與除錯變數。
安裝前請注意
Terra 的 Discover 方案依用量計費並有每日呼叫配額,使用可能產生費用;預設開啟快取以節省額度。瀏覽器橋接會透過你已登入的瀏覽器分頁轉送請求,需要配對授權;README 說明本專案由 AI 開發,請自行斟酌使用。所有工具皆為唯讀。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Tripadvisor Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

tripadvisor-mcp

[npm]

MCP server for the TripAdvisor Terra API — travel data for Claude. Search hotels, restaurants, and attractions by name or coordinates, then pull full details, photos, and reviews, all over stdio. (Terra is TripAdvisor's current API; the legacy Content API is sunset on 2026-08-31.)

Developed and maintained by AI (Claude Code). Use at your own discretion.

Quick start

json
{  "mcpServers": {    "tripadvisor": {      "command": "npx",      "args": ["-y", "@chrischall/tripadvisor-mcp"],      "env": { "TRIPADVISOR_API_KEY": "your-terra-api-key-here" }    }  }}

Get a key at tripadvisor.com/developers. The free Discover tier is pay-as-you-go (10 QPS, 10,000 calls/day); responses are cached in-memory to stretch it. Make sure it's a Terra key — a legacy Content API key returns 403.

Tools

ToolWhat it does
ta_search_locationsSearch locations by name (optionally scoped by category, country/geo/postal code) — paginated; compact:true for slim summaries
ta_search_nearbyFind locations near a lat/lon+radius, a location_id+radius, or inside a sw/ne bounding box (category, min rating, sort) — compact:true supported
ta_get_location_detailsFull details: names, descriptions, address, coordinates, traveler ratings, phone, listing URLs
ta_get_locationsBatch — details for multiple location ids in one call (cheaper than N detail calls); compact:true supported
ta_get_location_photosPhotos with multi-size image URLs, source, and dimensions — paginated
ta_get_location_reviewsTraveler reviews — paginated
ta_web_healthcheckDiagnose the optional tripadvisor.com browser-bridge connection (see below)
ta_web_get_locationLocation details (rating, address, coords, phone, photo) read from the public page via the browser bridge — no API key needed

All tools are read-only — Terra has no write endpoints.

Browser bridge (optional)

ta_web_healthcheck is the first tool of an optional second tier that reaches tripadvisor.com's consumer site (bot-walled, so unreachable server-side) by routing same-origin fetches through your signed-in browser tab via the ContextMint Bridge browser extension, installed from its releases page (Chrome: download the chrome zip and load it unpacked from chrome://extensions with Developer mode on; Safari isn't available yet — it will ship inside the ContextMint app, which has no public download — so use Chrome for now). It needs the extension installed and a one-time pairing approval; the Content API tools above never touch the bridge.

ContextMint Bridge is the fetchproxy browser extension under its new name, from the same maintainer — fetchproxy's own README (https://github.com/chrischall/fetchproxy#extension) points to it. Its source is public at https://github.com/nullnet-app/contextmint-bridge: build it yourself, or check a release zip against the .sha256 file published beside it (shasum -a 256 -c contextmint-bridge-chrome-<version>.zip.sha256).

ta_web_get_location uses this bridge to read a location's details straight from its public TripAdvisor page — so it works without an API key, covering attractions, hotels, and restaurants. It returns core business data (rating, review count, address, coordinates, phone, primary photo, listing URL) but not individual review text. Request shapes are pinned in docs/TRIPADVISOR-WEB-API.md.

Environment

VarRequiredPurpose
TRIPADVISOR_API_KEYfor the Terra toolsTerra API key, sent as the X-API-Key header. The ta_web_* tools work without it.
TRIPADVISOR_CACHE_TTLnoSeconds to cache search responses (default: 300; 0 disables).
TRIPADVISOR_STATIC_CACHE_TTLnoSeconds to cache details/photos/reviews (default: 3600; 0 disables).
TRIPADVISOR_REQUEST_TIMEOUT_MSnoPer-request timeout for the optional browser bridge (default: 30000).
TRIPADVISOR_DEBUG_LOGnoSet to 1 to log browser-bridge requests to stderr.

Development

bash
npm installnpm run build   # tsc + esbuild bundlenpm test        # vitest (no real network)

Endpoint request shapes are pinned in docs/TRIPADVISOR-API.md. With a key in .env, node scripts/live-probe.mjs exercises every read path through the built client.

License

MIT

來源:README.md,提交 597b2a5

工具

8

ta_search_locations

Search TripAdvisor locations (restaurants, attractions, hotels) by name. Returns matches with a location id for the detail tools, plus pagination. Returns slim summaries by default; pass view:"full" for the whole records.

輸入參數pagesizeviewquery必填localecategorygeo_namepostal_codecountry_code

ta_search_nearby

Find TripAdvisor locations near a point within a radius, or inside a bounding box. Center by lat+lon+radius, by a reference location_id+radius, or by a sw/ne bounding box. Returns matches with distance and a location id. Returns slim summaries by default; pass view:"full" for the whole records.

輸入參數latlonpagesizesortunitviewlocalene_latne_lonradiussw_lat另有 5 個

ta_get_locations

Get details for MULTIPLE locations in one call (batch). Pass an array of location ids — cheaper than repeated ta_get_location_details. Unknown or unlicensed ids are silently omitted. Returns slim summaries by default; pass view:"full" for the whole records.

輸入參數ids必填viewlocale

ta_get_location_details

Get full details for a TripAdvisor location: names, descriptions, address, coordinates, traveler ratings, phone, category, and listing URLs. Rating-icon and other incidental image URLs are dropped by default; pass view:"full" for TripAdvisor's whole record.

輸入參數viewlocalelocationId必填

ta_get_location_photos

Get photos for a TripAdvisor location (multi-size image URLs, source, dimensions), with pagination.

輸入參數pagesizelocalelocationId必填

ta_get_location_reviews

Get traveler reviews for a TripAdvisor location, with pagination. Reviewer avatars and other image URLs are dropped by default; pass view:"full" for TripAdvisor's whole records.

輸入參數pagesizeviewlocalelocationId必填

ta_web_healthcheck

Verify the ContextMint Bridge connection end-to-end

Round-trips a small public www.tripadvisor.com URL (/) through ContextMint Bridge (your signed-in browser tab) and returns diagnostics: the bridge's role (host/peer/null), port, version, the extension link (linked / pair pending / not attached / never answered), the elapsed round-trip time, and a plain-English hint distinguishing 'bridge never came up' from 'extension not connected' from 'this browser can't serve a capability' from 'real www.tripadvisor.com-side problem'. Read-only, no auth required. Call this when a real tool fails and you want to know which hop broke.

無需輸入參數。

ta_web_get_location

Get a TripAdvisor location's core details (name, rating, review count, address, coordinates, phone, photo, listing URL) by location ID, read from the public page via the browser bridge. Works without an API key — use this when ta_get_location_details is unavailable or its key is blocked. Covers attractions, hotels, and restaurants. Does not return individual review text.

輸入參數locationId必填

版本歷史

16
  1. v1.2.0最新Nov 4, 2026
  2. v1.1.13Oct 29, 2026
  3. v1.1.12Oct 17, 2026
  4. v1.1.11Oct 17, 2026
  5. v1.1.10Oct 16, 2026
  6. v1.1.9Oct 10, 2026
  7. v1.1.8Oct 10, 2026
  8. v1.1.7Oct 7, 2026
  9. v1.1.6Oct 5, 2026
  10. v1.1.5Oct 3, 2026
  11. v1.1.4Sep 28, 2026
  12. v1.1.3Sep 25, 2026
  13. v1.1.2Sep 23, 2026
  14. v1.1.0Sep 20, 2026
  15. v1.0.0Sep 19, 2026
  16. v0.6.4Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分