Skip to main content
Glama
olx-aluguel-mcp

olx-aluguel-mcp

by ErgoCodes

olx-aluguel-mcp

An MCP server that lets Claude search rentals on OLX Brazil and flag likely rental scams before you send anyone money.

Why I built it

When I moved to Brazil I had to find an apartment in a city I didn't know, in a language I was still learning, on a marketplace where the golpe do aluguel (rental scam) is common. Every listing hid a different set of costs, and I couldn't tell a private owner from an agency, or a real ad from a fake one.

So I turned the checklist I was doing by hand into a tool.

Related MCP server: onehome-mcp

What it tells you about each listing

  • Every cost: rent, condo fee, IPTU, the real monthly total, "gross" vs. "net" rent (punctuality discounts), fire insurance, FCI, bank fees, deposit (caução), seguro-fiança, contract fees, and which utilities are included.

  • Owner or agency? With evidence: CRECI license, company name, commercial plan, ZAP feed.

  • Contacts found in the text: phone numbers (including numbers spelled out in words), emails, links, Instagram, WhatsApp, and whether OLX verified the advertiser's phone.

  • Address: neighborhood, CEP and the street it maps to (via ViaCEP), places mentioned in the description, and an approximate map link.

  • Advertiser profile: account age, OLX identity/phone/email verification, reputation, advertiser's city, last activity.

  • Scam risk score (0–100): price vs. the local market, brand-new account, advertiser in another state, typical scam phrases (pay before visiting, owner abroad, keys by mail, urgency, moving the chat off OLX), too few photos, and more. It also gives you questions to ask the advertiser and a safety checklist.

Tools

Tool

What it does

olx_buscar_alquileres

Search with filters (location, type, price, bedrooms, bathrooms, parking, m², private/professional, furnished, pets, text, sort, page). Returns monthly total, R$/m² and quick alerts. With analizar_top=N it deep-analyzes the first N results.

olx_ver_anuncio

Full breakdown of a single listing (URL or ID).

olx_analizar_riesgo

Same as above, plus a price comparison against similar listings in the area.

olx_comparar_anuncios

Side-by-side table of 2–10 listings, sorted by total monthly cost.

olx_precios_mercado

Median, P25–P75 range and R$/m² for an area.

The location is the part of the OLX URL after /imoveis/aluguel/, for example:

  • estado-pr/regiao-de-curitiba-e-paranagua → Curitiba and region

  • estado-pr/regiao-de-curitiba-e-paranagua/boa-vista → Boa Vista district

  • estado-pr/regiao-de-curitiba-e-paranagua/boa-vista/taruma → Tarumã neighborhood

Tip: filter on olx.com.br however you like and pass that URL to olx_buscar_alquileres in the url parameter.

How it works

  • No official API, so it reads the same public pages you see in the browser. Requests go through curl_cffi (presenting as Chrome) with a 1.5 s delay between calls.

  • Fallback to a real browser: if Cloudflare asks for verification, it switches to Playwright + Chromium automatically.

  • The score is explainable, not a black box: every point comes from a named red or green flag, and the response lists them, so you can see why a listing looks risky.

  • Tests against real saved pages: tests/fixtures holds an agency listing, a scam listing and a search page. When OLX changes its HTML, the tests break before the tool silently returns wrong data.

Quick install (Linux)

Register the run.sh launcher in Claude Desktop. On first run it installs its dependencies into .venv and logs to install.log:

{
  "mcpServers": {
    "olx-aluguel": {
      "command": "bash",
      "args": ["/PATH/TO/olx-aluguel-mcp/run.sh"]
    }
  }
}

Manual install

Requirements: Python 3.10+ and Claude Desktop.

  1. Put the folder somewhere, e.g. C:\mcp\olx-aluguel-mcp (Windows) or ~/mcp/olx-aluguel-mcp (Linux/Mac).

  2. Install it from that folder:

    python -m pip install -e .

    (Use python3 on Linux/Mac if needed. If your system requires a virtual environment: python -m venv .venv, then .venv\Scripts\pip install -e . on Windows or .venv/bin/pip install -e . on Linux/Mac.)

  3. Check that it starts (it will wait for input; stop it with Ctrl+C):

    python -m olx_aluguel_mcp
  4. In Claude Desktop go to Settings → Developer → Edit config and add the server to claude_desktop_config.json:

    Windows

    {
      "mcpServers": {
        "olx-aluguel": {
          "command": "C:\\mcp\\olx-aluguel-mcp\\.venv\\Scripts\\python.exe",
          "args": ["-m", "olx_aluguel_mcp"]
        }
      }
    }

    Linux / Mac

    {
      "mcpServers": {
        "olx-aluguel": {
          "command": "/PATH/TO/olx-aluguel-mcp/.venv/bin/python",
          "args": ["-m", "olx_aluguel_mcp"]
        }
      }
    }

    Without a virtual environment, use the path to your Python (where python on Windows, which python3 on Linux/Mac).

  5. Restart Claude Desktop. The olx_* tools should appear in the tools menu.

