Airbnb 搜索与列表桌面扩展 (dxt)
概览
什么是 mcp-server-airbnb?
mcp-server-airbnb 是一个由组织 ### openbnb-org 在 GitHub 上托管的公共代码库。该项目作为一个服务器端实现,旨在提供类似 Airbnb 的功能,允许开发者创建和管理租赁列表,处理预订,并集成各种增强主客体验的功能。
mcp-server-airbnb 的特点
- 用户管理:系统允许创建和管理用户账户,包括房东和客人。
- 列表管理:用户可以创建、更新和删除带有详细描述、图片和定价的房产列表。
- 预订系统:服务器处理预订请求、可用性检查和支付处理。
- 通知:用户会收到预订确认、取消和其他重要更新的通知。
- API 集成:服务器可以与各种 API 集成,以增强功能,例如支付网关和地图服务。
如何使用 mcp-server-airbnb
-
克隆代码库:首先使用以下命令将代码库克隆到本地机器:
git clone https://github.com/openbnb-org/mcp-server-airbnb.git
-
安装依赖:导航到项目目录并安装必要的依赖。这通常涉及运行:
npm install
-
配置:根据您的设置配置环境变量,包括数据库连接和 API 密钥。
-
启动服务器:使用以下命令启动服务器:
npm start
-
访问 API:使用 Postman 或 cURL 等工具与服务器提供的 API 端点进行交互。
常见问题解答
mcp-server-airbnb 使用了哪些技术?
mcp-server-airbnb 项目使用现代网络技术构建,包括用于服务器端逻辑的 Node.js、用于路由的 Express.js 和用于数据库管理的 MongoDB。
我如何为该项目做贡献?
欢迎贡献!您可以分叉代码库,进行更改,并提交拉取请求以供审核。请确保遵循代码库中列出的贡献指南。
是否有可用的文档?
是的,代码库包含一个 README 文件,提供项目概述、设置说明和 API 文档。额外的文档可能在 docs
文件夹中可用。
我如何报告问题或错误?
如果您遇到任何问题或错误,请在 GitHub 代码库中打开一个问题。提供问题的详细描述、重现步骤以及任何相关的截图或日志。
我可以将 mcp-server-airbnb 用于商业目的吗?
该项目根据 MIT 许可证授权,允许个人和商业使用。然而,建议您查看许可证条款以确保合规。
详情
Airbnb Search & Listings - Desktop Extension (DXT)
A comprehensive Desktop Extension for searching Airbnb listings with advanced filtering capabilities and detailed property information retrieval. Built as a Model Context Protocol (MCP) server packaged in the Desktop Extension (DXT) format for easy installation and use with compatible AI applications.
Features
🔍 Advanced Search Capabilities
- Location-based search with support for cities, states, and regions
- Google Maps Place ID integration for precise location targeting
- Date filtering with check-in and check-out date support
- Guest configuration including adults, children, infants, and pets
- Price range filtering with minimum and maximum price constraints
- Pagination support for browsing through large result sets
🏠 Detailed Property Information
- Comprehensive listing details including amenities, policies, and highlights
- Location information with coordinates and neighborhood details
- House rules and policies for informed booking decisions
- Property descriptions and key features
- Direct links to Airbnb listings for easy booking
🛡️ Security & Compliance
- Robots.txt compliance with configurable override for testing
- Request timeout management to prevent hanging requests
- Enhanced error handling with detailed logging
- Rate limiting awareness and respectful API usage
- Secure configuration through DXT user settings
Installation
For Claude Desktop
This extension is packaged as a Desktop Extension (DXT) file. To install:
- Download the
.dxt
file from the releases page - Open your compatible AI application (e.g., Claude Desktop)
- Install the extension through the application's extension manager
- Configure the extension settings as needed
For Cursor, etc.
Before starting make sure Node.js is installed on your desktop for npx
to work.
-
Go to: Cursor Settings > Tools & Integrations > New MCP Server
-
Add one the following to your
mcp.json
:{ "mcpServers": { "airbnb": { "command": "npx", "args": [ "-y", "@openbnb/mcp-server-airbnb" ] } } }
To ignore robots.txt for all requests, use this version with
--ignore-robots-txt
args{ "mcpServers": { "airbnb": { "command": "npx", "args": [ "-y", "@openbnb/mcp-server-airbnb", "--ignore-robots-txt" ] } } }
-
Restart.
Configuration
The extension provides the following user-configurable options:
Ignore robots.txt
- Type: Boolean (checkbox)
- Default:
false
- Description: Bypass robots.txt restrictions when making requests to Airbnb
- Recommendation: Keep disabled unless needed for testing purposes
Tools
airbnb_search
Search for Airbnb listings with comprehensive filtering options.
Parameters:
location
(required): Location to search (e.g., "San Francisco, CA")placeId
(optional): Google Maps Place ID (overrides location)checkin
(optional): Check-in date in YYYY-MM-DD formatcheckout
(optional): Check-out date in YYYY-MM-DD formatadults
(optional): Number of adults (default: 1)children
(optional): Number of children (default: 0)infants
(optional): Number of infants (default: 0)pets
(optional): Number of pets (default: 0)minPrice
(optional): Minimum price per nightmaxPrice
(optional): Maximum price per nightcursor
(optional): Pagination cursor for browsing resultsignoreRobotsText
(optional): Override robots.txt for this request
Returns:
- Search results with property details, pricing, and direct links
- Pagination information for browsing additional results
- Search URL for reference
airbnb_listing_details
Get detailed information about a specific Airbnb listing.
Parameters:
id
(required): Airbnb listing IDcheckin
(optional): Check-in date in YYYY-MM-DD formatcheckout
(optional): Check-out date in YYYY-MM-DD formatadults
(optional): Number of adults (default: 1)children
(optional): Number of children (default: 0)infants
(optional): Number of infants (default: 0)pets
(optional): Number of pets (default: 0)ignoreRobotsText
(optional): Override robots.txt for this request
Returns:
- Detailed property information including:
- Location details with coordinates
- Amenities and facilities
- House rules and policies
- Property highlights and descriptions
- Direct link to the listing
Technical Details
Architecture
- Runtime: Node.js 18+
- Protocol: Model Context Protocol (MCP) via stdio transport
- Format: Desktop Extension (DXT) v0.1
- Dependencies: Minimal external dependencies for security and reliability
Error Handling
- Comprehensive error logging with timestamps
- Graceful degradation when Airbnb's page structure changes
- Timeout protection for network requests
- Detailed error messages for troubleshooting
Security Measures
- Robots.txt compliance by default
- Request timeout limits
- Input validation and sanitization
- Secure environment variable handling
- No sensitive data storage
Performance
- Efficient HTML parsing with Cheerio
- Request caching where appropriate
- Minimal memory footprint
- Fast startup and response times
Compatibility
- Platforms: macOS, Windows, Linux
- Node.js: 18.0.0 or higher
- Claude Desktop: 0.10.0 or higher
- Other MCP clients: Compatible with any MCP-supporting application
Development
Building from Source
### Install dependencies
npm install
### Build the project
npm run build
### Watch for changes during development
npm run watch
Testing
The extension can be tested by running the MCP server directly:
### Run with robots.txt compliance (default)
node dist/index.js
### Run with robots.txt ignored (for testing)
node dist/index.js --ignore-robots-txt
Legal and Ethical Considerations
- Respect Airbnb's Terms of Service: This extension is for legitimate research and booking assistance
- Robots.txt Compliance: The extension respects robots.txt by default
- Rate Limiting: Be mindful of request frequency to avoid overwhelming Airbnb's servers
- Data Usage: Only extract publicly available information for legitimate purposes
Support
- Issues: Report bugs and feature requests on GitHub Issues
- Documentation: Additional documentation available in the repository
- Community: Join discussions about MCP and DXT development
License
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please read the contributing guidelines and submit pull requests for any improvements.
Note: This extension is not affiliated with Airbnb, Inc. It is an independent tool designed to help users search and analyze publicly available Airbnb listings.
Server配置
{
"mcpServers": {
"mcp-server-airbnb": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--openbnb-org--mcp-server-airbnb--mcp-server-airbnb",
"node dist/index.js"
],
"env": {}
}
}
}