@chrischall/tripadvisor-mcp 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "https://anthropic.com/claude-code/marketplace.schema.json",
3
+ "name": "tripadvisor-mcp",
4
+ "owner": {
5
+ "name": "Chris Hall",
6
+ "email": "chris.c.hall@gmail.com"
7
+ },
8
+ "metadata": {
9
+ "description": "MCP server for the TripAdvisor Content API — location search, details, photos, and reviews",
10
+ "version": "0.0.0"
11
+ },
12
+ "plugins": [
13
+ {
14
+ "name": "tripadvisor-mcp",
15
+ "displayName": "TripAdvisor",
16
+ "source": "./",
17
+ "description": "TripAdvisor travel data via the official Content API — search hotels, restaurants, and attractions, with details, photos, and reviews",
18
+ "version": "0.0.0",
19
+ "author": {
20
+ "name": "Chris Hall"
21
+ },
22
+ "homepage": "https://github.com/chrischall/tripadvisor-mcp",
23
+ "repository": "https://github.com/chrischall/tripadvisor-mcp",
24
+ "license": "MIT",
25
+ "keywords": [
26
+ "tripadvisor",
27
+ "travel",
28
+ "hotels",
29
+ "restaurants",
30
+ "attractions",
31
+ "reviews",
32
+ "mcp"
33
+ ],
34
+ "category": "data"
35
+ }
36
+ ]
37
+ }
@@ -0,0 +1,24 @@
1
+ {
2
+ "name": "tripadvisor-mcp",
3
+ "displayName": "TripAdvisor",
4
+ "version": "0.0.0",
5
+ "description": "MCP server for the TripAdvisor Content API — location search, details, photos, and reviews",
6
+ "author": {
7
+ "name": "Chris Hall",
8
+ "email": "chris.c.hall@gmail.com"
9
+ },
10
+ "homepage": "https://github.com/chrischall/tripadvisor-mcp",
11
+ "repository": "https://github.com/chrischall/tripadvisor-mcp",
12
+ "license": "MIT",
13
+ "keywords": [
14
+ "tripadvisor",
15
+ "travel",
16
+ "hotels",
17
+ "restaurants",
18
+ "attractions",
19
+ "reviews",
20
+ "mcp"
21
+ ],
22
+ "skills": "./SKILL.md",
23
+ "mcp": "./.mcp.json"
24
+ }
package/.mcp.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "mcpServers": {
3
+ "tripadvisor": {
4
+ "command": "node",
5
+ "args": ["${CLAUDE_PLUGIN_ROOT}/dist/index.js"],
6
+ "env": {
7
+ "TRIPADVISOR_API_KEY": "${TRIPADVISOR_API_KEY}",
8
+ "TRIPADVISOR_REFERER": "${TRIPADVISOR_REFERER}",
9
+ "TRIPADVISOR_CACHE_TTL": "${TRIPADVISOR_CACHE_TTL}",
10
+ "TRIPADVISOR_STATIC_CACHE_TTL": "${TRIPADVISOR_STATIC_CACHE_TTL}"
11
+ }
12
+ }
13
+ }
14
+ }
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Chris Hall
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,58 @@
1
+ # tripadvisor-mcp
2
+
3
+ [![npm](https://img.shields.io/npm/v/@chrischall/tripadvisor-mcp)](https://www.npmjs.com/package/@chrischall/tripadvisor-mcp)
4
+
5
+ MCP server for the **TripAdvisor Content API** — travel data for Claude. Search hotels, restaurants, attractions, and destinations by name or coordinates, then pull full details, photos, and recent reviews, all over stdio.
6
+
7
+ > Developed and maintained by AI (Claude Code). Use at your own discretion.
8
+
9
+ ## Quick start
10
+
11
+ ```json
12
+ {
13
+ "mcpServers": {
14
+ "tripadvisor": {
15
+ "command": "npx",
16
+ "args": ["-y", "@chrischall/tripadvisor-mcp"],
17
+ "env": { "TRIPADVISOR_API_KEY": "your-content-api-key-here" }
18
+ }
19
+ }
20
+ }
21
+ ```
22
+
23
+ Get a key at [tripadvisor.com/developers](https://www.tripadvisor.com/developers). The free tier is **5,000 calls/month**; responses are cached in-memory to stretch it.
24
+
25
+ ## Tools
26
+
27
+ | Tool | What it does |
28
+ | --- | --- |
29
+ | `ta_search_locations` | Search locations by name (optionally scoped by category, lat/long + radius, address, phone) — up to 10 matches |
30
+ | `ta_search_nearby` | Find locations near a latitude/longitude — up to 10 matches |
31
+ | `ta_get_location_details` | Full details: rating, ranking, subratings, awards, review count, amenities, hours, listing URLs |
32
+ | `ta_get_location_photos` | Photos with multi-size image URLs, captions, and source filter |
33
+ | `ta_get_location_reviews` | Most recent reviews (up to 5 per call, pageable with `offset`) |
34
+
35
+ All tools are read-only — the Content API has no write endpoints.
36
+
37
+ ## Environment
38
+
39
+ | Var | Required | Purpose |
40
+ | --- | --- | --- |
41
+ | `TRIPADVISOR_API_KEY` | yes | Content API key, sent as the `key` query parameter. |
42
+ | `TRIPADVISOR_REFERER` | no | `Referer` header for domain-restricted keys (the API 403s without a matching referer). |
43
+ | `TRIPADVISOR_CACHE_TTL` | no | Seconds to cache search responses (default: 300; `0` disables). |
44
+ | `TRIPADVISOR_STATIC_CACHE_TTL` | no | Seconds to cache details/photos/reviews (default: 3600; `0` disables). |
45
+
46
+ ## Development
47
+
48
+ ```bash
49
+ npm install
50
+ npm run build # tsc + esbuild bundle
51
+ npm test # vitest (no real network)
52
+ ```
53
+
54
+ Endpoint request shapes are pinned in [docs/TRIPADVISOR-API.md](docs/TRIPADVISOR-API.md). With a key in `.env`, `node scripts/live-probe.mjs` exercises every read path through the built client.
55
+
56
+ ## License
57
+
58
+ MIT
package/SKILL.md ADDED
@@ -0,0 +1,70 @@
1
+ ---
2
+ name: tripadvisor-mcp
3
+ description: TripAdvisor travel data via the official Content API through MCP. Use when the user asks to find hotels, restaurants, attractions, or destinations, look up a place's TripAdvisor rating/reviews/photos, compare places to stay or eat, or find what's near a location. Triggers on phrases like "find a hotel in", "best restaurants near", "TripAdvisor reviews for", "what's the rating of", "things to do in", or "attractions near me". Requires the @chrischall/tripadvisor-mcp package installed and the tripadvisor server registered (see Setup), plus a TripAdvisor Content API key.
4
+ ---
5
+
6
+ # tripadvisor-mcp
7
+
8
+ MCP server for the **TripAdvisor Content API** — location search, details, photos, and reviews for hotels, restaurants, attractions, and destinations, exposed to Claude over stdio.
9
+
10
+ - **npm:** [npmjs.com/package/@chrischall/tripadvisor-mcp](https://www.npmjs.com/package/@chrischall/tripadvisor-mcp)
11
+ - **Source:** [github.com/chrischall/tripadvisor-mcp](https://github.com/chrischall/tripadvisor-mcp)
12
+
13
+ ## Setup
14
+
15
+ ### Option A — npx (recommended)
16
+
17
+ Add to `.mcp.json` in your project or `~/.claude/mcp.json`:
18
+
19
+ ```json
20
+ {
21
+ "mcpServers": {
22
+ "tripadvisor": {
23
+ "command": "npx",
24
+ "args": ["-y", "@chrischall/tripadvisor-mcp"],
25
+ "env": {
26
+ "TRIPADVISOR_API_KEY": "your-content-api-key-here"
27
+ }
28
+ }
29
+ }
30
+ }
31
+ ```
32
+
33
+ Get a key at [tripadvisor.com/developers](https://www.tripadvisor.com/developers). The free tier is **5,000 calls/month**; the server caches responses in-memory to stretch it.
34
+
35
+ ### Option B — from source
36
+
37
+ ```bash
38
+ git clone https://github.com/chrischall/tripadvisor-mcp
39
+ cd tripadvisor-mcp
40
+ npm install && npm run build
41
+ ```
42
+
43
+ ## Environment
44
+
45
+ | Var | Required | Purpose |
46
+ | --- | --- | --- |
47
+ | `TRIPADVISOR_API_KEY` | yes | Content API key (sent as the `key` query parameter). |
48
+ | `TRIPADVISOR_REFERER` | no | `Referer` header — required if your key was created with a domain restriction. |
49
+ | `TRIPADVISOR_CACHE_TTL` | no | Seconds to cache identical search responses (default: 300; `0` disables). |
50
+ | `TRIPADVISOR_STATIC_CACHE_TTL` | no | Longer TTL for details/photos/reviews (default: 3600; `0` disables). |
51
+
52
+ ## Tools
53
+
54
+ | Tool | Use for |
55
+ | --- | --- |
56
+ | `ta_search_locations` | Find places by name — `searchQuery` required; filter with `category` (hotels/attractions/restaurants/geos), `latLong` + `radius`/`radiusUnit`, `address`, `phone`, `language`. Returns up to 10 matches with `location_id`. |
57
+ | `ta_search_nearby` | Find places near coordinates — `latLong` ("lat,long") required; same filters. |
58
+ | `ta_get_location_details` | Full listing for a `location_id`: rating, ranking, subratings, awards, review count, amenities, hours, URLs. Optional `language`, `currency`. |
59
+ | `ta_get_location_photos` | Photos (multi-size URLs + captions). Page with `limit`/`offset`; filter `source` to `Expert`, `Management`, `Traveler`. |
60
+ | `ta_get_location_reviews` | Up to 5 most-recent reviews per call; page with `offset`. |
61
+
62
+ ## Workflow
63
+
64
+ 1. `ta_search_locations` (or `ta_search_nearby`) to get `location_id`s.
65
+ 2. `ta_get_location_details` for ratings/amenities; `ta_get_location_reviews` and `ta_get_location_photos` for review text and images.
66
+
67
+ Notes:
68
+ - Everything is **read-only** — the Content API has no write endpoints.
69
+ - A `403` usually means a domain/IP-restricted key: set `TRIPADVISOR_REFERER` to a matching domain.
70
+ - Reviews come back at most 5 per call — page with `offset` for more.