travel-advisor
The Travel Advisor MCP Server offers a comprehensive API for accessing real-time travel-related data, similar to TripAdvisor.
The Travel Advisor MCP Server provides an API that allows developers to access real-time data on flights, hotel bookings, restaurants, tourist attractions, and more. This enables the creation of travel sites with functionalities similar to platforms like TripAdvisor. The server offers versatile endpoints and flexible query options, allowing users to customize their queries based on location IDs, languages, currency, and other parameters. The server is equipped with tools for locations, restaurants, attractions, shared content, and attraction products, each offering specific functionalities to enhance travel planning experiences.
Features
- Real-time Data Access
- Versatile Endpoints
- Flexible Query Options
MCP Tools
- Locations: Tools for auto-completing, searching, and listing nearby locations.
- Restaurants: Tools for filtering, listing, and accessing detailed restaurant information.
- Attractions: Tools for filtering, listing, and accessing detailed attraction information.
- Shared Content: Tools for accessing reviews, photos, questions, and answers related to locations.
- Attraction Products: Tools for listing and accessing detailed information on attraction-related products.
Usage with Different Platforms
nodejs
javascript
const axios = require('axios');
async function getAttractions(locationId) {
try {
const response = await axios.get(`https://api.traveladvisor.com/attractions?location_id=${locationId}`);
console.log(response.data);
} catch (error) {
console.error(error);
}
}
getAttractions('12345');
python
python
import requests
def get_attractions(location_id):
try:
response = requests.get(f'https://api.traveladvisor.com/attractions?location_id={location_id}')
print(response.json())
except Exception as e:
print(e)
get_attractions('12345')