DocumentationMCPCLI

Introduction

  • Overview

Hotels

  • Search hotels
  • Hotel details
  • Live rates

Booking

  • Create booking

Account

  • Sign in

Guides

  • Agent guide

Introduction

Overview

Every command prints JSON on stdout and errors as JSON on stderr, with a fixed exit code.

Install

npm install -g fortrip

Or run any command with npx fortrip. Needs Node.js 22 or newer. Sign in once with fortrip login. See Installation.

Commands

CommandDescription
fortrip searchSearch hotels
fortrip hotelHotel details
fortrip ratesLive rates
fortrip bookCreate booking
fortrip loginSign in
fortrip skillAgent guide

Raw request body

search, rates and book also take --body with a JSON object, or --body @file.json. Flags override its fields. Field names and limits are the same as the MCP tool inputs.

fortrip search --body '{"query":"Bangkok","checkIn":"YYYY-MM-DD","checkOut":"YYYY-MM-DD","starMin":5}'

Environment

FORTRIP_TOKENUse this token instead of the saved login, e.g. in CI or a sandbox.
FORTRIP_CURRENCYDefault --currency for search and rates.
FORTRIP_API_URLAPI base URL. Default https://fortrip.ai.

Exit codes are listed in Errors & limits.

NextSearch hotels

On this page

  • Install
  • Commands
  • Raw request body
  • Environment
Fortrip

Opinionated trip planning, built for real itineraries.

Plan

  • AI Trip Planner
  • Validator
  • Transport
  • Stays

Company

  • Pricing
  • About
  • Team
  • Blog
  • Decision Optimization
  • Itinerary Selection
  • News

Resources

  • Explore Destinations
  • Brand Assets
  • Responsible Travel
  • vs ChatGPT
  • Best AI travel planner
  • FAQ

© 2026 FortripAI, Inc.

PrivacyTerms
info@fortrip.ai+1-650-272-16121111b South Governors Ave, Dover, DE 19904
Skip to main content
Fortrip Logo
HomeExplorePlanningPricing
CLIMCPDocs
Saved0