olx-aluguel-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@olx-aluguel-mcp Buscar aluguel em Curitiba, 2 quartos, até R$ 2500, analisar risco"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 |
| 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 |
| Full breakdown of a single listing (URL or ID). |
| Same as above, plus a price comparison against similar listings in the area. |
| Side-by-side table of 2–10 listings, sorted by total monthly cost. |
| 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 regionestado-pr/regiao-de-curitiba-e-paranagua/boa-vista→ Boa Vista districtestado-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/fixturesholds 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.
Put the folder somewhere, e.g.
C:\mcp\olx-aluguel-mcp(Windows) or~/mcp/olx-aluguel-mcp(Linux/Mac).Install it from that folder:
python -m pip install -e .(Use
python3on 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.)Check that it starts (it will wait for input; stop it with Ctrl+C):
python -m olx_aluguel_mcpIn 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 pythonon Windows,which python3on Linux/Mac).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 chromiumIt 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.pyneeds updating. Runpython -m pytest teststo 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 toolsolx_analizar_riesgoARead-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_alquileresARead-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_anunciosARead-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_mercadoARead-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_anuncioARead-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
Scored across 5 tools
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.
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.
5 tools is well-scoped for a rental search and analysis server, covering search, detail, risk, comparison, and market reference without redundancy.
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
Related MCP Connectors
Search Brazilian real estate, simulate financing, qualify leads, schedule visits.
People and property search for Claude and ChatGPT. Phones, emails, addresses, relatives, properties.
Property management AI: work orders, vendors, appliances, and triage for Claude and ChatGPT.
Brazil property listings for sale/rent from 4 major portals, one schema, optional USD (PTAX) price.
Related MCP Servers
- FlicenseBqualityCmaintenanceExposes Leboncoin classified ads to Claude, allowing search with filters and full ad details. Includes rate limiting and optional residential proxy support.21-
- AlicenseAqualityAmaintenanceEnables searching curated OneHome property listings, fetching property details and photos, comparing homes, and running mortgage calculations from within Claude.21692 npm1MIT
- AlicenseAqualityCmaintenanceEnables Claude to search Leboncoin classified ads with multi-criteria queries, pagination, CSV/JSON export, ad details, and seller profiles.34MIT
- AlicenseNot gradedqualityDmaintenanceEnables searching vehicle listings on Brazil's largest automotive marketplace, with full ad details (specs, photos, seller) and average market price for a model.MIT