If OLX blocks requests

Install the real-browser fallback:

python -m pip install playwright
python -m playwright install chromium

It kicks in automatically when a verification page appears. To always use it, add "env": {"OLX_USE_BROWSER": "1"} to the server config.

Example prompts

  • "Find 1–2 bedroom apartments in Curitiba up to R$ 2,000, private owners only, and analyze the top 5."

  • "Analyze this listing: https://pr.olx.com.br/regiao-de-curitiba-e-paranagua/imoveis/…"

  • "Compare these 3 listings and tell me which one is cheapest per month with every fee included."

  • "What does a 2-bedroom apartment cost on average in Tarumã?"

The tool's output is in Spanish, its author's first language.

Limitations and responsible use

  • The scam score is a heuristic: it helps you prioritize and ask the right questions. It doesn't prove a listing is safe or fake. Never pay anything before visiting the property and checking the matrícula.

  • The advertiser's full phone number is not extracted. OLX only shows it after clicking "Ver telefone", and this server respects that.

  • OLX addresses are usually approximate (the CEP's street segment) unless the advertiser publishes the full address.

  • It depends on OLX's HTML: if the site changes, parsers.py needs updating. Run python -m pytest tests to catch it.

  • Personal use, low volume. OLX's Terms of Use restrict automated extraction. Don't use it to harvest data at scale or republish it.

License

MIT

Available Tools

5 tools
olx_analizar_riesgoA
Read-onlyIdempotent

Evalúa el riesgo de estafa ('golpe do aluguel') de un anuncio: precio vs. mercado de la zona, antigüedad y verificaciones de la cuenta, frases típicas de estafa (pago antes de visitar, dueño en el exterior, llaves por correo...), contactos fuera de OLX, fotos, coherencia de ubicación. Devuelve puntaje 0-100, señales, preguntas para el anunciante y checklist de seguridad.

Inputs: anuncio (required), formato, comparar_mercado. Returns: result

olx_buscar_alquileresA
Read-onlyIdempotent

Busca alquileres en OLX Brasil con filtros y devuelve precio, condominio, IPTU, total mensual, m², R$/m², tipo de anunciante (particular vs inmobiliaria) y alertas rápidas. Con analizar_top>0 además calcula el riesgo de fraude de los primeros resultados.

Inputs: url, tipo, banos, texto, +16 more. Returns: result

olx_comparar_anunciosA
Read-onlyIdempotent

Compara varios anuncios lado a lado: costo mensual total, m², R$/m², pagos extra, garantías, tipo de anunciante y riesgo de fraude.

Inputs: anuncios (required), formato. Returns: result

olx_precios_mercadoA
Read-onlyIdempotent

Precio de referencia de alquiler en una zona: mediana, rango P25–P75, total mensual con condominio+IPTU y R$/m². Útil para saber si un anuncio está caro o sospechosamente barato.

Inputs: tipo, paginas, ubicacion, habitaciones. Returns: result

olx_ver_anuncioA
Read-onlyIdempotent

Detalle completo de un anuncio: todos los pagos (alquiler, condominio, IPTU, bruto/líquido, seguros, garantías, tasas mencionadas), si es directo con el dueño, contactos que aparecen, dirección/CEP, perfil del anunciante y riesgo de fraude. No compara con el mercado (usa olx_analizar_riesgo para eso).

Inputs: anuncio (required), formato. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 5 tools

    Disambiguation4/5

    Tools have distinct core actions (search, detail, risk, compare, market prices), but risk assessment appears in multiple tools (buscar optional, ver included, analizar dedicated, comparar includes it), creating some overlap. Descriptions provide guidance, but an agent might still hesitate between analizar_riesgo and ver_anuncio.

    Naming Consistency4/5

    All tools use snake_case with the olx_ prefix, and four follow a verb_noun pattern (buscar_alquileres, ver_anuncio, analizar_riesgo, comparar_anuncios). However, precios_mercado is noun_noun, a minor deviation.

    Tool Count5/5

    5 tools is well-scoped for a rental search and analysis server, covering search, detail, risk, comparison, and market reference without redundancy.

    Completeness5/5

    The surface covers the core lifecycle for analyzing OLX rentals: search, view details, assess risk, compare listings, and get market prices. No obvious missing operation for a read-only analysis tool.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      B
      quality
      C
      maintenance
      Exposes Leboncoin classified ads to Claude, allowing search with filters and full ad details. Includes rate limiting and optional residential proxy support.
      2
      1
      -
    • A
      license
      A
      quality
      A
      maintenance
      Enables searching curated OneHome property listings, fetching property details and photos, comparing homes, and running mortgage calculations from within Claude.
      21
      692 npm
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables Claude to search Leboncoin classified ads with multi-criteria queries, pagination, CSV/JSON export, ad details, and seller profiles.
      3
      4
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables searching vehicle listings on Brazil's largest automotive marketplace, with full ad details (specs, photos, seller) and average market price for a model.
      MIT