Skip to main content
Glama
viator-mcp
by chrischall

viator-mcp

npm

MCP server for the Viator Partner API (v2) — search tours, activities and experiences for Claude. Search the catalog with structured filters or free text, get product details and availability schedules, browse attractions and destinations, all over stdio.

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

Quick start

{
  "mcpServers": {
    "viator": {
      "command": "npx",
      "args": ["-y", "@chrischall/viator-mcp"],
      "env": { "VIATOR_API_KEY": "your-viator-partner-api-key" }
    }
  }
}

Get a key by signing up as a Viator affiliate at partnerresources.viator.com — the Basic Access tier is free. This server targets that tier: read-only search/content/availability; no booking endpoints (product results carry a productUrl for booking on viator.com, tagged with your affiliate id).

Related MCP server: Rezdy Agent MCP Server

Tools

Area

Tools

Products

vt_search_products, vt_get_product, vt_list_product_tags

Search

vt_search_freetext

Attractions

vt_search_attractions, vt_get_attraction

Availability

vt_get_availability_schedule

Reference

vt_list_destinations, vt_get_locations, vt_get_exchange_rates

Health

vt_healthcheck — is this connector working? Reports whether VIATOR_API_KEY resolved, whether Viator accepted it, and what to fix. Start here when another tool fails: an empty result can mean "no products" or "never authenticated".

All tools are read-only. vt_search_products and vt_search_freetext accept compact: true for slim summaries (code, title, price, rating, booking URL) instead of full records.

Environment

Variable

Required

Description

VIATOR_API_KEY

yes

Viator Partner API key (sent as exp-api-key)

VIATOR_API_BASE_URL

no

API host (default production; set https://api.sandbox.viator.com/partner for a sandbox key)

VIATOR_LANGUAGE

no

Accept-Language for response text (default en-US)

VIATOR_CACHE_TTL

no

Seconds to cache identical reads (default 60; 0 disables)

VIATOR_STATIC_CACHE_TTL

no

Seconds to cache reference data — destinations, tags, locations, exchange rates (default 3600)

Viator rate-limits per endpoint on a rolling 10-second window and answers 429/503 with Retry-After; the client honors it (one retry) and the response cache absorbs repeated identical calls.

Development

npm install
npm test          # vitest; no real network calls
npm run build     # tsc + esbuild bundle

The API surface this server is coded against is pinned in docs/VIATOR-API.md.

License

MIT

Available Tools

11 tools
vt_get_attractionA
Read-only

Get details for one Viator attraction by id — name, destination, opening hours, review summary, mapped product codes, and the attraction URL.

Inputs: attraction_id (required), view, campaign_value.

vt_get_availability_scheduleA
Read-only

Get the availability schedule and pricing for a Viator product — seasons, days of week, start times, unavailable dates, and per-age-band pricing for every product option. NOTE: prices are in the SUPPLIER's currency (see the currency field); convert with vt_get_exchange_rates.

Inputs: product_code (required), view.

vt_get_exchange_ratesA
Read-only

Get exchange rates between currencies Viator supports — needed to convert supplier-currency prices from vt_get_availability_schedule. Reference data — cached.

Inputs: view, source_currencies, target_currencies.

vt_get_locationsA
Read-only

Resolve Viator location references (e.g. "LOC-...", meeting points, pickup points from product details) to names, addresses, and coordinates. Up to 500 references per call. Reference data — cached.

Inputs: location_refs (required), view.

vt_get_productA
Read-only

Get full details for one Viator product by product code — description, inclusions/exclusions, itinerary, product options, cancellation policy, booking URL, review summary.

Inputs: product_code (required), view, campaign_value.

vt_healthcheckVerify credentials and upstream reachabilityA
Read-onlyIdempotent

Resolves the credential the way real tools do, then makes one authenticated request to api.viator.com. Reports which source supplied the credential, whether api.viator.com accepted it, the round-trip time, and a plain-English hint distinguishing 'no credential' from 'credential rejected' from 'a api.viator.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.

Inputs: no named parameters.

vt_list_destinationsA
Read-only

List every Viator destination (cities, regions, countries) with ids, parent hierarchy, IATA codes, time zones, and coordinates. Use the destinationId with vt_search_products / vt_search_attractions. Reference data — cached.

Inputs: view, campaign_value.

vt_list_product_tagsA
Read-only

List all Viator product tags (tag id → names in every locale, with parent-tag hierarchy). Use tag ids to filter vt_search_products. Reference data — cached.

Inputs: view.

vt_search_attractionsA
Read-only

List attractions (landmarks, museums, points of interest) in a Viator destination, including the product codes mapped to each attraction. Use vt_list_destinations to find destination ids.

Inputs: destination_id (required), sort, view, count, +2 more.

vt_search_freetextA
Read-only

Free-text search across Viator products, attractions, and destinations (e.g. "colosseum underground tour"). The fastest way to find things when you don't have a destination id yet.

Inputs: search_term (required), sort, view, count, +11 more.

vt_search_productsA
Read-only

Search Viator tours, activities and experiences with structured filters (destination, tags, price, dates, rating, duration). Returns product summaries with pricing and booking URLs. Use vt_list_destinations to find destination ids and vt_list_product_tags for tag ids.

Inputs: sort, tags, view, count, +14 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 11 tools

    Disambiguation5/5

    Each tool targets a distinct resource+action: structured search (vt_search_products) vs free-text (vt_search_freetext), list/get pairs for products, attractions, tags, and destinations, plus availability, locations, exchange rates, and healthcheck. Descriptions actively cross-reference each other (e.g. pointing to vt_list_destinations for ids), making boundaries crystal clear.

    Naming Consistency5/5

    All 11 tools use a uniform vt_ prefix with a consistent verb_noun pattern (search_*, get_*, list_*). The only near-deviation is vt_healthcheck, which is still readable and follows the prefix convention.

    Tool Count5/5

    11 tools is well-scoped for a travel discovery API: search, detail lookups, reference data, and a diagnostic tool. Each tool earns its place without redundancy.

    Completeness4/5

    The discovery surface is comprehensive: search, product/attraction detail, availability/pricing, tags, destinations, location resolution, exchange rates, and healthcheck. It lacks booking/checkout operations, but as a read-only discovery set it covers the core workflows with no dead ends.

    Maintenance

    ActivityActive
    ResponsivenessUsually handled

    Related MCP Connectors

    Related MCP Servers