एयरबीएनबी खोज और लिस्टिंग डेस्कटॉप एक्सटेंशन (डीएक्सटी)
सारांश
mcp-server-airbnb क्या है?
mcp-server-airbnb एक सार्वजनिक रिपॉजिटरी है जो GitHub पर ### openbnb-org संगठन द्वारा होस्ट की गई है। यह प्रोजेक्ट एक सर्वर-साइड कार्यान्वयन के रूप में कार्य करता है जो Airbnb जैसी कार्यक्षमताओं को सुविधाजनक बनाने के लिए डिज़ाइन किया गया है, जिससे डेवलपर्स किराए की लिस्टिंग बनाने और प्रबंधित करने, बुकिंग को संभालने, और विभिन्न सुविधाओं को एकीकृत करने की अनुमति मिलती है जो मेज़बानों और मेहमानों दोनों के लिए उपयोगकर्ता अनुभव को बढ़ाती हैं।
mcp-server-airbnb की विशेषताएँ
- उपयोगकर्ता प्रबंधन: सिस्टम उपयोगकर्ता खातों, जिसमें मेज़बान और मेहमान शामिल हैं, के निर्माण और प्रबंधन की अनुमति देता है।
- लिस्टिंग प्रबंधन: उपयोगकर्ता विस्तृत विवरण, चित्र और मूल्य निर्धारण के साथ संपत्ति लिस्टिंग बना, अपडेट और हटा सकते हैं।
- बुकिंग सिस्टम: सर्वर बुकिंग अनुरोधों, उपलब्धता जांच और भुगतान प्रसंस्करण को संभालता है।
- सूचनाएँ: उपयोगकर्ताओं को बुकिंग पुष्टि, रद्दीकरण और अन्य महत्वपूर्ण अपडेट के लिए सूचनाएँ प्राप्त होती हैं।
- एपीआई एकीकरण: सर्वर कार्यक्षमता को बढ़ाने के लिए विभिन्न एपीआई के साथ एकीकृत कर सकता है, जैसे कि भुगतान गेटवे और मानचित्र सेवाएँ।
mcp-server-airbnb का उपयोग कैसे करें
-
रिपॉजिटरी क्लोन करें: अपने स्थानीय मशीन पर रिपॉजिटरी को क्लोन करने के लिए निम्नलिखित कमांड का उपयोग करें:
git clone https://github.com/openbnb-org/mcp-server-airbnb.git
-
निर्भरताएँ स्थापित करें: प्रोजेक्ट डायरेक्टरी में जाएँ और आवश्यक निर्भरताएँ स्थापित करें। इसमें आमतौर पर निम्नलिखित कमांड चलाना शामिल होता है:
npm install
-
कॉन्फ़िगरेशन: अपने सेटअप के लिए आवश्यक पर्यावरण चर को कॉन्फ़िगर करें, जिसमें डेटाबेस कनेक्शन और एपीआई कुंजी शामिल हैं।
-
सर्वर चलाएँ: निम्नलिखित कमांड का उपयोग करके सर्वर लॉन्च करें:
npm start
-
एपीआई तक पहुँचें: सर्वर द्वारा प्रदान किए गए एपीआई एंडपॉइंट्स के साथ बातचीत करने के लिए Postman या cURL जैसे उपकरणों का उपयोग करें।
अक्सर पूछे जाने वाले प्रश्न
mcp-server-airbnb में कौन सी तकनीकें उपयोग की गई हैं?
mcp-server-airbnb प्रोजेक्ट आधुनिक वेब तकनीकों का उपयोग करके बनाया गया है, जिसमें सर्वर-साइड लॉजिक के लिए Node.js, राउटिंग के लिए Express.js, और डेटाबेस प्रबंधन के लिए MongoDB शामिल हैं।
मैं प्रोजेक्ट में कैसे योगदान कर सकता हूँ?
योगदान का स्वागत है! आप रिपॉजिटरी को फोर्क कर सकते हैं, अपने परिवर्तन कर सकते हैं, और समीक्षा के लिए एक पुल अनुरोध प्रस्तुत कर सकते हैं। सुनिश्चित करें कि आप रिपॉजिटरी में उल्लिखित योगदान दिशानिर्देशों का पालन करें।
क्या दस्तावेज़ उपलब्ध है?
हाँ, रिपॉजिटरी में एक README फ़ाइल शामिल है जो प्रोजेक्ट का अवलोकन, सेटअप निर्देश, और एपीआई दस्तावेज़ प्रदान करती है। अतिरिक्त दस्तावेज़ 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.
सर्वर कॉन्फ़िगरेशन
{
"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": {}
}
}
}