Duffel MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
npm install
npm run build
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "DUFFEL_API_TOKEN=${DUFFEL_API_TOKEN}" duffel-mcp -- node "<FULL_PATH_TO_DUFFEL_MCP>/dist/index.js"

Replace <FULL_PATH_TO_DUFFEL_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:DUFFEL_API_TOKEN
README.md

Integrates the Duffel flights API to enable flight searching and lookup.

Duffel MCP Server

An MCP (Model Context Protocol) server that wraps the Duffel flights API, letting you search for flights directly from Claude Code using natural language.

Tools Exposed

Tool Description
search_flights Search one-way or round-trip flights by IATA code, date, cabin class
get_offer_details Get full details on a specific offer (baggage, fare conditions, etc.)
list_airports Look up IATA codes by city/airport name

Setup

1. Get a Duffel API Token

  1. Sign up free at duffel.com
  2. Go to Dashboard → Developers → API tokens
  3. Create a Test token (starts with duffel_test_...)
  4. Live tokens (starting with duffel_live_...) enable real bookings — use test for demos

2. Install & Build

npm install
npm run build

3. Configure Claude Code

Add to your Claude Code MCP config (~/.claude/claude_desktop_config.json or project-level .claude/mcp.json):

{
  "mcpServers": {
    "duffel": {
      "command": "node",
      "args": ["/absolute/path/to/duffel-mcp/dist/index.js"],
      "env": {
        "DUFFEL_API_TOKEN": "duffel_test_your_token_here"
      }
    }
  }
}

For Claude Code CLI, use: claude mcp add duffel node /path/to/dist/index.js then set the env var in your shell or .env.

4. Restart Claude Code

Once restarted, you'll have flight search available as native tools.

Example Prompts in Claude Code

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]

Development

# Run without building (uses tsx)
DUFFEL_API_TOKEN=duffel_test_... npm run dev

# Build for production
npm run build

Architecture

Claude Code
    │
    ▼  (MCP stdio transport)
duffel-mcp server (this repo)
    │
    ▼  (HTTPS REST)
Duffel API
    │
    ▼
Airlines / GDS

Extending

Want to add booking? Add these tools next:

  • create_order — book the selected offer
  • get_order — retrieve booking confirmation
  • list_orders — see all bookings

See Duffel API docs for the full reference.

Tools (3)

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

Environment Variables

DUFFEL_API_TOKENrequiredAPI token from Duffel dashboard

Configuration

claude_desktop_config.json
{"mcpServers": {"duffel": {"command": "node", "args": ["/absolute/path/to/duffel-mcp/dist/index.js"], "env": {"DUFFEL_API_TOKEN": "duffel_test_your_token_here"}}}}

Try it

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]

Frequently Asked Questions

What are the key features of Duffel MCP Server?

Search for one-way or round-trip flights. Retrieve detailed fare conditions and baggage policies. Lookup IATA airport codes by city or airport name. Natural language flight search integration.

What can I use Duffel MCP Server for?

Planning travel itineraries directly within the Claude Code environment. Quickly checking baggage policies for specific flight offers. Finding IATA codes for travel-related automation tasks.

How do I install Duffel MCP Server?

Install Duffel MCP Server by running: npm install && npm run build

What MCP clients work with Duffel MCP Server?

Duffel MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Duffel MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare