DocumentationMCPCLI

Introduction

  • Overview

Hotels

  • Search hotels
  • Hotel details
  • Live rates

Booking

  • Create booking

Account

  • Sign in
  • Sign out
  • Show account

Guides

  • Agent guide

Local MCP

  • Local MCP server

Introduction

Overview

Commands print JSON on stdout and errors as JSON on stderr, with a fixed exit code. The exceptions: guide prints Markdown, mcp speaks MCP over stdin and stdout, and --help and --version print plain text.

Install

npm install -g fortrip

Or run any command with npx fortrip. Needs Node.js 22 or newer. Sign in once with fortrip login; you stay signed in until fortrip logout. See Installation.

Commands

CommandDescription
fortrip hotels searchSearch hotels
fortrip hotels getHotel details
fortrip hotels ratesLive rates
fortrip hotels bookCreate booking
fortrip loginSign in
fortrip logoutSign out
fortrip whoamiShow account
fortrip guideAgent guide
fortrip mcpLocal MCP server

Options of the CLI itself:

-h, --helpShow help for the command or group, or for the CLI when no command is given.
-v, --versionPrint the CLI version.

Raw request body

hotels search, hotels rates and hotels 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 hotels search --body '{"query":"Bangkok","checkIn":"YYYY-MM-DD","checkOut":"YYYY-MM-DD","starMin":5}'

Environment

FORTRIP_TOKENUse this access token instead of the saved sign-in, e.g. in a remote sandbox or on a CI run. An access token lasts at most 24 hours, so it suits one sandbox session or one CI run, not standing CI.
FORTRIP_CURRENCYDefault --currency for hotels search and hotels rates.
FORTRIP_API_URLAPI base URL. Default https://fortrip.ai; plain http only for localhost.

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