Hostaway-mcp
@prosperkartik/hostaway-mcp
用于 Hostaway PMS 的模型上下文协议 (MCP) 服务器 — 将 Claude 连接到您的度假租赁运营中。
@prosperkartik/hostaway-mcp 将 Claude(在 Claude Code、Claude Desktop 或任何兼容 MCP 的客户端中)连接到您的 Hostaway 账户 — 包括房源、预订、日历可用性、房客消息和财务数据。由一位自 2022 年起为短期租赁运营商在生产环境中集成 Hostaway、Ciirus 和主要 OTA API(Airbnb、VRBO、Booking.com、Expedia、Marriott)的工程师编写。
Hostaway 是 Hostaway Inc. 的商标。本项目由社区构建,不隶属于 Hostaway,也未得到其认可。
为什么选择此服务器
三个原因:
工具覆盖范围广。 10 个只读工具涵盖房源、预订、日历、对话、财务和健康检查 — 比该领域的其他社区 MCP 服务器覆盖面更广。
更简洁的授权体验。 使用 Hostaway 在 API 设置页面提供的两个凭据(账户 ID + API 密钥),并在内部处理 OAuth 令牌交换。无需执行“先去别处生成承载令牌”的步骤。
由深谙 API 的开发者构建。 作者拥有 3 年以上 Hostaway / Ciirus 集成生产经验,设计决策基于真实的运营商工作流程,而不仅仅是 REST 端点。
Related MCP server: Lodgify MCP Server
工具 (v0.1)
所有 v0.1 工具均为只读。写入操作将在后续版本中推出,并受显式确认保护。
工具 | 描述 |
| 健康检查 — 返回已连接账户的统计数据(房源、预订、对话、业主报表、用户)。请先运行此项以确认设置是否有效。 |
| 列出账户下的房源 |
| 单个房源的详细信息 — 位置、容量、定价、声誉、渠道 URL |
| 列出预订,支持按到达日期范围和状态进行筛选 |
| 单个预订的详细信息 — 房客、日期、定价、渠道 |
| 房源在日期范围内的每日可用性 — 回答“房源 X 在 A 和 B 之间是否有空?” |
| 列出房客消息会话,包含未读状态和最后活动时间 |
| 仅列出包含未读房客消息的会话 — 回答“谁在等待回复?” |
| 单个会话的完整消息历史记录 |
| 列出业主财务报表 |
快速入门
1. 获取您的 Hostaway API 凭据
在您的 Hostaway 运营商账户中 → Settings → Hostaway API。生成 API 凭据。您将获得一个 Account ID 和一个 API Key。
2. 添加到 Claude Code
claude mcp add hostaway \
--scope user \
-e HOSTAWAY_ACCOUNT_ID=your-account-id \
-e HOSTAWAY_API_KEY=your-api-key \
-- npx -y @prosperkartik/hostaway-mcp(或使用 --scope local 仅为当前项目安装。)
3. 或添加到 Claude Desktop
编辑 ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) 并添加:
{
"mcpServers": {
"hostaway": {
"command": "npx",
"args": ["-y", "@prosperkartik/hostaway-mcp"],
"env": {
"HOSTAWAY_ACCOUNT_ID": "your-account-id",
"HOSTAWAY_API_KEY": "your-api-key"
}
}
}
}重启 Claude Desktop。Hostaway 工具将出现在工具选择器中。
4. 尝试使用
向 Claude 询问如下问题:
“运行 whoami 以确认 Hostaway 已连接。”
“列出我的 Hostaway 房源。”
“下周有哪些预订要办理入住?”
“房源 12345 在 5 月 10 日至 17 日期间有空吗?”
“我有未读的房客消息吗?”
“显示我与 [房客] 的对话。”
输出示例(占位数据)
> List my Hostaway listings.
Found 3 listings:
| ID | Name | Location | Beds | Baths | Capacity | Status |
|-------|-------------------|-------------------|------|-------|----------|--------|
| 10001 | Sample Apt 2BR | Sample City, US | 2 | 2 | 4 | active |
| 10002 | Sample Loft | Sample City, US | 1 | 1 | 2 | active |
| 10003 | Sample Beachfront | Sample Beach, US | 3 | 2 | 6 | active |> Is listing 10001 available May 10–17?
# Calendar for listing 10001
8 days returned (2026-05-10 → 2026-05-17) · 6 available, 2 reserved, 0 blocked
| Date | Available | Status | Price | Min stay | Reserved | Blocked | Note |
|------------|-----------|----------|-------|----------|----------|---------|------|
| 2026-05-10 | ✓ | available| 220 | 2 | 0 | 0 | |
| 2026-05-11 | ✓ | available| 220 | 2 | 0 | 0 | |
| 2026-05-12 | ✗ | reserved | 220 | 2 | 1 | 0 | |
| ... |配置
环境变量 | 必需 | 描述 |
| 是 | 您的 Hostaway 账户 ID(充当 OAuth |
| 是 | 您的 Hostaway API 密钥(充当 OAuth |
服务器在启动时将这些凭据交换为承载令牌,并在进程生命周期内将其缓存在内存中。
本地开发
git clone https://github.com/prosperkartik/hostaway-mcp.git
cd hostaway-mcp
npm install
cp .env.example .env # fill in credentials
npm run build
npm start通过 tsx 进行热重载:
npm run dev路线图
[x] v0.1 — 10 个只读工具,涵盖房源、预订、日历、对话、财务和健康检查
[ ] v0.2 — 任务 (
list_tasks,get_task);取消政策;自定义字段读取[ ] v0.3 — 房客付款读取;Webhook 读取
[ ] v0.4+ — 写入操作(发送房客消息、更新日历块、创建任务),受显式
confirm: true保护
安全性
凭据仅存在于环境变量中 — 本服务器从不将其写入磁盘
承载令牌存在于进程内存中;无持久化存储
v0.1 是端到端的只读版本;此代码库中的任何内容都无法修改 Hostaway 数据
对于多房源运营商:Hostaway API 返回的数据范围仅限于您提供凭据的账户,因此无法进行跨账户访问
贡献
欢迎提交 Issue 和 PR。代码库很小且易于阅读;请从 src/index.ts 开始。
许可证
MIT — 参见 LICENSE。
作者
由 Kartik Vats (@prosperkartik) 构建 — Kodeit 的 AI 工程师。拥有三年 PMS / OTA 集成和 LLM 工具开发的生产经验。
如果您是度假租赁运营商或酒店技术团队,并希望获得将 AI 接入运营的帮助,请通过 kodeit.io 或发送电子邮件至 prosperkartik@gmail.com 与我联系。
Available Tools
10 toolsget_conversation_messagesA
Fetch the full message history of a single conversation by id. Returns each message with direction (incoming/outgoing), timestamp, and body.
Inputs: conversation_id (required).
get_listingA
Fetch full details for a single Hostaway listing by id. Returns location, capacity, pricing, reputation, and channel URLs as Markdown sections.
Inputs: listing_id (required).
get_reservationA
Fetch full details for a single Hostaway reservation by id. Returns guest info, dates, pricing breakdown, and channel details.
Inputs: reservation_id (required).
list_calendarA
Get the availability calendar for a single listing across a date range. Returns per-day availability, status, price, minimum stay, and reserved/blocked counts. Use this to answer 'is property X available between dates A and B?'
Inputs: end_date (required), listing_id (required), start_date (required).
list_conversationsA
List guest message threads (conversations) on the connected Hostaway account. Returns a compact Markdown table with conversation id, guest, linked listing/reservation, unread state, and last activity time.
Inputs: limit.
list_listingsA
List properties (listings) on the connected Hostaway account. Returns a compact Markdown table with id, name, location, bedrooms/bathrooms, person capacity, and status.
Inputs: limit.
list_owner_statementsA
List owner financial statements on the connected Hostaway account. Returns a compact table of statement id, name, and status. Useful for revenue and payout reporting.
Inputs: limit.
list_reservationsA
List reservations on the connected Hostaway account. Optional filters by arrival date range and reservation status. Returns a Markdown table with the most useful operational fields.
Inputs: limit, status, arrival_end_date, arrival_start_date.
list_unread_conversationsA
List only guest message threads that have unread messages. The most useful tool for answering 'do I have any guests waiting on a reply?'
Inputs: limit.
whoamiA
Health-check tool — confirms credentials work and returns a quick summary of the connected Hostaway account: counts of listings, reservations, conversations, owner statements, and users. Use this first when setting up to verify the connection.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool targets a distinct resource and action: listings, reservations, calendar, conversations, statements, and account health. Even similar tools like list_conversations and list_unread_conversations are clearly differentiated by the unread filter.
Tools follow a verb_noun pattern consistently (list_listings, get_listing, list_reservations, get_reservation, list_calendar, get_conversation_messages, list_owner_statements, list_conversations). The only minor deviation is 'whoami', which breaks the pattern but is a common convention.
10 tools is well within the ideal range for a property management server. Each tool earns its place by covering a core aspect of the domain without redundancy or bloat.
The tool surface covers read-only operations for listings, reservations, calendar, conversations, and statements, plus a health check. While there are no write/update tools, the server appears intentionally informational; minor gaps like batch availability or reservation creation are not critical for typical queries.
Maintenance
Related MCP Connectors
Manage Hostaway listings, reservations, calendar, guest messages, reviews and tasks.
Ask your AI about your Airbnb and VRBO listings, bookings, guest messages and reviews. Read-only.
Read-only analytics for short-term rentals: bookings, occupancy, forecasts, reviews, owner payouts.
API and MCP for Airbnb, VRBO and Booking.com: messages, reservations, reviews, pricing and more.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to interact with Hostaway's property management platform through standardized MCP tools. Provides access to listings, bookings, guest communication, and availability checking for vacation rental management.-
- AlicenseAqualityDmaintenanceEnables interaction with the Lodgify vacation rental API to manage properties, bookings, and calendar data. It provides tools for retrieving property details, creating or updating bookings, and monitoring rental availability.83MIT
- FlicenseNot gradedqualityDmaintenanceConnects Claude to the Hospitable API v2 for managing vacation rental properties, reservations, guest messages, and reviews.-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to query reservations, listings, calendars, financials, and guest conversations from the Hostaway property management API using natural language.40 npmMIT