This MCP server lets you search for and retrieve flight information using the Duffel API. It works like having a travel agent in your chat that remembers your previous searches and helps you find the best flights for complex travel plans.
For an automatic installation with Claude Desktop:
npx -y @smithery/cli install @ravinahp/travel-mcp --client claude
Clone the repository and install dependencies:
git clone https://github.com/ravinahp/flights-mcp
cd flights-mcp
uv sync
Start with a test API key to try the functionality with simulated data:
duffel_test
For real flight data:
Important Security Notes:
Modify your Claude desktop configuration file:
File locations:
~/Library/Application\ Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
Add this configuration:
{
"flights-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/YOUR_USERNAME/Code/flights-mcp",
"run",
"flights-mcp"
],
"env": {
"DUFFEL_API_KEY_LIVE": "your_duffel_live_api_key_here"
}
}
}
Important:
YOUR_USERNAME
with your actual usernameyour_duffel_live_api_key_here
with your Duffel API keyThis tool supports one-way, round-trip, and multi-city flights with these parameters:
type
: Flight type ('one_way', 'round_trip', 'multi_city')origin
: Origin airport codedestination
: Destination airport codedeparture_date
: Departure date (YYYY-MM-DD)return_date
: Return date for round-tripsadults
: Number of adult passengerscabin_class
: Preferred cabin class ('economy', 'premium_economy', 'business', 'first')departure_time
: Specific departure time rangearrival_time
: Specific arrival time rangemax_connections
: Maximum number of connectionsRetrieves comprehensive details for a specific flight offer using its unique ID.
Specialized tool for complex multi-city flight itineraries with parameters:
segments
: List of flight segmentsadults
: Number of adult passengerscabin_class
: Preferred cabin classmax_connections
: Maximum number of connectionsTry asking Claude:
For finding the best deals, you can search across multiple days (works best with one-way or round-trip flights):
For troubleshooting, use the MCP Inspector:
npx @modelcontextprotocol/inspector uv --directory /path/to/find-flights-mcp run flights-mcp
This provides real-time monitoring, validation, error tracking, and performance metrics.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "flights-mcp" '{"command":"uv","args":["--directory","/Users/YOUR_USERNAME/Code/flights-mcp","run","flights-mcp"],"env":{"DUFFEL_API_KEY_LIVE":"your_duffel_live_api_key_here"}}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"flights-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/YOUR_USERNAME/Code/flights-mcp",
"run",
"flights-mcp"
],
"env": {
"DUFFEL_API_KEY_LIVE": "your_duffel_live_api_key_here"
}
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"flights-mcp": {
"command": "uv",
"args": [
"--directory",
"/Users/YOUR_USERNAME/Code/flights-mcp",
"run",
"flights-mcp"
],
"env": {
"DUFFEL_API_KEY_LIVE": "your_duffel_live_api_key_here"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect