aigohotel-mcp
v1.1.0
Published
MCP server for AIGOHOTEL hotel search, detail and tags APIs
Maintainers
Readme
AigoHotel MCP Server (NPM Version)
AIGOHOTEL 酒店 MCP Server(NPM 版本)。
当前版本与 aigohotel-mcp 主仓对齐,提供以下 3 个工具:
searchHotels:按地点 + 结构化条件搜索酒店候选getHotelDetail:查询单个酒店实时房型与价格明细getHotelSearchTags:获取酒店搜索标签元数据(AI Cache)
工具参数概览
searchHotels
必填参数:
originQuery(string)place(string)placeType(string: 城市/机场/景点/火车站/地铁站/酒店/区县/详细地址)
可选参数:
checkInParam(object):adultCount,checkInDate,stayNightscountryCode(string)filterOptions(object):distanceInMeter,starRatingshotelTags(object):preferredTags,requiredTags,excludedTags,preferredBrands,maxPricePerNight,minRoomSizesize(number, 默认 5)
getHotelDetail
可选参数(hotelId 和 name 至少提供一个):
hotelId(number)name(string)dateParam(object):checkInDate,checkOutDateoccupancyParam(object):adultCount,childCount,childAgeDetails,roomCountlocaleParam(object):countryCode,currency
getHotelSearchTags
- 无参数
快速开始
npm install
npm run build启动方式(NPX)
npx -y aigohotel-mcp默认通过 stdio 运行(无本地 HTTP 端口)。
MCP 客户端配置(npx + stdio)
{
"mcpServers": {
"aigohotel": {
"command": "npx",
"args": ["-y", "aigohotel-mcp"],
"env": {
"AIGOHOTEL_API_KEY": "mcp_your_key"
}
}
}
}鉴权
NPM 版本(stdio)通过环境变量读取 API Key。
AIGOHOTEL_API_KEYAIGOHOTEL_SECRET_KEY
相关链接
- API Key 申请:https://mcp.agentichotel.cn/apply
- Model Context Protocol:https://modelcontextprotocol.io/
