extsearch-mcp
Enables product search on AliExpress through a unified marketplace interface, with support for filters, sorting, and product-card lookup where available.
Enables product search on Allegro through a unified marketplace interface, returning normalized results and supporting product-card retrieval where available.
Enables product search across Amazon regional marketplaces, with a consistent result format and product-card lookup where supported.
Enables product search on eBay through a unified marketplace interface, with normalized results and product-card retrieval where available.
Enables product search on Flipkart through a unified marketplace interface, with normalized results and product-card lookup where supported.
Enables product search on Rakuten through a unified marketplace interface, with normalized results and product-card retrieval where available.
Enables product search on Shopee Singapore through a unified marketplace interface, with normalized results and product-card lookup where supported.
Enables product search on Walmart through a unified marketplace interface, with normalized results and product-card retrieval where available.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
extsearch
Product search across marketplaces of many countries. 39 marketplaces in 17 countries, one result format, one error format, no API keys. One engine, three interfaces:
Interface | Command | Use it from |
Python library |
| scripts, bots, your own services |
MCP server |
| LLM agents (OpenCode, Claude, Cline, any MCP client) |
HTTP API |
| anything that speaks HTTP, plus a |
Documentation: docs/ — library · HTTP API · MCP server · architecture · adding a marketplace · troubleshooting
import asyncio
from extsearch import search, select
async def main():
res = await search("fifine k669", where="ua", limit=5, sort="cheapest")
for item in res["items"]:
print(item["price"], item["currency"], item["source"], "—", item["title"])
card = await select(res["items"][0]["id"]) # "olx:940356105"
print(card["title"], card.get("delivery"))
asyncio.run(main())Many marketplaces check the TLS fingerprint, so the transport iscurl_cffi, not
requests/httpx. Plain HTTP clients receive 403 even with correct headers.
Why another scraper
Most "marketplace API" projects are one site, one country and one output shape. This one is built around a small adapter contract:
search(query, where) ──┬── olx (JSON API) ─────┐
├── shops (HTML) ────────┤── merge ── rank ── items[]
└── foreign (HTML/JSON) ─┘Each adapter returns the same rows (id, title, price, currency, relevance, …),
so filters, sorting, currency conversion and the id → product-card map work
identically for a Ukrainian classified site and a Japanese marketplace.
Adding a marketplace is one function plus one registry line — see
extsearch/marketplaces/.
Related MCP server: Kettu Marketplace Intelligence
Countries and marketplaces
where= accepts countries, marketplaces, or both: "ua", "ua,ru",
"olx,ozon", "all", "all,-ru", "eu", "cis".
Code | Country | Marketplaces |
| Ukraine | olx, prom, foxtrot, rozetka, comfy, allo, moyo, kasta, brain, ctrs, bigl, epicentr, makeup, shafa, auto¹ |
| Poland | olx_pl, allegro² |
| Romania / Bulgaria / Portugal | olx_ro, olx_bg, olx_pt |
| Kazakhstan / Uzbekistan | olx_kz, kaspi², olx_uz |
| Russia | yandex_market, wildberries², ozon² |
| USA | amazon², ebay², walmart² |
| United Kingdom / Germany / France / Italy / Spain | amazon_gb², amazon_de, amazon_fr², amazon_it², amazon_es² |
| Japan / India / Singapore | rakuten, flipkart², shopee_sg² |
| worldwide | aliexpress, alibaba² |
Group tokens: eu (pl, ro, bg, pt, de, gb, fr, it, es), cis (kz, uz).
¹ opt-in: excluded from all because it is a different vertical (cars).
² needs a proxy in a supported region — the marketplace answers 403/444 to
requests from the "wrong" country. The adapter is written; the status is
reported as verified: false until someone confirms it from a matching IP.
Verification status
sources_catalog() (MCP: marketplace_catalog, API: GET /sources) reports
per marketplace:
Field | Meaning |
| markup confirmed by a real run, parser returns items |
| answers |
| included in |
| product cards ( |
Verified: OLX (ua, pl, ro, bg, pt, kz, uz), prom, foxtrot, comfy, allo, moyo,
kasta, brain, ctrs, bigl, epicentr, makeup, auto.ria, yandex_market, rakuten,
aliexpress, amazon.de, plus Rozetka's product API.
Rozetka search needs a warmed browser profile: python tools/warmup_rozetka.py.
Install
git clone https://github.com/viitlk/extSearch
cd extSearch
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -e ".[all]" # library + MCP + HTTP API
# or minimal, library only:
pip install -e .Optional browser engine (Rozetka search only):
pip install playwright && python -m playwright install chromiumRequirements: Python 3.10+, curl_cffi, beautifulsoup4. Linux and macOS are
the tested platforms; Windows should work but is not covered by CI.
Library
Search
import asyncio
from extsearch import search
async def main():
res = await search(
"iphone 15",
where="ua,pl", # countries and/or marketplace names
limit=10, # items in the response, 1..50
page=1,
price_min=500,
price_max=1500,
sort="cheapest", # relevance|newest|cheapest|expensive|rating|...
min_rating=4.0, # drops items without a rating
strict=True, # title must contain a query word
details=2, # delivery/payment for the first 2 items
)
for item in res["items"]:
print(item["id"], item["price"], item["currency"], item["title"])
print(res["sources"]) # per marketplace: returned / total / error / hint
asyncio.run(main()){
"query": "iphone 15",
"where": ["olx", "prom", "olx_pl"],
"countries": ["pl", "ua"],
"returned": 2,
"sort": "cheapest",
"sources": {
"olx": {"returned": 10, "total": 1843},
"olx_pl": {"returned": 10, "total": 214},
"prom": {"returned": 0, "error": "blocked", "hint": "route it through a proxy ..."}
},
"items": [
{
"id": "olx:940356105",
"source": "olx",
"country": "ua",
"title": "iPhone 15 128GB Black",
"price": 18900,
"currency": "UAH",
"price_usd": 453.6,
"relevance": 1.0,
"url": "https://www.olx.ua/d/uk/obyavlenie/..."
}
],
"notes": ["mixed currencies (PLN, UAH); prices are compared via the approximate price_usd"]
}Product card
card = await select("amazon:B0BZP61K18", max_description_chars=400)
card["title"]; card["price"]; card.get("delivery"); card.get("reviews")Cards may include delivery[], payment[], reviews, free_shipping_from.
A null delivery price means the shop does not publish a fixed price and
charges the carrier rate — it is not "unknown".
Catalog and resolution
from extsearch import resolve, sources_catalog
resolve("ua") # ['allo', 'bigl', 'brain', ...]
resolve("all,-ru,-auto") # everything except Russia and AUTO.RIA
resolve("eu")
sources_catalog()["countries"] # code -> {title, marketplaces}
sources_catalog()["marketplaces"][0] # name, currency, verified, needs_proxy, ...Errors
Every failure is one shape, language-neutral, with a machine-readable code:
from extsearch import ExtSearchError
try:
await search("iphone", where="ozon")
except ExtSearchError as exc:
exc.code # "blocked"
exc.message # "www.ozon.ru rejected the request (HTTP 403)"
exc.hint # 'route it through a proxy (proxies=["TYPE://IP:PORT"])'
exc.retryable # True
exc.as_dict() # JSON-ready payloadCodes: bad_argument, not_found, blocked, needs_proxy, rate_limited,
network, timeout, no_results, no_state, no_url, unavailable,
browser_unavailable, server_error, http_error, bad_response.
A partial failure never kills a search: the response lists per-marketplace
status in sources and explanations in notes. If exactly one marketplace was
requested, its own error is raised instead of a generic no_results.
Proxies
Format TYPE://IP:PORT; TYPE is http, https, socks4 or socks5.
Credentials are allowed: socks5://user:pass@1.2.3.4:1080.
# environment
export EXTSEARCH_PROXIES="socks5://1.2.3.4:1080,http://5.6.7.8:3128"
# CLI
extsearch search "iphone" -w us --proxy socks5://1.2.3.4:1080
# library
from extsearch import set_proxies
set_proxies(["socks5://1.2.3.4:1080"])
# per call
await search("iphone", where="us", proxies=["socks5://1.2.3.4:1080"])Proxies rotate round-robin. One that produces a network error or 403/429 is
skipped for 120 seconds and the request retries on the next proxy. Credentials
are masked in logs and API responses.
CLI
extsearch search "fifine k669" -w ua -n 5
extsearch search "iphone 15" -w all --sort cheapest --proxy socks5://1.2.3.4:1080
extsearch search "rtx 4060" -w ru,ua --min-price 8000 --details 2
extsearch select amazon:B0BZP61K18
extsearch sources --country ru
extsearch web "python asyncio gather" --fetch-top 2
extsearch video "fifine k669 review"
extsearch freelance "telegram bot aiogram"
extsearch mcp # MCP server over stdio
extsearch api --port 8000 # HTTP APIHTTP API
extsearch-api --host 127.0.0.1 --port 8000OpenAPI docs and a try-it form: http://127.0.0.1:8000/docs
Method | Path | Purpose |
GET |
| status, version, proxy count |
GET |
| countries, marketplaces, flags |
GET |
| quick search |
POST |
| full search ( |
GET |
| product card |
GET / POST |
| inspect / replace the pool |
GET |
| web search, page text |
GET |
| content tools |
curl "127.0.0.1:8000/search?q=fifine%20k669&where=ua&limit=3"
curl "127.0.0.1:8000/item/olx:940356105"
curl -X POST 127.0.0.1:8000/search \
-H 'content-type: application/json' \
-d '{"query": "rtx 4060", "where": "ua,pl", "sort": "cheapest", "limit": 5}'Status codes map from error codes: 400 bad_argument, 404 not_found /
no_results, 409 no_url, 429 rate_limited, 501 unavailable, 502 blocked,
504 timeout. Error bodies always carry {error, message, hint?, retryable}.
MCP server
extsearch-mcp # stdio (default)
EXTSEARCH_TRANSPORT=http extsearch-mcp --port 8765 # streamable HTTPClient configuration (OpenCode example; any MCP client works the same):
{
"mcp": {
"extsearch": {
"type": "local",
"command": ["/path/to/.venv/bin/extsearch-mcp"],
"enabled": true
}
}
}Tools:
Tool | What it does |
| search across countries and marketplaces |
| product card by |
| countries, marketplaces, verification flags |
| set or clear the proxy pool |
| web search, clean page text |
| YouTube |
| Modrinth + CurseForge |
| Kwork, Freelancehunt, Freelancer, Upwork, Fiverr |
Example prompts that work well:
find fifine k669 on olx and prom under 2000 UAH, include delivery options
compare iphone 15 across ua, pl and de, cheapest first
show the marketplace catalog, then search ozon through socks5://1.2.3.4:1080Tests
python tests/smoke_test.py # unit + live network
EXTSEARCH_OFFLINE=1 python tests/smoke_test.py # unit only
pytest tests/ -q
python tools/check_sources.py # per-marketplace health check
python tools/test.py # one-screen live test (for posts/issues)The live part deliberately hits real marketplaces — that is the only way to notice a layout change before users do.
Configuration
Everything is environment-driven (see .env.example):
Variable | Default | Meaning |
|
| cache and browser profile |
| — | proxy list |
|
| request timeout, seconds |
|
| pause between requests per process |
|
| response cache, seconds |
| built-in table | currency rates (USD per unit, JSON) |
|
| MCP transport |
Layout
extsearch/
search.py multi-marketplace search, ranking, FX, details
olx.py OLX engine — one codebase for 7 countries
catalog.py UA shops: prom, foxtrot, rozetka, comfy, allo, moyo, kasta, brain, citrus
catalog_extra.py UA shops: bigl, epicentr, makeup, shafa, auto.ria
marketplaces/ registry + adapters, split by country
details.py delivery / payment / reviews extraction
net.py curl_cffi sessions, throttling, cache, proxy rotation
proxies.py "TYPE://IP:PORT" parsing, round-robin pool
web.py web search and text extraction
sources.py YouTube, Modrinth, CurseForge, freelance boards
media.py wrappers for the content sources
mcp_server.py MCP tools
api.py FastAPI app
cli.py argparse CLI
docs/
index.md documentation map and concepts
library.md Python API reference
api.md HTTP endpoints and payloads
mcp.md MCP tools and client configuration
architecture.md request flow, adapter contract, network layer
adding-a-marketplace.md step-by-step guide with a real example
troubleshooting.md symptom → cause → fixLimitations
Scrapers break on redesigns.
sourcesin every response andtools/check_sources.pytell you which one broke.Prices are integers in the marketplace currency; Amazon/EUR cents are rounded. Cross-country comparison uses an approximate FX table, not live rates.
For marketplaces without numeric product ids the id → URL map is in memory, so
select()works for items found in the same process. Re-run the search if the process restarted.Fourteen marketplaces answer
403/444from the "wrong" country and are markedverified: falseuntil confirmed with a regional proxy.Product cards need a separate request per item:
details=Ncosts N requests.
Legal
This is a personal research tool. It does not bypass authentication, it reads what a browser would read. Respect the terms of service of each marketplace and your local law: keep request rates low, do not republish scraped content, use only proxies you are allowed to use. Marketplace data belongs to the marketplaces.
Contributing
Adding a marketplace takes one file plus one registry line:
Write a parser that returns rows
{id, title, price, currency, relevance, url}.Register it in
extsearch/marketplaces/<country>.pywithverified/needs_proxy.Add the name to the README table and run
python tools/check_sources.py my_source.
Pull requests with a real example response (minus personal data) are welcome.
Support
If this saved you time, you can buy me a coffee:
GitHub also shows a Sponsor button when .github/FUNDING.yml points at a
funding platform (see GitHub docs).
License
MIT for the code, see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Shopping infrastructure for AI agents: product search, category price overviews, price checks and seller vetting across US online retail, as structured facts over MCP.
Hosted MCP for e-commerce: live product catalog, stock, and pricing for AI agents.
Search multi-merchant supply, checkout, and track orders via MCP.
Live product search for AI agents across Shopify merchants and major retailers.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables product search functionality via MCP, allowing Claude to search products by keyword with filters, list categories, and retrieve product details.3-
- AlicenseAqualityCmaintenanceEnables querying and comparing prices, availability, ratings, reviews, and seller details from major Russian and Chinese marketplaces (Wildberries, Ozon, Yandex Market, and others) without requiring API keys, via a unified MCP interface.2425MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to search Amazon products, retrieve product details by ASIN, look up seller profiles, and browse seller catalogues as structured JSON across 23 regional Amazon domains.583 npm5MIT

Unwrangle MCPofficial
AlicenseNot gradedqualityCmaintenanceEnables AI agents to retrieve product details, customer reviews, and search results from retailers like Amazon, Target, Best Buy, Home Depot, and Walmart through a unified MCP interface.80 npmMIT