Duffel MCP Server

Duffel MCP Server

An MCP server that integrates the Duffel flights API to enable flight searching, airport code lookup, and fare detail retrieval via natural language. It allows users to search for one-way or round-trip flights and access baggage and fare conditions directly within Claude Code.

Category
Visit Server

README

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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured