MCP server para buscar anúncios públicos da OLX Brasil
Project description
olx-mcp
MCP server para buscar anúncios públicos da OLX Brasil via scraping do __NEXT_DATA__.
Instalação
pip install olx-mcp
Configuração no Claude Desktop
Edite ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"olx-mcp": {
"command": "olx-mcp"
}
}
}
Configuração no Claude Code
claude mcp add olx-mcp olx-mcp
Ferramentas
olx_buscar_anuncios
Busca anúncios com filtros.
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
query |
string | Sim | Termo de busca |
estado |
string | Não | Sigla do estado (sp, rj, go…) |
categoria |
string | Não | Slug de categoria (celulares, imoveis…) |
preco_min |
int | Não | Preço mínimo em reais |
preco_max |
int | Não | Preço máximo em reais |
ordenar |
string | Não | relevance | price | date |
pagina |
int | Não | Página (1–50) |
olx_detalhe_anuncio
Retorna detalhes completos de um anúncio pela URL.
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
url |
string | Sim | URL completa do anúncio na OLX |
Exemplos de uso
Busque notebooks usados em São Paulo por até R$ 2000, ordenados por menor preço.
Me dê os detalhes do anúncio: https://sp.olx.com.br/...
Desenvolvimento
git clone https://github.com/rodrigopg/olx-mcp
cd olx-mcp
python -m venv .venv
.venv/bin/pip install -e ".[dev]"
Aviso
Este servidor faz scraping de dados públicos da OLX Brasil. Use com responsabilidade e respeite os termos de uso do site.
Licença
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file olx_mcp-0.1.0.tar.gz.
File metadata
- Download URL: olx_mcp-0.1.0.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c43affd1e9fd32aedf059aa5bd22328dde59d1bec1319c0aa6a60e2a1e483d5f
|
|
| MD5 |
900c062e436c5b84a1db80b2a3cd4a94
|
|
| BLAKE2b-256 |
74d8bbfcd94a8b32091bffff24949fb1b2a5532c35cdeadc23c024fb2282367c
|
File details
Details for the file olx_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: olx_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14431bde2cf308a89ca8e9de4f0366e2d5c28eb8b67de3a67414cea770f9a507
|
|
| MD5 |
ea2bfceb8376df3abb48cfc8f96011c2
|
|
| BLAKE2b-256 |
221c12cd7436bc2222321e38c337e89e05d09c6d39790fc762b8fd14341c468c
|