MCP Integration
PriveTag provides a native MCP (Model Context Protocol) server for seamless integration with Claude Desktop and other MCP-compatible AI assistants.MCP (Model Context Protocol) is Anthropic’s open standard for connecting AI assistants to external data sources and tools.
Quick Start
Installation
Claude Desktop Configuration
Add PriveTag to your Claude Desktop config (claude_desktop_config.json):
Restart Claude Desktop
After adding the configuration, restart Claude Desktop. You should see “PriveTag” in the connected tools.Available Tools
The MCP server exposes three tools to Claude:privetag_recommend
Get context-aware activity recommendations. Parameters:| Name | Type | Required | Description |
|---|---|---|---|
travel_type | string | Yes | family, couple, solo, business, friends |
city | string | Yes | City name (e.g., Bangkok, Phuket) |
interests | string[] | No | Activity categories |
budget | string | No | budget, mid, luxury |
lat | number | No | Latitude for weather-aware recommendations |
lon | number | No | Longitude for weather-aware recommendations |
privetag_book
Execute a booking and send voucher to user. Parameters:| Name | Type | Required | Description |
|---|---|---|---|
activity_id | string | Yes | From recommendations |
user_email | string | Yes | For voucher delivery |
user_name | string | Yes | Guest name |
booking_date | string | Yes | ISO date format |
num_adults | number | Yes | Number of adults |
num_children | number | No | Number of children |
context_log_id | string | No | For conversion tracking |
privetag_inventory
Check real-time availability and deals. Parameters:| Name | Type | Required | Description |
|---|---|---|---|
city | string | Yes | City to search |
date | string | No | Specific date |
category | string | No | Activity category filter |
flash_deals_only | boolean | No | Only show deals |
Tool Descriptions (GEO Optimized)
The MCP server provides AI-optimized tool descriptions:Advanced Configuration
Custom Base URL
For enterprise or self-hosted deployments:Debug Mode
Enable verbose logging:Example Conversations
Family Trip Planning
User: “We’re a family of 4 (2 adults, 2 kids) visiting Bangkok next week. What activities would you recommend?” Claude: [Calls privetag_recommend with travel_type: “family”, city: “Bangkok”] “Based on your family profile, here are the top recommendations:- Safari World Bangkok - Perfect for kids, includes a safari drive and marine park. ฿1,500/person
- Dream World Theme Park - Exciting rides suitable for all ages. ฿1,200/person
- SEA LIFE Bangkok - Indoor aquarium, great for hot days. ฿990/person
Rainy Day Recommendations
User: “It’s raining in Phuket. What can we do indoors?” Claude: [Calls privetag_recommend with city: “Phuket”, lat/lon for weather context] “Given the rainy weather in Phuket, here are indoor options:- Oasis Spa Signature Package - 40% OFF flash deal! ฿1,800 (was ฿3,000)
- Phuket Trickeye Museum - 3D art museum, fun for photos
- Central Festival Shopping - AC shopping complex
Error Handling
The MCP server handles errors gracefully:Best Practices
Always provide context_log_id
Always provide context_log_id
When Claude books an activity, it should pass the context_log_id from recommendations. This enables the Ground Truth feedback loop.
Use lat/lon for weather-aware recommendations
Use lat/lon for weather-aware recommendations
When the user’s location is known, pass coordinates for weather-appropriate suggestions.
Check inventory before booking
Check inventory before booking
For dates more than a week out, use
privetag_inventory to verify availability before committing to book.Handle booking failures gracefully
Handle booking failures gracefully
If a booking fails, Claude should suggest alternatives from the original recommendations.
Supported MCP Clients
| Client | Status | Notes |
|---|---|---|
| Claude Desktop | ✅ Supported | Full integration |
| Claude.ai | 🔜 Coming | Web-based MCP support |
| Cline (VS Code) | ✅ Supported | Development use |
| Continue | ✅ Supported | Development use |
Troubleshooting
Server Not Starting
Tools Not Appearing in Claude
- Check
claude_desktop_config.jsonsyntax - Ensure API key is set correctly
- Restart Claude Desktop completely
- Check Claude’s MCP logs (Help → Debug → MCP Logs)