Home
Login
openbnb-org/mcp-server-airbnb

MCP server for searching Airbnb listings and retrieving detailed information

MITJavaScript 194openbnb-org Last Updated: 2025-04-24
https://github.com/openbnb-org/mcp-server-airbnb

MCP Server Airbnb Project Details

Project Overview

MCP Server Airbnb is an MCP (Model Context Protocol) server designed specifically for Claude Desktop, aiming to provide users with powerful Airbnb listing search and detail retrieval capabilities. Developed by the OpenBnB organization and licensed under the MIT open-source license, this project allows users to directly search and obtain Airbnb listing information through the Claude intelligent assistant, greatly simplifying the travel planning process.

Core Features

🔍 Listing Search (airbnb_search)

Main Purpose: Search for Airbnb listings based on specified criteria.

Required Parameters:

  • location (String) - Search location

Optional Parameters:

  • placeId (String) - Location ID for precise positioning
  • checkin (String) - Check-in date, format: YYYY-MM-DD
  • checkout (String) - Check-out date, format: YYYY-MM-DD
  • adults (Number) - Number of adults
  • children (Number) - Number of children
  • infants (Number) - Number of infants
  • pets (Number) - Number of pets
  • minPrice (Number) - Minimum price filter
  • maxPrice (Number) - Maximum price filter
  • cursor (String) - Pagination cursor
  • ignoreRobotsText (Boolean) - Whether to ignore robots.txt rules

Return Result: An array of listings containing detailed information such as listing name, price, and location.

🏠 Listing Details (airbnb_listing_details)

Main Purpose: Retrieve detailed information for a specific listing.

Required Parameters:

  • id (String) - Unique identifier of the listing

Optional Parameters:

  • checkin (String) - Check-in date, format: YYYY-MM-DD
  • checkout (String) - Check-out date, format: YYYY-MM-DD
  • adults (Number) - Number of adults
  • children (Number) - Number of children
  • infants (Number) - Number of infants
  • pets (Number) - Number of pets
  • ignoreRobotsText (Boolean) - Whether to ignore robots.txt rules

Return Result: Detailed listing information, including listing description, host information, amenities list, pricing details, etc.

Technical Features

🛡️ Compliance Design

  • Follows robots.txt rules: Strictly adheres to Airbnb's robots.txt regulations by default.
  • Optional Ignore Mode: Provides the --ignore-robots-txt parameter for specific needs.

🔧 Technical Implementation

  • HTML Parsing: Uses the Cheerio library for efficient HTML content parsing.
  • No API Key Required: Obtains data directly through web scraping, without the need to apply for an official API.
  • Structured Data: Returns standardized JSON format data.
  • Optimized Performance: Reduces context load through data flattening and filtering.

📦 Easy Deployment

  • NPX Support: Supports direct execution via npx, without local installation.
  • One-Click Installation: Supports automatic installation and configuration via the Smithery tool.

Installation and Configuration

Prerequisites

Ensure that Node.js is installed on the system.

Claude Desktop Configuration

  1. Go to Settings: Settings > Developer > Edit Config

  2. Basic Configuration (Following robots.txt):

{
  "mcpServers": {
    "airbnb": {
      "command": "npx",
      "args": [
        "-y",
        "@openbnb/mcp-server-airbnb"
      ]
    }
  }
}
  1. Ignore robots.txt Configuration:
{
  "mcpServers": {
    "airbnb": {
      "command": "npx",
      "args": [
        "-y",
        "@openbnb/mcp-server-airbnb",
        "--ignore-robots-txt"
      ]
    }
  }
}
  1. Restart Claude Desktop to complete the configuration.

Automated Installation (Smithery)

npx -y @smithery/cli install @openbnb-org/mcp-server-airbnb --client claude

Development Environment Configuration

npm install
npm run build

Use Cases

🌍 Travel Planning

  • Quickly search for available listings in a destination.
  • Compare price differences for different dates.
  • Filter suitable accommodations based on budget.

🏡 Listing Analysis

  • Obtain detailed amenity information for listings.
  • Understand host reviews and history.
  • Analyze listing pricing strategies.

🤖 Intelligent Assistant Integration

  • Seamless integration with Claude, providing natural language interaction.
  • Automated data processing and analysis.
  • Reduce manual search time costs.

Project Advantages

✅ Free and Open Source

  • MIT license, completely open source and free.
  • Community-driven continuous improvement.
  • No usage restrictions or hidden fees.

✅ Easy to Use

  • No complex API authentication process required.
  • Simple configuration to get started.
  • Native integration with Claude Desktop.

✅ Feature Complete

  • Supports complex combinations of search criteria.
  • Provides detailed listing information.
  • Flexible parameter configuration options.

✅ Technically Reliable

  • Based on mature web parsing technology.
  • Structured data return format.
  • Good error handling mechanism.

Legal Disclaimer

This project is licensed under the MIT License. Please note that:

  • Airbnb is a registered trademark of Airbnb, Inc.
  • OpenBnB is not affiliated with Airbnb, Inc. or its subsidiaries in any way.
  • Please comply with relevant laws and regulations and website terms of use when using this tool.

Summary

MCP Server Airbnb is a powerful and easy-to-use open-source tool that provides Claude Desktop users with convenient Airbnb listing search and query capabilities. With a simple configuration, users can directly search for listings in Claude and obtain detailed listing information, greatly improving the efficiency of travel planning.

This project embodies the powerful potential of the MCP protocol in modern software development, demonstrating how to seamlessly integrate external services into AI assistants through standardized interfaces, creating a more intelligent and convenient user experience.

Whether you are an individual traveler, a travel planner, or a professional who needs listing data analysis, this tool can provide valuable assistance and is an indispensable component of the modern travel technology stack.