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 与我联系。
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -licenseNot 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.82MIT
- AlicenseBqualityBmaintenanceA read-only hospitality-focused MCP server that enables users to retrieve reservation details, listing briefs, and guest conversation contexts from Hostaway. It simplifies hospitality workflows by providing specialized tools for searching threads and viewing reservation data through natural language interfaces.623MIT
- FlicenseNot gradedqualityDmaintenanceConnects Claude to the Hospitable API v2 for managing vacation rental properties, reservations, guest messages, and reviews.
Related MCP Connectors
Vacation rental discovery, direct booking, and property protection for AI agents.
Manage your Hostex vacation rentals—properties, reservations, availability, listings, and guest me…
Gateway between LLM agents and world data through eight tools and a bundled endpoint catalog.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/prosperkartik/hostaway-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server