hostaway-mcp
hostaway-mcp
一个开源的 Model Context Protocol (MCP) 服务器,将 Claude Desktop、Claude Code 和 Cursor 等 AI 助手连接到 Hostaway 物业管理 API。可以使用自然语言查询预订、房源、日历、财务和客人对话。
快速开始
从 Hostaway 控制台的 Settings > API 获取你的 Account ID 和 Client Secret
确保已安装 Node.js 18+
选择下方的 AI 客户端并添加配置 — 无需克隆或构建
Related MCP server: Lodgify MCP Server
设置
Claude Desktop(Mac 和 Windows)
打开你的 Claude Desktop 配置文件:
Mac:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
添加以下内容(如果你已配置了其他服务器,请与现有的 mcpServers 合并):
{
"mcpServers": {
"hostaway": {
"command": "npx",
"args": ["-y", "@matt-long-plux/hostaway-mcp"],
"env": {
"HOSTAWAY_ACCOUNT_ID": "YOUR_ACCOUNT_ID",
"HOSTAWAY_CLIENT_SECRET": "YOUR_CLIENT_SECRET"
}
}
}
}重启 Claude Desktop 即可使用。
Claude Code
选项 1 — CLI 命令(最快):
claude mcp add hostaway \
-e HOSTAWAY_ACCOUNT_ID=YOUR_ACCOUNT_ID \
-e HOSTAWAY_CLIENT_SECRET=YOUR_CLIENT_SECRET \
-- npx -y @matt-long-plux/hostaway-mcp选项 2 — 项目根目录下的 .mcp.json(适合与团队成员共享):
{
"mcpServers": {
"hostaway": {
"command": "npx",
"args": ["-y", "@matt-long-plux/hostaway-mcp"],
"env": {
"HOSTAWAY_ACCOUNT_ID": "YOUR_ACCOUNT_ID",
"HOSTAWAY_CLIENT_SECRET": "YOUR_CLIENT_SECRET"
}
}
}
}Cursor
将相同的配置添加到项目的 .cursor/mcp.json,或前往 Cursor Settings > MCP Servers > Add Server 并粘贴:
{
"mcpServers": {
"hostaway": {
"command": "npx",
"args": ["-y", "@matt-long-plux/hostaway-mcp"],
"env": {
"HOSTAWAY_ACCOUNT_ID": "YOUR_ACCOUNT_ID",
"HOSTAWAY_CLIENT_SECRET": "YOUR_CLIENT_SECRET"
}
}
}
}更新
如果你通过 npx 安装了之前的版本,系统可能缓存了旧副本。要更新到最新版本:
npx clear-npx-cache然后重启你的 AI 客户端(Claude Desktop、Cursor 等)。下次启动时将自动拉取最新版本。
或者,你可以在配置中固定 @latest,以便每次重启时始终获取最新版本:
"args": ["-y", "@matt-long-plux/hostaway-mcp@latest"]工具参考
预订
工具 | 描述 | 关键参数 |
| 使用筛选条件列出预订 |
|
| 获取完整的预订详情 |
|
| 更新内部房东备注 |
|
| 按房源分组的当前和即将到来的预订 | 无 |
房源
工具 | 描述 | 关键参数 |
| 所有带元数据的活跃房源 |
|
| 完整的房源详情 |
|
| 自定义字段值,以名称-值映射形式返回 |
|
日历
工具 | 描述 | 关键参数 |
| 可用性和定价日历 |
|
| 查找预订之间的短时空档 |
|
| 在日历上屏蔽日期 |
|
| 移除日历屏蔽 |
|
财务
工具 | 描述 | 关键参数 |
| 预订的财务明细 |
|
| 跨房源的汇总收入 |
|
| 用于对账的付款报告 |
|
对话
工具 | 描述 | 关键参数 |
| 最近的客人对话 |
|
| 完整的消息线程 |
|
| 向客人发送消息 |
|
只读模式
设置 HOSTAWAY_READ_ONLY=true 以禁用所有写入/变更工具。启用后,以下工具将返回错误而不是执行:
update_reservation_host_notecreate_calendar_blockdelete_calendar_blocksend_message
这对于共享账户或希望防止意外修改的情况非常有用。
环境变量
变量 | 必填 | 描述 |
| 是 | 你的 Hostaway 账户 ID(整数) |
| 是 | 你的 Hostaway API 客户端密钥 |
| 否 | 设置为 |
| 否 | 令牌缓存 TTL(秒)(默认:240) |
示例查询
连接后,尝试向 Claude 提问:
"显示所有即将到来的预订"
"我的房源下个月的入住率怎么样?"
"查找未来 90 天所有房源的间隔空档"
"我上个月赚了多少收入?"
"显示未读的客人消息"
"预订 12345 的财务详情是什么?"
"生成 3 月份 Airbnb 预订的付款报告"
贡献
欢迎提供反馈和拉取请求!请在 GitHub 上提交 issue,或发送邮件至 matt@plux.com。
许可证
MIT
This server cannot be installed
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.651MIT
- AlicenseAqualityCmaintenanceConnects AI assistants to the Hostaway property management API via 10 read-only tools covering listings, reservations, calendars, guest conversations, and owner statements.10243MIT
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…
Airbnb stays by location and dates, and full listing details, as structured JSON.
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/mattlong-plux/hostaway-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server