community_usecase/Airbnb-MCP/README.md
This example demonstrates how to use the CAMEL-AI OWL framework and MCP (Model Context Protocol) to search for Airbnb listings using a custom MCP server (@openbnb/mcp-server-airbnb). Agents in the OWL framework coordinate to perform tool-augmented travel research in a structured, automated way.
βFind me the best Airbnb in Gurugram with a check-in date of 2025-06-01 and a check-out date of 2025-06-07 for 2 adults. Return the top 5 listings with their names, prices, and locations.β
Agents leverage an MCP server to execute real-time Airbnb queries and return formatted results.
git clone https://github.com/camel-ai/owl
cd owl
pip install -r requirements.txt
In your mcp_servers_config.json, add the following:
{
"mcpServers": {
"airbnb": {
"command": "npx",
"args": [
"-y",
"@openbnb/mcp-server-airbnb",
"--ignore-robots-txt"
]
}
}
}
π οΈ You will need Node.js and NPM installed. Run
npxwill automatically fetch the Airbnb MCP server.
python community_usecase/Airbnb_MCP
You can also customize the prompt inside the script itself. Edit the default_task section of Airbnb_MCP.py like this:
# Replace this line:
default_task = (
"here you need to add the task"
)
# Example:
default_task = (
"Find me the best Airbnb in Gurugram with a check-in date of 2025-06-01 "
"and a check-out date of 2025-06-07 for 2 adults. Return the top 5 listings with their names, "
"prices, and locations."
)
This allows agents to work from your hardcoded task without passing anything via command line.
@openbnb/mcp-server-airbnb.content_curator and a research_assistant.