Price Per TokenPrice Per Token
Flight & Stay Search Server (Duffel API)

Flight & Stay Search Server (Duffel API)

by clockworked247

0

About

Flight & Stay Search Server is a travel booking search tool powered by the Duffel API that enables flight and accommodation discovery. Key capabilities: - Search for one-way, round-trip, and multi-city flights with filters for cabin class, passenger count, and connection preferences - Retrieve detailed information about specific flight offers including pricing and itinerary details - Search for hotels and accommodations by location, check-in/check-out dates, number of guests, and rooms - Access guest reviews and ratings for specific hotels and stays - Filter results by departure/arrival time windows and price ranges The server integrates with Duffel's airline distribution platform to provide real-time flight inventory and accommodation data.

README

Flight + Stay Search MCP (TypeScript)

A TypeScript implementation of a flight & Stay search MCP server that uses the Duffel API to search for flights. This MCP server provides tools to search for one-way, round-trip, and multi-city flights.

[](https://smithery.ai/server/@clockworked247/flights-mcp-ts)

Features

  • Search for one-way, round-trip, and multi-city flights
  • Get detailed information about specific flight offers
  • Specify cabin class, number of passengers, and connection preferences
  • Filter by departure and arrival time windows
  • Search for travel stays (hotels/accommodations)
  • Get guest reviews for a specific stay/hotel
  • Setup

    1. Install dependencies:

       npm install
       

    2. Build the project:

       npm run build
       

    3. Start the server:

       npm start
       

    Environment Variables

    Create a .env file with:

    DUFFEL_API_KEY=your_duffel_api_key
    

    You can start with a test API key (duffel_test) to try the functionality.

    Using with Smithery

    To publish this MCP to Smithery:

    npx @smithery/cli publish
    

    To run the published MCP:

    npx @smithery/cli run @your-username/flights-mcp-ts --config "{\"duffelApiKey\":\"your_duffel_api_key\"}"
    

    Available Tools

    This MCP provides the following tools:

    1. search_flights - Search for one-way, round-trip, or multi-city flights 2. get_offer_details - Get detailed information about a specific flight offer 3. search_multi_city - A specialized tool for multi-city flight searches 4. search_stays - Search for travel stays (hotels/accommodations) 5. get_stay_reviews - Get guest reviews for a specific stay/hotel

    Example Queries

  • "Find flights from SFO to NYC on May 15, 2025"
  • "Search for a round-trip flight from LAX to LHR departing June 10 and returning June 20"
  • "Find business class flights from Tokyo to Paris for 2 adults"
  • "Get details for flight offer [offer_id]"
  • "Find hotels in London for 2 guests from 2025-06-10 to 2025-06-12"
  • "Get reviews for stay [hotel_id]"
  • ---

    Stays/Hotel Search and Reviews

    1. Search for Stays (search_stays)

    Parameters:

  • location (string): City, airport code, or area to search for stays
  • check_in_date (string): Check-in date (YYYY-MM-DD)
  • check_out_date (string): Check-out date (YYYY-MM-DD)
  • guests (number): Number of guests
  • rooms (number, optional): Number of rooms
  • radius_km (number, optional): Search radius in kilometers
  • Example Request:

    {
      "location": "London",
      "check_in_date": "2025-06-10",
      "check_out_date": "2025-06-12",
      "guests": 2
    }
    

    Example Response:

    {
      "offers": [
        {
          "offer_id": "off_123",
          "hotel_id": "acc_0000AWr2VsUNIF1Vl91xg0",
          "hotel_name": "The Grand Hotel",
          "address": "1 Main St, London",
          "price": { "amount": "350.00", "currency": "GBP" },
          "room_type": "Deluxe Suite",
          "cancellation_policy": "Free cancellation until 24h before check-in"
        }
      ]
    }
    

    Note: Use the hotel_id from the search results as the stay_id for reviews.

    ---

    2. Get Stay Reviews (get_stay_reviews)

    Parameters:

  • stay_id (string): The unique Duffel stay/hotel ID (from the search_stays result)
  • after (string, optional): Pagination cursor (after)
  • before (string, optional): Pagination cursor (before)
  • limit (number, optional): Max reviews to return (1-200)
  • Example Request:

    {
      "stay_id": "acc_0000AWr2VsUNIF1Vl91xg0"
    }
    

    Example Response:

    {
      "meta": { "limit": 50, "after": "..." },
      "reviews": [
        {
          "text": "Excellent facilities. Polite staff.\nAir conditioning could use some maintenance.\n",
          "score": 8.4,
          "reviewer_name": "Bessie Coleman",
          "created_at": "2025-01-01"
        }
      ]
    }
    

    Local Development

    For development with automatic reloading:

    npm run dev
    

    License

    MIT

    Related MCP Servers

    AI Research Assistant

    AI Research Assistant

    hamid-vakilzadeh

    AI Research Assistant provides comprehensive access to millions of academic papers through the Semantic Scholar and arXiv databases. This MCP server enables AI coding assistants to perform intelligent literature searches, citation network analysis, and paper content extraction without requiring an API key. Key features include: - Advanced paper search with multi-filter support by year ranges, citation thresholds, field of study, and publication type - Title matching with confidence scoring for finding specific papers - Batch operations supporting up to 500 papers per request - Citation analysis and network exploration for understanding research relationships - Full-text PDF extraction from arXiv and Wiley open-access content (Wiley TDM token required for institutional access) - Rate limits of 100 requests per 5 minutes with options to request higher limits through Semantic Scholar

    Web & Search
    12 8
    Linkup

    Linkup

    LinkupPlatform

    Linkup is a real-time web search and content extraction service that enables AI assistants to search the web and retrieve information from trusted sources. It provides source-backed answers with citations, making it ideal for fact-checking, news gathering, and research tasks. Key features of Linkup: - Real-time web search using natural language queries to find current information, news, and data - Page fetching to extract and read content from any webpage URL - Search depth modes: Standard for direct-answer queries and Deep for complex research across multiple sources - Source-backed results with citations and context from relevant, trustworthy websites - JavaScript rendering support for accessing dynamic content on JavaScript-heavy pages

    Web & Search
    2 24
    Math-MCP

    Math-MCP

    EthanHenrickson

    Math-MCP is a computation server that enables Large Language Models (LLMs) to perform accurate numerical calculations through the Model Context Protocol. It provides precise mathematical operations via a simple API to overcome LLM limitations in arithmetic and statistical reasoning. Key features of Math-MCP: - Basic arithmetic operations: addition, subtraction, multiplication, division, modulo, and bulk summation - Statistical analysis functions: mean, median, mode, minimum, and maximum calculations - Rounding utilities: floor, ceiling, and nearest integer rounding - Trigonometric functions: sine, cosine, tangent, and their inverses with degrees and radians conversion support

    Developer Tools
    22 81