olx-mcp-server
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-mcp-server list my adverts with statistics"
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-mcp-server
OLX.uz uchun MCP server. Claude (yoki boshqa MCP klient) orqali:
Profil: akkaunt ma'lumotlari, e'lonlar soni holatlar bo'yicha, OLX hisob balansi, telefon tasdiqlanganligi
Mening e'lonlarim: ro'yxat va statistika (ko'rishlar, telefon ko'rishlar, saqlaganlar, xabarlar), kunlik statistika tarixi, faollashtirish / o'chirib qo'yish / ko'tarish / uzaytirish / o'chirish
Raqobatchilar: segmentdagi asosiy sotuvchilar, ularning profili va e'lonlari
Bozor tahlili: narx statistikasi (median, 25/75%), bozor tuzilmasi, reklama ulushi, tavsiyalar; o'z e'loningizni raqobatchilar bilan solishtirish
E'lon joylash: tayyorlanmoqda (pastga qarang)
Qanday ishlaydi
Rasmiy OLX Partner API O'zbekiston uchun ochiq emas, shuning uchun server sizning brauzer sessiyangiz (cookie'lar) orqali ishlaydi — xuddi olx.uz saytining o'zi kabi:
Qism | Manba | Kerak |
Profil, e'lonlarim, e'lon boshqaruvi | olx.uz | OLX'ga kirish ( |
Qidiruv, raqobatchilar, bozor tahlili | olx.uz ochiq qidiruv API'si | Hech narsa |
Kategoriyalar, parametrlar, joylar | categories.olxcdn.com, GraphQL, geo API | Hech narsa |
Sessiya
~/.olx-mcp/session.jsonda saqlanadi. Bu fayl akkauntingizga kirish kalitiga teng — hech kimga bermang.access_token15 daqiqa amal qiladi; server uni saytning o'zi kabi avtomatik yangilaydi (login.olx.uz sessiyasi orqali). Sessiya butunlay eskirsa (odatda ~2 hafta faolsizlikdan keyin) — qayta kiring.olx.uz oddiy HTTP so'rovlarni bloklaydi, shuning uchun so'rovlar kompyuterdagi Google Chrome yoki Microsoft Edgening ko'rinmas (headless) rejimi orqali yuboriladi. Brauzer 2 daqiqa ishlatilmasa yopiladi.
Bozor tahlili so'rovlari akkauntsiz (anonim) yuboriladi.
⚠️ Norasmiy loyiha — OLX bilan bog'liq emas. Saytning ichki API'larini ishlatadi. OLX ularni o'zgartirsa, moslash kerak bo'ladi. OLX qoidalari avtomatlashtirishni cheklashi mumkin — so'rovlarni me'yorida yuboring, ommaviy e'lon joylash uchun ishlatmang.
Related MCP server: kaushik-linkedin-mcp
Toollar
Akkaunt: olx_login, olx_session_status, olx_get_my_profile
Mening e'lonlarim: olx_list_my_adverts, olx_get_my_advert (kunlik statistika bilan), olx_advert_action
(activate / deactivate / refresh / extend / finish / remove)
Ma'lumotnoma: olx_suggest_category, olx_list_categories, olx_get_category (majburiy parametrlar va qiymatlar), olx_find_location
Bozor va raqobatchilar: olx_search_offers, olx_get_offer, olx_get_offer_phones, olx_get_seller, olx_analyze_market,
olx_find_competitors, olx_compare_my_advert
Aloqa raqamlari: olx_get_offer_phones 1–20 ta e'lon uchun sotuvchining telefonini ochadi (saytdagi "Показать телефон"
tugmasi bilan bir xil, login shart emas) va tavsifga yozilgan raqamlarni ham ajratib beradi. olx_get_offer tavsifdagi
raqamlarni doim ko'rsatadi, include_phones=true bilan esa telefonni ham ochadi. Har bir ochish sotuvchining
statistikasiga yoziladi va OLX kunlik limit qo'yadi — faqat kerakli e'lonlar uchun so'rang.
O'rnatish (istalgan qurilmada)
Talablar: Node.js 20+, Google Chrome yoki Microsoft Edge, Claude Desktop.
git clone https://github.com/lxz-401/olx-mcp-server.git
cd olx-mcp-server
npm install # bog'liqliklar + avtomatik build
npm run setup:claude # Claude Desktop / Cowork konfiguratsiyasiga "olx" serverini qo'shadi
npm run login # Chrome ochiladi — OLX akkauntingizga o'zingiz kiringSo'ng Claude Desktop'ni to'liq yoping (tray → Quit) va qayta oching. OLX toollari Chat'da ham, Cowork'da ham paydo bo'ladi (Cowork mahalliy serverlarni Claude Desktop konfiguratsiyasi orqali oladi; server sizning kompyuteringizda ishlaydi).
setup:claudeWindows (oddiy va Microsoft Store versiyasi), macOS va Linux'dagi konfiguratsiya faylini o'zi topadi, mavjud sozlamalarni saqlaydi va asl faylning zaxirasiniclaude_desktop_config.json.bak-olxga oladi.Har bir qurilmada alohida
npm run loginqiling.session.jsonni qurilmalar o'rtasida ko'chirmang va hech qachon git'ga qo'shmang (u repo tashqarisida,~/.olx-mcp/da saqlanadi).Yangilash:
git pull && npm install, keyin Claude Desktop'ni qayta ishga tushiring.
Qo'lda ulash
Claude Code:
claude mcp add olx --scope user -- node "/to'liq/yo'l/olx-mcp-server/dist/index.js"Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"olx": {
"command": "node",
"args": ["/to'liq/yo'l/olx-mcp-server/dist/index.js"]
}
}
}Konfiguratsiya fayli joyi: Windows — %APPDATA%\Claude\ yoki Store versiyasida
%LOCALAPPDATA%\Packages\Claude_*\LocalCache\Roaming\Claude\; macOS — ~/Library/Application Support/Claude/.
E'lon joylash
OLX e'lon joylashdan oldin telefon raqamini SMS orqali bir marta tasdiqlashni talab qiladi. Buni olx.uz saytida yoki OLX
ilovasida o'zingiz bajaring ("Подать объявление" → telefon → SMS kod). olx_session_status tasdiqlanganligini ko'rsatadi.
Shundan so'ng olx_create_advert tooli qo'shiladi.
Sozlamalar (muhit o'zgaruvchilari)
O'zgaruvchi | Default | Tavsif |
|
| Sessiya (cookie) fayli |
|
| Javoblar tili ( |
|
| Qaysi brauzer ishlatilsin |
| — | Brauzer exe fayliga to'liq yo'l |
|
|
|
|
| Boshqa mamlakat OLX'i uchun |
Misol so'rovlar
"Profilimni va e'lonlarim statistikasini ko'rsat" →
olx_get_my_profile,olx_list_my_adverts status=ALL"iPhone 13 128GB ni Toshkentda qanchaga sotsam bo'ladi?" →
olx_find_location+olx_analyze_market"Kir yuvish mashinalari bo'yicha asosiy raqobatchilarim kim?" →
olx_find_competitors→olx_get_seller"12345 raqamli e'lonimni raqobatchilar bilan solishtir" →
olx_compare_my_advert"Toshkentdagi arzon iPhone 13 sotuvchilarining raqamlarini ber" →
olx_search_offers sort=price_asc→olx_get_offer_phones
Tekshirish
node scripts/smoke-test.mjs '[["olx_session_status",{}],["olx_search_offers",{"query":"iphone","limit":3}]]'Available Tools
17 toolsolx_advert_actionE'lonni boshqarishADestructive
Change the state of one of the account's adverts (same actions as the "My ads" page on olx.uz):
activate: re-activate a finished/inactive advert (may require a paid packet if the free limit is used up)
deactivate: hide an active advert (e.g. item sold)
refresh: bump the advert to the top ("Поднять"). May be PAID unless free refresh is available — confirm with the user first
extend: extend the validity period
finish: move to finished/archive
remove: delete a finished advert PERMANENTLY — cannot be undone; always confirm with the user first
Inputs: action (required), advert_id (required).
olx_analyze_marketBozor va narx tahliliARead-onlyIdempotent
Analyze the OLX market for a product/segment. Collects up to sample_size live listings plus site-wide facet counts and returns:
total active listings (competition level)
price statistics per currency (min / 25% / median / 75% / max / mean, outliers removed)
private vs business split, top regions, cities and categories
condition split, share of promoted (paid) listings, delivery share
listing age and refresh activity, typical photo count
most active sellers in the sample
actionable recommendations (competitive price range, photos, promotion)
Use for "how much should I sell X for", "how competitive is this niche", "who dominates this market". No auth needed. Tip: narrow with category_id to exclude accessories (e.g. 'iphone 13' also matches cases).
Inputs: query, city_id, price_to, condition, +7 more.
olx_compare_my_advertMening e'lonimni raqobatchilar bilan solishtirishARead-onlyIdempotent
Compare one of the logged-in account's adverts against similar live listings on OLX. Loads the advert and its stats (needs a session), searches similar offers (by title keywords within the same category), and reports: price percentile and rank vs competitors, market price stats, photo count vs competitors, promoted share, phone-view conversion, and concrete recommendations (price change, photos, promotion, title).
Args:
advert_id: your advert id (from olx_list_my_adverts)
query: override search keywords (default: first 5 words of your title)
city_id / region_id: restrict competitors to a location (olx_find_location)
sample_size: listings to compare against
Inputs: advert_id (required), query, city_id, region_id, +2 more.
olx_find_competitorsRaqobatchilarni aniqlashARead-onlyIdempotent
Identify the main competitors (sellers) for a product/segment on OLX. Groups sampled listings by seller and ranks them by number of listings, then enriches the top sellers with their public profile and total active listing count.
Returns per competitor: seller_id, name, business flag, listings in this segment, promoted listings, median price, cities, account age, last activity, total active listings on OLX, sample URLs. Follow up with olx_get_seller(seller_id) for a deep dive on one competitor. No auth needed.
Inputs: top, query, city_id, price_to, +8 more.
olx_find_locationShahar / tuman ID sini topishARead-onlyIdempotent
Find OLX city_id / district_id / region_id by place name (e.g. "Samarqand", "Chilonzor", "Ташкент"). No auth needed. Use the IDs for market search filters (city_id, region_id, district_id) and for advert location.
Inputs: name (required).
olx_get_categoryKategoriya va uning parametrlariARead-onlyIdempotent
Get an OLX category: name, path, whether adverts can be posted in it (is_addable / leaf), max photos, validity days, subcategories, and the advert PARAMETERS — code, label, type (enum/price/input...), required flag, units (e.g. currency UZS/UYE) and allowed values (key=label). Use the parameter codes and value keys when posting an advert. No auth needed. Find category ids with olx_list_categories.
Inputs: category_id (required), response_format, include_children.
olx_get_my_advertE'lon statistikasiARead-onlyIdempotent
Get one of the account's adverts with totals (views, phone views, saves, messages) and the DAILY statistics history (page views and messages per day) plus paid promotions history. Use to see how an advert's traffic changes over time.
Inputs: advert_id (required), response_format.
olx_get_my_profileMening OLX profilimARead-onlyIdempotent
Get the logged-in OLX account profile: name, id, registration date, last login, business flag, phone verification, contact details used in adverts, advert counters by status (active / waiting / moderated / archive / unpaid / outdated), saved (observed) ads and searches, and OLX wallet balance. For the advert list with views/phone stats use olx_list_my_adverts.
Inputs: response_format.
olx_get_offerRaqobatchi e'lonini ko'rishARead-onlyIdempotent
Get full public details of any OLX listing by its numeric id (from search results): description, all parameters, price, seller, location, promotion flags, dates, contact name and phone numbers written in the description. Set include_phones=true to also reveal the seller's contact phone (same as the "Show phone" button). Useful to study how a competitor writes and positions their listing.
Inputs: offer_id (required), include_phones, response_format.
olx_get_offer_phonesE'lonlardagi aloqa raqamlariARead-only
Reveal the contact phone numbers of one or more OLX listings (the same as pressing "Показать телефон" on the site). No login needed. For each offer returns: title, url, seller, contact name, phones from the "show phone" button, and phone numbers the seller wrote in the title/description. If the seller hid the phone, phones is [] and phone_available=false.
Notes: each reveal is counted in the seller's statistics and OLX applies a daily limit (429) — request only the offers the user actually needs. Offer ids come from olx_search_offers / olx_get_seller.
Inputs: offer_ids (required), response_format.
olx_get_sellerSotuvchi (raqobatchi) profiliARead-onlyIdempotent
Analyze any OLX seller by user id (seller_id from search results): public profile (name, business flag, registration date, last activity, response time), total active listings, their categories and price levels, share of promoted listings, and a sample of their latest listings.
Inputs: seller_id (required), listings_sample, response_format.
olx_list_categoriesOLX kategoriyalariARead-onlyIdempotent
Browse or search the OLX category tree (no auth). Without arguments returns top-level categories; parent_id lists subcategories; search finds categories by name (Russian/Uzbek as shown on the site) and shows full paths. Use the ids as category_id in market tools and olx_get_category.
Inputs: search, parent_id.
olx_list_my_advertsMening e'lonlarimARead-onlyIdempotent
List the logged-in account's adverts by status with performance stats (views, phone views, saves, messages).
Args:
status: ACTIVE (default) | WAITING | UNPAID | FINISHED | MODERATED | ALL (all statuses)
query: filter by title text
limit (1–50), offset: pagination
response_format: markdown | json
Returns per advert: id, title, status, price, currency, category path, location, dates, days to expire, photos count, stats {views, phones, observed}, message counters, paid features. Sorted newest first; markdown adds totals and conversion.
Inputs: limit, query, offset, status, +1 more.
olx_loginOLX akkauntiga kirishAIdempotent
Open a visible Chrome window on the user's computer so THEY can log into their OLX account (phone/email + password or SMS code). The tool never types credentials; it only waits until login is detected (up to wait_minutes) and saves the session cookies locally. Call this when any account tool returns a session error. Tell the user a Chrome window has opened and they should log in there.
Inputs: wait_minutes.
olx_search_offersOLX'da e'lonlarni qidirishARead-onlyIdempotent
Search live OLX listings (public site data, no auth needed) with filters and sorting. Use to look at competitor listings for a product, check current prices, or browse a category/region.
Args: query, category_id, region_id, city_id, district_id, price_from, price_to (UZS), owner_type (private|business), condition (new|used), sort (relevance|newest|price_asc|price_desc), offset, limit (1–50), response_format.
Returns: total matching listings and offers with id, title, price, currency, condition, seller (id, name, business), city/region, created date, promotion flags, photo count, URL; plus has_more/next_offset for pagination (max offset 1000). For aggregated stats use olx_analyze_market instead of paging manually.
Inputs: sort, limit, query, offset, +9 more.
olx_session_statusOLX sessiya holatiARead-onlyIdempotent
Check whether an OLX account session is saved and valid, which account it is, and whether the phone is SMS-verified (OLX requires a verified phone before posting adverts). Competitor/market tools do not need a session.
Inputs: no named parameters.
olx_suggest_categorySarlavha bo'yicha kategoriya tavsiyasiARead-onlyIdempotent
Suggest OLX categories for an advert title (the same suggestion the olx.uz posting form shows). Needs a logged-in session. Returns category ids with full path. Then call olx_get_category(id) to see required parameters.
Inputs: title (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
The tools are largely separated into clear groups: session/account, category/location lookup, public search/detail, and market analysis. Minor overlap exists between olx_get_offer and olx_get_offer_phones, and between olx_analyze_market and olx_find_competitors, but descriptions clarify their different outputs.
Most tools follow a consistent olx_ + verb + noun pattern such as list/get/search/find/analyze/compare/suggest. A few exceptions like olx_session_status, olx_advert_action, and olx_login break the verb_noun pattern, so it is mostly consistent but not perfect.
17 tools is slightly above the typical sweet spot, but it is reasonable given the server's dual scope of managing a user's OLX account and performing public market/competitor analysis. No tools are truly redundant, though a couple could be merged without much loss.
The most obvious gap is the absence of any tool to create or edit an advert, despite olx_get_category and olx_suggest_category providing parameters clearly meant for posting. The lifecycle only covers state changes like activate/deactivate/refresh, and there are no messaging or conversation tools.
Maintenance
Related MCP Connectors
MCP for Yandex Direct: manage ad campaigns & analytics from Claude or ChatGPT
Hosted Meta Ads MCP server for Claude, ChatGPT and Cursor, with each action switched per account.
Hosted Google Ads MCP for Claude and ChatGPT. Preview every write. No developer token.
Amazon Seller Central, Ads and Vendor Central in ChatGPT & Claude. 106 tools; writes need approval.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables Claude Code to control a real browser using AI for web scraping, competitive intelligence, and UX auditing through the MCP protocol.-
- AlicenseNot gradedqualityDmaintenanceEnables Claude AI to interact with LinkedIn through browser automation, including profile reading, people and job search, company research, post publishing, and profile editing.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to control LinkedIn (profile, network, messaging, publications, jobs) via MCP using a persistent Chrome profile and anti-detection bypass.-
- AlicenseBqualityCmaintenanceEnables an LLM to control a separate Chrome session on Avito for searching and parsing listings, reading account and Pro dashboards/statistics, switching profiles, and editing forms. Requires explicit confirmation for irreversible actions.4185MIT