Flight and Stay Search Server

平台与服务

by AkekaratP

基于 Duffel API 提供机票与住宿搜索,支持单程、往返、多城市航班、详细报价和含住客评价的 stays,并可指定舱位与乘客偏好。

什么是 Flight and Stay Search Server

基于 Duffel API 提供机票与住宿搜索,支持单程、往返、多城市航班、详细报价和含住客评价的 stays,并可指定舱位与乘客偏好。

核心功能 (5 个工具)

search_flights
get_offer_details
search_multi_city
search_stays
get_stay_reviews

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.

smithery badge

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:

    bash
    npm install
    
  2. Build the project:

    bash
    npm run build
    
  3. Start the server:

    bash
    npm start
    

Environment Variables

Create a .env file with:

code
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:

bash
npx @smithery/cli publish

To run the published MCP:

bash
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:

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

Example Response:

json
{
  "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:

json
{
  "stay_id": "acc_0000AWr2VsUNIF1Vl91xg0"
}

Example Response:

json
{
  "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:

bash
npm run dev

License

MIT

常见问题

Flight and Stay Search Server 是什么?

基于 Duffel API 提供机票与住宿搜索,支持单程、往返、多城市航班、详细报价和含住客评价的 stays,并可指定舱位与乘客偏好。

Flight and Stay Search Server 提供哪些工具?

提供 5 个工具,包括 search_flights、get_offer_details、search_multi_city

相关 Skills

MCP构建

by anthropics

Universal
热门

聚焦高质量 MCP Server 开发,覆盖协议研究、工具设计、错误处理与传输选型,适合用 FastMCP 或 MCP SDK 对接外部 API、封装服务能力。

想让 LLM 稳定调用外部 API,就用 MCP构建:从 Python 到 Node 都有成熟指引,帮你更快做出高质量 MCP 服务器。

平台与服务
未扫描109.6k

Slack动图

by anthropics

Universal
热门

面向Slack的动图制作Skill,内置emoji/消息GIF的尺寸、帧率和色彩约束、校验与优化流程,适合把创意或上传图片快速做成可直接发送的Slack动画。

帮你快速做出适配 Slack 的动图,内置约束规则和校验工具,少踩上传与播放坑,做表情包和演示都更省心。

平台与服务
未扫描109.6k

接口设计评审

by alirezarezvani

Universal
热门

审查 REST API 设计是否符合行业规范,自动检查命名、HTTP 方法、状态码与文档覆盖,识别破坏性变更并给出设计评分,适合评审接口方案和版本迭代前把关。

做API和架构方案时,它能帮你提前揪出接口设计问题并对齐最佳实践,评审视角系统,团队协作更省心。

平台与服务
未扫描9.0k

相关 MCP Server

Slack 消息

编辑精选

by Anthropic

热门

Slack 是让 AI 助手直接读写你的 Slack 频道和消息的 MCP 服务器。

这个服务器解决了团队协作中需要 AI 实时获取 Slack 信息的痛点,特别适合开发团队让 Claude 帮忙汇总频道讨论或发送通知。不过,它目前只是参考实现,文档有限,不建议在生产环境直接使用——更适合开发者学习 MCP 如何集成第三方服务。

平台与服务
82.9k

by netdata

热门

io.github.netdata/mcp-server 是让 AI 助手实时监控服务器指标和日志的 MCP 服务器。

这个工具解决了运维人员需要手动检查系统状态的痛点,最适合 DevOps 团队让 Claude 自动分析性能数据。不过,它依赖 NetData 的现有部署,如果你没用过这个监控平台,得先花时间配置。

平台与服务
78.3k

by d4vinci

热门

Scrapling MCP Server 是专为现代网页设计的智能爬虫工具,支持绕过 Cloudflare 等反爬机制。

这个工具解决了爬取动态网页和反爬网站时的头疼问题,特别适合需要批量采集电商价格或新闻数据的开发者。不过,它依赖外部浏览器引擎,资源消耗较大,不适合轻量级任务。

平台与服务
34.5k

评论