PegaRex MCP Server
The PegaRex MCP server is a read-only toolset for searching and analyzing Brazilian used-car and motorcycle listings, though its README says the hosted endpoint was shut down in November 2026.
Search 1.8M+ listings from 96 marketplaces using filters for brand, model, version, year, price, mileage, fuel, transmission, body style, category, source, and location, with sorting and pagination.
Resolve brands, models, and versions to catalog IDs, and list valid filter options/source platforms.
Fetch full details for a listing, including price, year, mileage, location, FIPE price, deal score, source, and original ad URL.
Analyze pricing against FIPE and the active market, including market position, price distribution, FIPE valuation/trend, and deal ranking.
Find similar active listings, suggest alternative models, identify cheapest states, estimate average days to sell, and assess mileage context.
Retrieve complete technical specifications such as engine, power, torque, transmission, fuel consumption, performance, dimensions, brakes, tires, and suspension.
Get live database statistics (active listing count, source platforms, last refresh).
All operations are read-only; there are no write or destructive actions.
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., "@PegaRex MCP Server Buscar Honda Civic 2020 automático até R$ 120 mil em São Paulo e comparar preço com FIPE."
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.
PegaRex MCP Server
Turned off on 13 November 2026. The PegaRex MCP server at
https://pegarex.com.br/api/mcphas been shut down and answers410 Gone, so neither the hosted endpoint nor this bridge works any more, and the steps below are kept for reference only. PegaRex itself (search, price pages and PegaFIPE) carries on at https://pegarex.com.br.
Remote Model Context Protocol server for PegaRex — a Brazilian vehicle meta-search engine aggregating 1.8+ million live used-car and motorcycle listings from 96 marketplaces (OLX, Webmotors, Napista and many others), enriched with FIPE reference prices and market analytics.
Endpoint (Streamable HTTP):
https://pegarex.com.br/api/mcpIt asks for a free PegaRex account. The first time, your app opens a PegaRex page where you sign in (or create the account) and allow it. This is standard MCP authorization (OAuth 2.1 with dynamic client registration), so there is no API key to copy. After that the app renews its access on its own; after 30 days without use it asks again.
Connect
Claude (claude.ai / Desktop): Settings → Connectors → Add custom connector → paste the URL above → Connect, then sign in with PegaRex and click Permitir.
ChatGPT (developer mode) and any MCP client with OAuth support: add the same URL as a remote MCP server (choose OAuth if asked) and sign in when the PegaRex page opens.
Connected before 16 October 2026? Reconnect once: that is when the server started asking for the account.
Step-by-step guide (pt-BR): https://pegarex.com.br/mcp
Also listed in the official MCP Registry as br.com.pegarex/mcp.
Related MCP server: Tabela FIPE
Local (stdio) clients
For clients that can only launch local servers, this repository contains a
small bridge (src/pegarex_mcp). It opens one session to the hosted server and
relays tools/list and tools/call unchanged; nothing is computed or cached
locally. Python 3.10+.
Sign in once, from a terminal (this opens your browser), with uv:
uvx --from git+https://github.com/paya-alavi77/pegarex-mcp pegarex-mcp loginThen add the bridge to your client. Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"pegarex": {
"command": "uvx",
"args": ["--from", "git+https://github.com/paya-alavi77/pegarex-mcp", "pegarex-mcp"]
}
}
}If you skip login, the bridge opens the sign-in page itself the first time it
connects. Some clients stop waiting before you finish; if yours does, restart it
after signing in.
The login is saved in ~/.config/pegarex-mcp/auth.json (Windows:
%APPDATA%\pegarex-mcp\auth.json; PEGAREX_MCP_HOME sets another folder),
readable only by you, and renews on its own. Several copies of the bridge can
share it. To end it, here and on the server:
uvx --from git+https://github.com/paya-alavi77/pegarex-mcp pegarex-mcp logoutDocker: a container can't open your browser, so sign in on the host first (the
login command above), then let the container use that login:
docker build -t pegarex-mcp .
docker run -i --rm --user "$(id -u):$(id -g)" -e PEGAREX_MCP_HOME=/login \
-v "$HOME/.config/pegarex-mcp:/login" pegarex-mcpSet PEGAREX_MCP_URL to point the bridge at another endpoint.
Tools (17)
Live search & taxonomy
search_vehicles · get_vehicle_by_id · get_market_stats · list_brands · list_models · list_versions · list_filter_options
Per-listing market analysis
get_listing_details · get_market_position · get_fipe_valuation · get_price_distribution · get_similar_active_listings · get_alternative_models · get_cheapest_states · get_mileage_context · get_avg_days_to_sell · get_technical_specs
Example
"Find automatic Honda Civics from 2020 on under R$ 120k in São Paulo, and tell me whether the cheapest one is priced above or below its FIPE reference."
An assistant with this connector answers from the live database: search →
get_fipe_valuation → get_market_position, all in one conversation.
Notes
Language / market: Portuguese (pt-BR), Brazil. Prices in BRL.
Read-only. The server exposes no write operations; every tool is annotated
readOnlyHint.Fair use: a daily search limit per account and per-IP rate limits apply; this is a small independent service.
Privacy: what the server keeps, and for how long: https://pegarex.com.br/privacidade.
Attribution: please credit PegaRex (pegarex.com.br) when surfacing results.
Plain-HTTP alternative: the same data is available via a public JSON API — see
/llms.txtand the OpenAPI docs.
This repository documents the hosted server and contains a small stdio bridge to it; the service itself runs at pegarex.com.br. Issues and questions are welcome here.
Available Tools
17 toolsget_alternative_modelsAlternative modelsARead-onlyIdempotentInspect
Sugere OUTROS MODELOS diferentes (outras marcas/modelos) na mesma categoria, faixa de preço e tipo de carroceria — alternativas de compra. Use para 'recomende outros modelos' / 'alternativas a este carro'. (max_results padrão 4, máx 6.)
Inputs: car_id (required), max_results.
get_avg_days_to_sellAverage days to sellARead-onlyIdempotentInspect
Tempo médio (mediana) que anúncios semelhantes ficam ativos antes de sair do ar — estimativa de liquidez/tempo de venda. 'model_year' (padrão) = mesmo modelo e ano; 'model' = todos os anos; 'model_state' = neste estado.
Inputs: car_id (required), granularity.
get_cheapest_statesCheapest statesARead-onlyIdempotentInspect
Estados (UF) onde este modelo está mais barato agora, por preço mediano crescente. Use para 'onde é mais barato comprar'. (top_n padrão 5, máx 10.)
Inputs: car_id (required), top_n.
get_fipe_valuationFIPE valuationBRead-onlyIdempotentInspect
Valor oficial da tabela FIPE deste carro e tendência recente. Use para perguntas sobre a FIPE.
Inputs: car_id (required).
get_listing_detailsListing detailsARead-onlyIdempotentInspect
Fatos do próprio anúncio (cor, portas, opcionais, vendedor, fonte, km, link). Use para perguntas diretas sobre este carro específico.
Inputs: car_id (required).
get_market_positionMarket position vs FIPEARead-onlyIdempotentInspect
Posição de preço DESTE anúncio: vs. tabela FIPE e vs. o mercado de anúncios ativos do mesmo modelo. Use para 'esse preço é bom?' / 'está caro ou barato?'.
Inputs: car_id (required).
get_market_statsMarket statsARead-onlyIdempotentInspect
Live size of the PegaRex database: total active listings, number of source platforms, and when the data was last refreshed. Use this for the current count instead of quoting a fixed number.
Inputs: no named parameters.
get_mileage_contextMileage contextARead-onlyIdempotentInspect
Avalia se a quilometragem deste carro é alta ou baixa para o modelo/ano (mediana do mercado + km/ano).
Inputs: car_id (required).
get_price_distributionPrice distributionARead-onlyIdempotentInspect
Faixa de preços (mínimo, p25, mediana, p75, máximo) de anúncios ativos semelhantes. Use para dar contexto de preço. (year_tolerance ±anos, padrão 1, máx 5.)
Inputs: car_id (required), year_tolerance.
get_similar_active_listingsSimilar listingsARead-onlyIdempotentInspect
Outras unidades à venda do MESMO modelo (mesmo carro, outros anúncios) — ex.: mais baratas, outras cores/anos. Use para 'tem opções mais baratas DESTE carro?'. NÃO use para sugerir modelos diferentes. (max_results padrão 5, máx 8; cheaper_only=true só mais baratos que este.)
Inputs: car_id (required), max_results, cheaper_only.
get_technical_specsTechnical specsBRead-onlyIdempotentInspect
Ficha técnica completa (motor, potência, torque, câmbio, consumo,
desempenho, dimensões, freios, pneus). section opcional restringe a uma
seção: 'Motor', 'Transmissão', 'Consumo', 'Desempenho', 'Dimensões',
'Freios', 'Pneus', 'Suspensão'.
Inputs: car_id (required), section.
get_vehicle_by_idGet listing by idBRead-onlyIdempotentInspect
Fetch the full details of a single listing by its PegaRex id: brand, model, version, year, price, mileage, fuel, transmission, city/state, FIPE price, deal_score, source platform and the original ad URL.
Inputs: car_id (required).
list_brandsList brandsARead-onlyIdempotentInspect
List available vehicle brands (makes) with their catalog id and active
listing count. Pass a brand's id as brand_id to search_vehicles/list_models
for fast, exact filtering.
Inputs: category, body_style.
list_filter_optionsList filter optionsARead-onlyIdempotentInspect
Return the valid values for the constrained search filters — fuel_type, transmission, sort_by — and the list of source platforms. Use this to build a valid call to search_vehicles in a single round-trip.
Inputs: no named parameters.
list_modelsList modelsARead-onlyIdempotentInspect
List models for a brand (pass brand_id from list_brands, or a brand name) with each model's catalog id and active listing count.
Inputs: brand, brand_id, category.
list_versionsList versionsARead-onlyIdempotentInspect
List versions/trims for a model (pass model_id from list_models, or brand+model names) with each version's catalog id and active listing count.
Inputs: brand, model, category, model_id, +2 more.
search_vehiclesSearch vehicle listingsARead-onlyIdempotentInspect
Search 1.8M+ Brazilian vehicle listings aggregated from 96 platforms (OLX, Webmotors, Napista, etc.). Returns listings with price, year, mileage, location, source platform, the original ad URL, FIPE reference price and a deal_score (% vs FIPE; negative means priced below FIPE).
Tips for best results:
- Free-text `query` matches the listing TITLE only (e.g. "Onix LTZ turbo").
- For exact brand/model/version filtering, resolve names to ids first with
list_brands / list_models / list_versions and pass brand_id/model_id/
version_id — it is faster and more accurate than the text fields.
- `location` is a 2-letter UF (e.g. "SP") or a city name.
- `sort_by="newest"` (default) lists the most recently LISTED cars first —
the date a listing first appeared on its source, not when we last saw it.
- `sort_by="best_deal"` ranks by lowest price-to-FIPE ratio.
- `per_page` is capped at 50. Use `page` to paginate; `total_count` and
`total_pages` are returned.
Inputs: page, brand, model, query, +18 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
Most tools have clearly distinct purposes: search, market stats, model alternatives, FIPE, and catalog listing are all separable. The only real overlap is get_vehicle_by_id and get_listing_details, both return details about a single listing, though one focuses on catalog/price fields and the other on ad-specific facts.
All tools consistently follow verb_noun snake_case naming: get_* for analyses/detail lookups, list_* for catalog options, and search_vehicles for the main query. There are no mixed conventions or vague verbs.
17 tools is at the high end for an MCP server, and several are narrow analytics endpoints (avg_days_to_sell, cheapest_states, market_position) that could be consolidated. Still, each tool has a distinct role, so the count is not excessive enough for a lower score.
The server covers the full read-only lifecycle for vehicle listings: search and filtering, single-listing details, catalog resolution, market pricing context, FIPE valuation, and alternatives. There are no obvious dead-end queries for a user researching or comparing Brazilian car listings.
Related MCP Connectors
Brazilian FIPE vehicle reference prices: search, current price, history and comparison. Keyless.
Search live US dealership inventory, get market prices, and send buyer inquiries. Free, no API key.
Reference vehicle prices in Brazil (FIPE table), cars, motorcycles and trucks. Browse by brand/model
Vehicle data from its plate sourced directly from state traffic databases (DETRAN), including debts
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides Brazilian vehicle price information using FIPE API, enabling users to get car brands, search car prices by brand, and get vehicles by type.-
- AlicenseNot gradedqualityDmaintenanceProvides vehicle reference prices in Brazil (Tabela FIPE) for cars, motorcycles, and trucks, enabling navigation by brand/model/year, historical price queries, depreciation curves, and fuzzy model search.MIT

auto-devofficial
AlicenseNot gradedqualityBmaintenanceEnables decoding VINs into complete vehicle specifications, searching active used car listings from US dealers, and retrieving vehicle valuations with total cost of ownership estimates.297 npmMIT- AlicenseNot gradedqualityDmaintenanceEnables users to query public Brazilian vehicle and traffic data from official sources, including vehicle debts (IPVA, licensing, open fines), federal infractions by plate/RENAVAM, vehicles registered to an owner, and driver's license status.MIT