New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@didaai/hotelbooking

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@didaai/hotelbooking

Hotel Booking MCP Server (国内中文版)

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
22
-56.86%
Maintainers
1
Weekly downloads
 
Created
Source

Dida Hotel Booking MCP Server (国内中文版)

这是一个用于对接 Dida 酒店预订 API(国内版)的 MCP (Model Context Protocol) 服务端。本服务能够让 Claude、Cursor 等支持 MCP 的 AI 客户端在全球范围内进行酒店搜索、获取酒店详情、以及拉取搜索标签。

安装与配置

本服务依赖 Dida 酒店服务提供的 API Key。

在运行此服务器之前,你必须配置 DIDA_API_KEY 环境变量。

快速使用

通过 npx 运行

DIDA_API_KEY=你的API密钥 npx -y @didaai/hotelbooking

Claude Desktop 客户端配置

将以下内容添加到你的 claude_desktop_config.json 配置文件中:

{
  "mcpServers": {
    "dida-hotel-cn": {
      "command": "npx",
      "args": ["-y", "@didaai/hotelbooking"],
      "env": {
        "DIDA_API_KEY": "你的API密钥"
      }
    }
  }
}

Cursor 客户端配置

在 Cursor 的 MCP 设置界面中添加:

  • Type: command
  • Command: npx -y @didaai/hotelbooking
  • 添加一个环境变量,Key 为 DIDA_API_KEY,Value 填入你的真实密钥。

提供的核心工具 (Tools)

  • searchHotels: 根据地点、日期和过滤条件进行酒店搜索和智能推荐。
  • getHotelDetail: 获取指定酒店的详细信息、实时房型、价格与取消政策。
  • getHotelSearchTags: 拉取用于酒店筛选的结构化搜索标签体系。

FAQs

Package last updated on 20 Jul 2026

Related posts