MCP ExplorerExplorer

Mcp Claude Airbnb

@thoughtnerveon a year ago
1 MIT
FreeCommunity
AI Systems
Arbmb MCP client implementation with Claude

Overview

What is Mcp Claude Airbnb

mcp-claude-airbnb is a client implementation that utilizes Claude 3.7 Sonnet to programmatically search for Airbnb listings. It enables users to find accommodations based on their specific queries without the need for extensive system prompts.

Use cases

Use cases for mcp-claude-airbnb include automated search for vacation rentals, personalized accommodation recommendations based on user preferences, and integration into travel planning applications to streamline booking processes.

How to use

To use mcp-claude-airbnb, install the required dependencies, create a .env file with your Anthropic API key, and run the provided script. The script initializes a connection to the Airbnb MCP Server and allows Claude to search for listings based on user inputs.

Key features

Key features include the ability to use Claude 3.7 Sonnet with tool-calling capabilities, connect to the Airbnb MCP Server for listing searches, support for various search parameters (location, check-in/check-out dates, number of guests), rate limiting to prevent API throttling, and robust error handling.

Where to use

mcp-claude-airbnb can be used in travel and hospitality sectors, specifically for applications related to accommodation booking and search functionalities on platforms like Airbnb.

Content

Claude Tools for Airbnb Search

This project demonstrates how to use Claude 3.7 Sonnet with tools to search for Airbnb listings programmatically. Claude naturally uses the provided tools to search for accommodations based on user queries without requiring extensive system prompts.

Features

  • Uses Claude 3.7 Sonnet with tool-calling capabilities
  • Connects to the Airbnb MCP Server for listing searches
  • Supports searching for accommodations with parameters like:
    • Location
    • Check-in/check-out dates
    • Number of guests
  • Rate limiting to prevent API throttling
  • Error handling for robust operation

How It Works

  1. The script initializes a connection to the Airbnb MCP Server
  2. It provides two tools to Claude:
    • airbnb_search: Searches for listings based on location, dates, and guest count
    • airbnb_listing_details: Gets detailed information about a specific listing
  3. Claude naturally selects and uses the appropriate tool based on the user’s query
  4. Results are formatted and presented in a user-friendly way

Example

When prompted with “I want to book an apartment in Paris for 2 nights from April 15 to April 17, 2025 for 2 adults”, Claude:

  1. Uses the airbnb_search tool with the correct parameters
  2. Processes the search results
  3. Formats a response with apartment options, including:
    • Prices
    • Ratings
    • Amenities
    • Direct booking links

Setup

  1. Install dependencies:

    pip install anthropic python-dotenv
    npm install -g @openbnb/mcp-server-airbnb
    
  2. Create a .env file with your Anthropic API key:

    ANTHROPIC_API_KEY=your_api_key_here
    
  3. Run the script:

    python simple_mcp.py
    

Requirements

  • Python 3.9+
  • Anthropic API key with Claude 3.7 Sonnet access
  • Node.js (for the Airbnb MCP Server)

License

MIT

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers