Listed from the MCP registry; nobody on Odel publishes it.
Is this yours? Claim itPaid Brazilian marketplace deals & product data via x402 (USDC per call).
One address for any MCP client. No sign-in needed on this server.
1 read4 other
Grouped by tool name. At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Comparador de preços em tempo real com links afiliados rastreados, dashboard de monetização e geração de vídeos com IA.
Paid deals/product data from Brazilian marketplaces (Mercado Livre, Amazon, AliExpress, Shopee) payable per-request in USDC via x402 v2 — no accounts, no API keys, no sign-up. Payment settles on-chain (Polygon, Base, Arbitrum, Avalanche) before data is returned.
POST https://api.alaserver.com.br/mcpStreamable-HTTP MCP endpoint. Config for agent clients:
{
"mcpServers": {
"bestpricetoday": { "url": "https://api.alaserver.com.br/mcp" }
}
}
| Tool | Price | Description |
|---|---|---|
deals_search | $0.001 | Multi-marketplace live product search (ML + AliExpress + Shopee) |
deals_feed | $0.01 | Daily-refreshed deals catalog, filters q/category/price (max 100) |
deals_top | $0.01 | Biggest price drops vs 90-day history |
deal_history | $0.01 | Full price series for a product (ml_code) |
Payment flow: call a tool without x_payment → it returns the x402 quote →
sign a USDC transferWithAuthorization (EIP-3009) matching an accepts entry →
re-call with the PAYMENT-SIGNATURE value in x_payment → data returned after
on-chain settlement (receipt in _settlement).
GET /api/v1/x402/search?q=&marketplace=&limit= — $0.001GET /api/v1/x402/deals?q=&category=&min_price=&max_price=&limit= — $0.01GET /api/v1/x402/deals/top?limit= — $0.01GET /api/v1/x402/deals/{ml_code}/history — $0.01GET /api/v1/x402/sample — free 3-item sample, no paymentGET /api/v1/x402/info — free service manifest/llms.txt, /.well-known/x402, /.well-known/agent-card.json, /openapi.jsonBestPriceToday/
├── frontend/ # Next.js 14 (App Router) — Alaserver
│ └── src/
│ ├── app/
│ │ ├── page.tsx # Busca principal
│ │ ├── admin/page.tsx # Dashboard admin + gerador de vídeo
│ │ ├── alertas/page.tsx # Alertas de preço (owner_id)
│ │ ├── afiliados/page.tsx # Dashboard de afiliados (6 providers)
│ │ ├── cupons/page.tsx # Grid de produtos com cupom ML
│ │ ├── oferta/[code]/ # Página de oferta profissional
│ │ └── r/[code]/ # Redirect rastreado
│ ├── components/
│ │ ├── layout/Header.tsx # Header compartilhado (Lucide icons, responsive)
│ │ ├── layout/Section.tsx # Wrapper de seção reutilizável
│ │ └── offers/ # OfferCard com score IA + click tracking
│ ├── hooks/ # useSearch, useTrendingSearches
│ └── lib/api.ts # ← Fonte única de API_BASE
│
├── backend/ # FastAPI + uvicorn — alaserver (Cloudflare Tunnel)
│ ├── app/
│ │ ├── api/v1/endpoints/
│ │ │ ├── search.py # Busca multi-provider + trending
│ │ │ ├── admin.py # Dashboard, clicks, conversões, broadcast, vídeo
│ │ │ ├── links.py # POST /links/create + GET /r/{code}
│ │ │ ├── alerts.py # CRUD alertas (owner_id obrigatório)
│ │ │ ├── favorites.py # CRUD favoritos (owner_id obrigatório)
│ │ │ ├── affiliate.py # Seed de produtos afiliados ML
│ │ │ └── auth.py # OAuth Mercado Livre
│ │ ├── integrations/
│ │ │ ├── aliexpress/ # AliExpress TOP + GOP API
│ │ │ ├── shopee/ # Shopee GraphQL Affiliate API
│ │ │ ├── youtube.py # Publicação de Shorts no YouTube
│ │ │ └── conversion_tracker.py # Poll orders AliExpress/Lomadee/Shopee/ML
│ │ ├── services/providers/ # aliexpress, shopee, mercadolivre, amazon, lomadee, awin, kabum
│ │ ├── workers/
│ │ │ ├── distributor.py # Orquestrador central (4x/dia: 12h, 15h, 19h, 21h)
│ │ │ ├── coupon_distributor.py # Cupons ML (2x/dia: 12h, 19h) + vídeo XTTS
│ │ │ ├── ml_coupon_scraper.py # Scraper de cupons do Portal do Afiliado ML
│ │ │ ├── bestprice_bot.py # Telegram bot (/start /alertas /top /canal)
│ │ │ ├── alert_checker.py # Verifica alertas a cada 30min, notifica via Telegram
│ │ │ ├── conversion_cron.py # Poll horário de conversões
│ │ │ ├── ml_refresh_cron.py # Renova token ML a cada 15-25min
│ │ │ └── channel_broadcaster.py # DEPRECATED (substituído por distributor.py)
│ │ ├── models/models.py # SQLAlchemy ORM
│ │ └── core/config.py # Variáveis de ambiente (pydantic-settings)
│ ├── DEPRECATED/ # Espelho DEPRECATED (DEPRECATED - conta bloqueada)
│ ├── tests/
│ │ ├── test_integrity.py # 16 testes estruturais
│ │ └── test_api.py # 8 testes funcionais
│ └── scripts/
│ └── migration_owner_id.py # Migration owner_id (já aplicada em produção)
└── .github/workflows/
└── deploy-hf.yml # CI/CD: DEPRECATED (Hugging Face conta bloqueada)
cd backend
python -m venv .venv312
source .venv312/bin/activate
pip install -r requirements.txt
cp .env.example .env # edite com suas credenciais
uvicorn app.main:app --reload --port 8000
cd frontend
npm install
# crie .env.local com:
# NEXT_PUBLIC_API_URL=http://localhost:8000
npm run dev
| Variável | Obrigatória | Descrição |
|---|---|---|
DATABASE_URL | ✅ | PostgreSQL async (ex: Neon) em produção; SQLite fallback local |
ADMIN_MANAGER_KEY | ✅ | Chave para endpoints /admin |
ALIEXPRESS_APP_KEY | Recomendado | Busca + rastreio AliExpress |
ALIEXPRESS_APP_SECRET | Recomendado | |
ALIEXPRESS_TRACKING_ID | Recomendado | |
MERCADOLIVRE_APP_ID | Recomendado | OAuth ML + busca |
MERCADOLIVRE_SECRET | Recomendado | |
SHOPEE_APP_ID | Opcional | Busca Shopee |
SHOPEE_SECRET | Opcional | Do portal affiliate.shopee.com.br |
LOMADEE_API_KEY | Opcional | |
LOMADEE_SOURCE_ID | Opcional | |
AMAZON_PARTNER_TAG | Opcional | Associate tag |
TELEGRAM_BOT_TOKEN | Opcional | Bot de alertas e busca |
TELEGRAM_CHANNEL_ID | Opcional | Canal broadcast (ex: @BestPriceTodayBR) |
REDIS_URL | Opcional | Cache busca (default: redis://localhost) |
INTERNAL_API_URL | Opcional | URL interna para alert_checker buscar preços |
ALERT_CHECK_INTERVAL | Opcional | Intervalo do checker em segundos (default: 1800) |
Busca → Ranking IA → OfferCard
→ trackClick() → POST /admin/clicks (analytics)
→ href affiliate_url + UTM
→ compra no marketplace
→ conversão registrada via webhook / poll horário
→ comissão real no dashboard admin
/r/{code})POST /api/v1/links/create → { code, url: /r/{code} }
Usuário clica /r/{code} → registra ClickEvent + redirect 302
| Plataforma | Método |
|---|---|
| AliExpress | Poll aliexpress.affiliate.order.list.by.index (horário) |
| Lomadee | Poll /v3/{sourceId}/report/commission (horário) |
| Shopee | Poll GraphQL conversionReport (horário) |
| Mercado Livre | Webhook HMAC-SHA256 + GET /orders/{id} |
Acesso: https://bestpricetoday.alaserver.com.br/admin
Auth: header X-Admin-Key: <ADMIN_MANAGER_KEY>
| Formato | Quando usar (sugerido automaticamente) |
|---|---|
| 💥 Oferta Choque | Desconto ≥ 10% |
| 🎙️ Viral TikTok | Produto com ≥ 5 cliques recentes |
| 🏆 Top 3 | Categorias com múltiplas opções (fone, notebook…) |
| ⚔️ VS Comparativo | Marcas conhecidas (Samsung, iPhone, RTX…) |
| 🔔 Alerta de Preço | Desconto 5–20% |
| ⏳ Última Chance | Preço < R$100 |
| 🎥 WAN2.1 Cinemático | Produtos premium (≥ R$1.500) |
Narração: XTTS v2 (voz clonada ElevenLabs — locutor "matheus")
Usuário cria alerta (query + target_price + owner_id)
→ owner_id = localStorage["bpt_anon_id"] (browser)
→ owner_id = str(telegram_user_id) (bot)
alert_checker.py roda a cada 30min:
→ busca preço atual via /search
→ se preço ≤ target: notifica via Telegram (se owner_id numérico)
→ marca triggered_at, desativa alerta
API — owner_id obrigatório em todos os endpoints:
POST /api/v1/alerts body: { query, target_price, owner_id }
GET /api/v1/alerts ?owner_id=...
DELETE /api/v1/alerts/{id} ?owner_id=... (valida ownership)
Roda continuamente dentro do bestprice-backend, postando ofertas em horários estratégicos:
Canais: Telegram, Facebook, Instagram, YouTube (simultâneos)
asyncio.create_task)Sistema independente que posta cupons Mercado Livre 2x/dia:
cd backend
PYTHONPATH=. .venv312/bin/pytest tests/ -v
# 24/24 passando
/conversions/test no código nem nas rotascommission_rate/commission_value hardcoded em produçãoconversion_tracker.py usa dados reais das plataformasowner_idlib/api.tsDEPRECATED sincronizado com canônicoalaserver (192.168.15.45, rede local)cloudflared) na porta 443sudo systemctl restart bestprice-backend # FastAPI + workers (porta 8000)
sudo systemctl restart bestprice-frontend # Next.js (porta 3000)
sudo systemctl restart cloudflared # Cloudflare Tunnel
sudo systemctl reload nginx # Reverse proxy
# Iniciar manualmente
cd ~/wan2 && python video_api.py # porta 8765
# Instalar como serviço permanente
sudo cp ~/wan2/bestprice-video-api.service /etc/systemd/system/
sudo systemctl enable --now bestprice-video-api
# Verificar
curl http://localhost:8765/health
ssh alessandro@192.168.15.45
cd /home/alessandro/frontend
npx next build
sudo systemctl restart bestprice-frontend
ssh alessandro@192.168.15.45
cd /home/alessandro/backend
sudo systemctl restart bestprice-backend
Nota: Hugging Face deployment foi descontinuado (conta bloqueada). Não usar
deploy-hf.ymlnemsync_DEPRECATED.sh.
| Método | Path | Auth | Descrição |
|---|---|---|---|
GET | /health | — | Health check |
GET | /api/v1/search | — | Busca multi-provider |
GET | /api/v1/search/trending | — | Buscas em alta |
POST | /api/v1/admin/clicks | — | Registra clique |
GET | /api/v1/admin/overview | Admin | Dashboard KPIs |
POST | /api/v1/admin/broadcast/telegram | Admin | Broadcast manual |
POST | /api/v1/admin/video/publish | Admin | Gerar e publicar vídeo |
GET | /api/v1/admin/video/status/{job_id} | Admin | Status do job de vídeo |
GET | /api/v1/r/{code} | — | Redirect rastreado |
POST | /api/v1/links/create | — | Cria short link |
GET/POST | /api/v1/alerts | — | Alertas (owner_id obrigatório) |
DELETE | /api/v1/alerts/{id} | — | Remove alerta (valida owner) |
GET/POST | /api/v1/favorites | — | Favoritos (owner_id obrigatório) |
GET | /api/v1/auth/ml/status | — | Status token ML |
POST | /api/v1/auth/ml/refresh | — | Renova token ML |