← Back to Duffel MCP Server

Install Duffel MCP Server

Pick your client, copy the command, done.

Manual setup required. The maintainer's config contains paths only you know - edit the placeholders below before adding it to Claude Code.
1

Prepare the server locally

Run this once before adding it to Claude Code.

npm install
npm run build
2

Register it in Claude Code

claude mcp add -e "DUFFEL_API_TOKEN=${DUFFEL_API_TOKEN}" duffel-mcp -- node /absolute/path/to/duffel-mcp/dist/index.js

Replace any placeholder paths in the command with the real path on your machine.

Required:DUFFEL_API_TOKEN

Environment Variables

Set these before running Duffel MCP Server.

VariableDescriptionRequired
DUFFEL_API_TOKENAPI token from Duffel dashboardYes

Available Tools (3)

Once configured, Duffel MCP Server gives your AI agent access to:

search_flightsSearch one-way or round-trip flights by IATA code, date, cabin class
origindestinationdeparture_datereturn_datecabin_classpassengers
get_offer_detailsGet full details on a specific offer (baggage, fare conditions, etc.)
offer_id
list_airportsLook up IATA codes by city/airport name
query

Try It Out

After setup, try these prompts with your AI agent:

Search for flights from RDU to SFO on April 15th for 2 passengers in economy
Find round-trip flights from Raleigh to London, departing May 10 returning May 20, business class
What's the cheapest flight from JFK to LAX next Friday?
Look up the airport code for Raleigh Durham
Get full details and baggage policy for offer [offer_id]
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Node.js 18+ with npm/npx installed
  • DUFFEL_API_TOKEN — API token from Duffel dashboard
Alternative installation methods

Claude Code CLI

claude mcp add duffel node /path/to/dist/index.js

Keep this setup from going cold

Save the docs, env vars, and workflow around Duffel MCP Server in Conare so Claude Code, Codex, and Cursor remember it next time.

Remember this setup