Getyourguide Mcp

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

GetYourGuide tours & activities for Claude — search, details, options, and reviews

概覽

AI 產生的概覽

GetYourGuide 唯讀 MCP 伺服器:讓助理透過合作夥伴 API 搜尋旅遊與活動,查看選項、可預訂日期與評價。

可以做什麼
  • 依自由文字、地點、類別或日期範圍搜尋旅遊與活動,可排序並選擇精簡或完整檢視
  • 讀取單一旅遊的完整紀錄、可預訂選項與可預訂日期
  • 讀取某個旅遊的顧客評價
  • 列出活動類別以及某類別下的旅遊
  • 查詢地點(城市、景點、地區)詳情及該地點可用的旅遊
  • 用健康檢查工具驗證憑證與上游介面連線狀態
適用情境
適合讓助理協助規劃出遊:尋找某城市的活动、比較價格與評分、確認某個旅遊何時可預訂,或彙整評價。它只讀取目錄資料,不會進行預訂。
執行需求
以 stdio 方式在本機執行,通常透過 npx 啟動 getyourguide-mcp 這個 npm 套件,因此需要 Node.js。呼叫工具需要 GetYourGuide 合作夥伴 API 金鑰,透過環境變數 GYG_API_KEY 提供並以 X-ACCESS-TOKEN 請求標頭送出,金鑰來自免費的合作夥伴計畫。選用變數可設定預設貨幣、語言、基礎 URL 與請求逾時。需要能連線到 api.getyourguide.com。
安裝前請注意
需要合作夥伴 API 金鑰(GYG_API_KEY),應視為機密保管,不要寫進共用設定。所有工具皆為唯讀,不會預訂或變更任何內容,但查詢與搜尋詞會傳送到 GetYourGuide 的 API。專案聲明由 AI 開發與維護,請自行斟酌使用。合作夥伴等級限制可能導致部分端點回傳 401/403,且存在速率限制。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

getyourguide-mcp

MCP server for GetYourGuide — search tours and activities, read tour details, bookable options, and reviews via the GetYourGuide Partner API.

🤖 This project was developed and is maintained by AI (Claude Code). Use at your own discretion.

Tools

All tools are read-only — this server registers no write tools.

ToolWhat it does
gyg_search_toursSearch tours/activities by free text, location, category, or date range; sortable; view
gyg_get_tourFull record for one tour by numeric ID; view
gyg_get_tour_optionsBookable options of a tour (ticket types, times), optionally within a date range; view
gyg_get_tour_availabilityBooking availability of a tour: participant categories, addons, available dates; view
gyg_get_tour_reviewsCustomer reviews for a tour; view
gyg_list_categoriesActivity categories (IDs feed gyg_search_tours / gyg_list_category_tours); view
gyg_list_category_toursTours in one category; view
gyg_get_locationDetails for a location (city, POI, region) by ID; view
gyg_list_location_toursTours available at one location; view
gyg_healthcheckVerify credentials and upstream reachability; reports failures as data, not exceptions

view — response shape

Every data tool takes view: "compact" | "full", and compact is the default. An efficiency that has to be asked for is one that usually is not, so it is not opt-in — the old compact: true flag on gyg_search_tours is gone.

  • compact — on the three tour LISTINGS it returns the documented slim projection (tour_id, title, abstract, url, price, overall_rating, number_of_ratings, durations, categories, locations), flattened to { _metadata, tours }. On gyg_get_tour — one record, no listing envelope to project — and on every other tool (options, availability, reviews, categories, location) — it instead strips image URLs and keeps everything else.
  • full — GetYourGuide's whole validated record, untouched.

Reach for full when you need a field the projection does not carry (picture variants, coordinates, marketing copy). Every response is minified JSON either way: formatting whitespace is dropped, whitespace inside a value is not.

Setup

You need a GetYourGuide Partner API key — join the (free) partner program at partner.getyourguide.com and copy the API key from your dashboard. The key is sent as the X-ACCESS-TOKEN header on every request.

Claude Code / any MCP host

json
{  "mcpServers": {    "getyourguide": {      "command": "npx",      "args": ["-y", "getyourguide-mcp"],      "env": {        "GYG_API_KEY": "your-partner-api-key"      }    }  }}

The server also boots with no key set (so hosts can probe tools/list at install time); the first tool call then returns an actionable error telling you which env var to set.

Environment variables

