> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Airbnb MCP agent

> Search Airbnb listings with an Agno agent connected to the Airbnb MCP server over stdio.

Connect an agent to the [Airbnb MCP server](https://github.com/openbnb-org/mcp-server-airbnb) and search for current listings.

```python airbnb.py theme={null}
"""Search for Airbnb listings with MCP and Gemini 3.1 Pro Preview.

Run: `uv pip install google-genai "agno[mcp]"` to install the dependencies.
"""

import asyncio
from datetime import date, timedelta

from agno.agent import Agent
from agno.models.google import Gemini
from agno.tools.mcp import MCPTools
from agno.utils.pprint import apprint_run_response


async def run_agent(message: str) -> None:
    async with MCPTools(
        "npx -y @openbnb/mcp-server-airbnb --ignore-robots-txt"
    ) as mcp_tools:
        agent = Agent(
            model=Gemini(id="gemini-3.1-pro-preview"),
            tools=[mcp_tools],
            markdown=True,
        )

        response_stream = agent.arun(message, stream=True)
        await apprint_run_response(response_stream, markdown=True)


if __name__ == "__main__":
    check_in = date.today() + timedelta(days=30)
    check_out = check_in + timedelta(days=3)
    asyncio.run(
        run_agent(
            f"What listings are available in San Francisco for 2 people "
            f"from {check_in.isoformat()} to {check_out.isoformat()}?"
        )
    )
```

## Run the Example

<Snippet file="create-venv-step.mdx" />

**1. Install Node.js**

Install [Node.js](https://nodejs.org/en/download), then verify that `node` and `npx` are available:

```bash theme={null}
node --version
npx --version
```

**2. Install Python dependencies**

```bash theme={null}
uv pip install -U google-genai "agno[mcp]"
```

**3. Export your Google API key**

```bash theme={null}
export GOOGLE_API_KEY="your_google_api_key_here"
```

**4. Run the example**

Save the code above as `airbnb.py`, then run:

```bash theme={null}
python airbnb.py
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.