Skip to main content
Glama
tarun101

Google Flights Policy Recommender (MCP)

by tarun101

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
POLICY_JSONNoJSON string of travel policy (overrides default policy.json)
MCP_BEARER_TOKENNoBearer token for Basic Auth authentication (optional if using OAuth)
PREFERENCES_JSONNoJSON string of user preferences (overrides default user_preferences.json)

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
search_flightsA

Searches Google Flights for a route and returns structured flight options (airline, times, stops, price). Does not check policy or book anything.

check_policyA

Evaluates a specific flight (by id from the last search_flights call) against a policy JSON file and returns compliance, violations, and whether it needs approval.

find_compliant_flightsA

Searches Google Flights and evaluates every result against a policy file, returning only compliant options (plus a summary of how many were rejected and why), sorted by price.

start_bookingA

Re-validates the chosen flight against policy, then drives Google Flights through fare selection to the airline/OTA site and best-effort fills traveler details. ALWAYS stops before any payment field or purchase button — it never enters payment info or completes a purchase. Returns a report of what was filled, what wasn't, and the URL/screenshot where a human needs to take over. If the flight is out of policy, booking is refused unless acknowledgeOutOfPolicy is explicitly set to true.

close_browserA

Closes the Playwright browser opened by this server. Call when done with a booking session.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tarun101/google-flights-policy-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server