VariableRequiredMeaning
GYG_API_KEYyes (for tool calls)Partner API key, sent as X-ACCESS-TOKEN
GYG_CURRENCYnoDefault currency for prices (ISO 4217; falls back to USD — the API requires one); per-call currency args override
GYG_LANGUAGEnoDefault content language (falls back to en — the API requires one); per-call language args override
GYG_BASE_URLnoAPI base URL (default https://api.getyourguide.com/1)
GYG_REQUEST_TIMEOUT_MSnoPer-request timeout (default 30000)

For local development, put them in a .env next to the server (gitignored; see .env.example).

Behavior notes

  • Rate limits: one automatic retry on 429/503 honoring Retry-After (capped at 10s). If it still fails, the error tells you to back off.
  • Timeouts & network failures: a request that exceeds GYG_REQUEST_TIMEOUT_MS, or never reaches the API (DNS, refused, reset), comes back as a tool error naming the request path, with a hint to raise the timeout or check GYG_BASE_URL and your network. Cancelling a call is not wrapped — it stays a cancellation.
  • Empty arguments: an empty-string query param (e.g. currency: "" or language: "") is dropped rather than sent, so the env default / USD / en fallback applies instead of the API rejecting a blank value.
  • Auth errors: a 401/403 names both possible causes — a wrong key, or a key whose partner tier doesn't cover that endpoint.
  • API drift: responses are validated leniently. On an unexpected shape the server logs a precise warning to stderr and returns the raw response rather than breaking. See docs/GETYOURGUIDE-API.md — routes and request shapes are live-verified against the API and its official OpenAPI spec; real 200 bodies still need pinning from a keyed capture.
  • extraParams: gyg_search_tours and gyg_get_tour_options accept extraParams to pass raw query params the schema doesn't model. A key that collides with one of the tool's own arguments (limit, offset, currency, cnt_language, q, …) is ignored — the typed argument, or its default, always wins. (Before 2.1.6 extraParams overrode them.)
  • Secrets: upstream error bodies are redacted then truncated before they reach a tool result; the API key is never echoed.

Development

bash
npm installnpm run build          # tsc + esbuild bundle → dist/npm test               # tsc typecheck + vitest (no network — everything mocked)npm run test:coverage  # tsc typecheck + the CI gate: 100% lines/branches/functions/statements

Releases are automated with release-please; don't hand-bump versions. PR titles must be conventional commits (feat:, fix:, …) because the repo squash-merges.

License

MIT

來源:README.md,提交 1635bc6

工具

10

gyg_search_tours

Search GetYourGuide tours and activities. Filter by free text (or "iata:<code>" for airports), location ID, category ID, and date range; sort by popularity, price, or rating. Returns slim summaries by default; pass view:"full" for the whole records.

輸入參數qviewlimitdateTooffsetcurrencydateFromlanguagesortFieldcategoryIdlocationIdextraParams另有 1 個

gyg_get_tour

Get the full GetYourGuide record for one tour/activity by its numeric ID. Image URLs are stripped by default; pass view:"full" to keep them.

輸入參數viewtourId必填currencylanguage

gyg_get_tour_options

List the bookable options of a tour (ticket types, times, languages offered), optionally within a date range. Image URLs are stripped by default; pass view:"full" to keep them.

輸入參數viewlimitdateTotourId必填currencydateFromlanguageextraParams

gyg_get_tour_availability

Get booking availability for a tour: bookable participant categories, addons, and the list of available dates (with participant ranges). Lighter than gyg_get_tour_options when you only need "when can I go". Image URLs are stripped by default; pass view:"full" to keep them.

輸入參數viewtourId必填language

gyg_get_tour_reviews

List customer reviews for a tour (rating outline plus individual review items). Image URLs are stripped by default; pass view:"full" to keep them.

輸入參數viewlimitoffsettourId必填currencylanguagesortFieldsortDirection

gyg_list_categories

List GetYourGuide activity categories (use the IDs to filter tour searches). Image URLs are stripped by default; pass view:"full" to keep them.

輸入參數viewlimitoffsetlanguage

gyg_list_category_tours

List tours in one GetYourGuide category.

輸入參數viewlimitoffsetcurrencylanguagecategoryId必填

gyg_get_location

Get details for a GetYourGuide location (city, POI, or region) by its numeric ID. Image URLs are stripped by default; pass view:"full" to keep them.

輸入參數viewlanguagelocationId必填

gyg_list_location_tours

List tours available at one GetYourGuide location (city, POI, or region).

輸入參數viewlimitoffsetcurrencylanguagelocationId必填

gyg_healthcheck

Verify credentials and upstream reachability

Resolves the credential the way real tools do, then makes one authenticated request to api.getyourguide.com. Reports which source supplied the credential, whether api.getyourguide.com accepted it, the round-trip time, and a plain-English hint distinguishing 'no credential' from 'credential rejected' from 'a api.getyourguide.com-side problem'. Read-only; never returns the credential itself. Call this when a real tool fails and you want to know which hop broke.

無需輸入參數。

版本歷史

12
  1. v2.2.0最新Nov 4, 2026
  2. v2.1.8Oct 17, 2026
  3. v2.1.7Oct 16, 2026
  4. v2.1.6Oct 10, 2026
  5. v2.1.5Oct 7, 2026
  6. v2.1.4Oct 5, 2026
  7. v2.1.3Oct 3, 2026
  8. v2.1.2Sep 25, 2026
  9. v2.1.1Sep 23, 2026
  10. v2.1.0Sep 20, 2026
  11. v2.0.0Sep 18, 2026
  12. v1.3.2Sep 16, 2026

評分

已滿足適用檢查項的 90%

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

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

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

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