Skip to main content
Glama
zarrinmonirzadeh

Agentic Travel Recommendations Service

Agentic Travel Recommendations Service

A working proof-of-concept for an agent-discoverable travel recommendations API.

What is included

  • FastAPI backend

  • Mock member profile and partner-configuration services

  • Partner-specific recommendation caps

  • Partner-specific category exclusions

  • MCP-compatible JSON-RPC endpoint

  • MCP tool discovery via tools/list

  • MCP tool invocation via tools/call

  • REST API

  • Minimal browser UI

  • Automated tests

Related MCP server: Agentic Travel Recommendations API

Run locally

python -m venv .venv

# macOS/Linux
source .venv/bin/activate

# Windows PowerShell
.venv\Scripts\Activate.ps1

pip install -r requirements.txt
uvicorn app.main:app --reload

Open:

REST example

curl -X POST http://127.0.0.1:8000/api/recommendations \
  -H "Content-Type: application/json" \
  -d '{
    "member_id": "member-1001",
    "partner_id": "premium-bank",
    "destination": "Portland",
    "limit": 10
  }'

MCP discovery example

curl -X POST http://127.0.0.1:8000/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/list",
    "params": {}
  }'

MCP invocation example

curl -X POST http://127.0.0.1:8000/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "get_recommendations",
      "arguments": {
        "member_id": "member-1001",
        "partner_id": "premium-bank",
        "destination": "Portland",
        "limit": 10
      }
    }
  }'

Sample IDs

Members:

  • member-1001

  • member-1002

  • member-1003

Partners:

  • premium-bank

  • family-club

  • business-card

Partner-rule examples

  • premium-bank: maximum 5 results; excludes hostel

  • family-club: maximum 4 results; excludes nightlife and casino

  • business-card: maximum 3 results; excludes hostel, nightlife, and casino

Test

pytest

Design notes

The recommendation engine first scores candidates against a mocked member profile, then applies the partner policy before returning results. Policy enforcement is performed server-side, so a client or agent cannot bypass recommendation caps or excluded categories.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    MCP server that provides AI agents with personalized travel recommendations for members, enforcing partner-specific rules such as category exclusions, loyalty tier eligibility, and recommendation caps.
    3
    -
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for agentic travel recommendations, exposing tools to retrieve member profiles and personalized travel recommendations with partner-specific rules and policies.
    ISC
  • A
    license
    Not graded
    quality
    B
    maintenance
    AON(Agent Offer Network) MCP connects AI agents to real, buyable products and services with live pricing and tracked links—enabling builders to earn developer revenue share from attributed clicks and conversions. AON MCP Server owned by aon.pro
    4
    Apache 2.0