Логотип Torob MCP

Torob MCP

Спільнота
mmdju

MCP server for Torob: search, compare and price-check across shops. Read-only, no API key. 14 tools, hosted on Cloudflare Workers.

Видавецьmmdju
Репозиторійtorob-mcp
МоваTypeScript
Форки
6
Зірки
68
Доступні інструменти
0
Тип транспортуstdio, streamable-http
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    Torob MCP надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 68, форки: 6 — у пов’язаному репозиторії.

Torob MCP - Price comparison intelligence for AI agents

Torob MCP banner

Live verify 15 tools read-only no API key MIT

Real Torob knowledge for AI agents. Search Iran's price-comparison engine from any MCP client (Cline, Cursor, Claude Desktop...): prices in Toman, every seller's offer on one product, price history, Torob's own product guides, shop profiles, today's deals. Read-only, no API key, no login - and answers measured in kilobytes instead of the ~70KB search page they came from.

Live endpoint: https://torob-mcp.mmdju3.workers.dev/mcp (Streamable HTTP, stateless) - opening the bare address in a browser shows the site. GET /mcp gives a browser the connect page and every other client a 405 - the answer the MCP transport asks for, so no client reads the page as a stream that opened and ended.

[!IMPORTANT] The hosted copy is not the main version - it is a quick-test demo. It runs on Cloudflare, and Torob challenges some addresses outright, so it is rate limited (20 /mcp calls a minute per client IP) and paused from time to time. For real use, run the main version on your own machine (below): no limit of ours, and its calls come from your own connection. See Status.

نسخه فارسی · Examples · Tool reference · Changelog

Connect in 30 seconds

Any MCP client, one URL. Cline / Cursor / Claude Desktop (mcp.json style):

json
{
  "mcpServers": {
    "torob": { "url": "https://torob-mcp.mmdju3.workers.dev/mcp" }
  }
}

Then just talk: "ارزون‌ترین آیفون ۱۳ کجاست؟", "هدفون زیر ۱۰ میلیون", "این گوشی رو کجا بخرم بهتره؟", "چی تخفیف خورده؟".

No client at hand? The whole protocol is one POST - a real call:

bash
curl -sS https://torob-mcp.mmdju3.workers.dev/mcp \
  -H 'content-type: application/json' \
  -H 'accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_products","arguments":{"query":"هدفون بی سیم","limit":2}}}'

And the answer that comes back inside that one message, trimmed to its bones:

json
{
  "query": "هدفون بی سیم",
  "total_matches": 412,
  "total_matches_note": "Torob's own count is approximate - it changes between identical requests - so page with has_next_page rather than trusting the number.",
  "price_range_toman": { "min": 98000, "max": 2500000 },
  "products": [
    {
      "prk": "prk-a1b2c3d4-0000-4000-8000-000000000001",
      "name_fa": "هدفون بی‌سیم مدل P47",
      "price_toman": 238970,
      "available": true,
      "shop_name": "فروشگاه لوازم دیجیتال",
      "url": "https://torob.com/p/prk-a1b2c3d4-0000-4000-8000-000000000001/",
      "details_url": "https://api.torob.com/v4/base-product/details/?search_id=s1&prk=prk-a1b2c3d4-0000-4000-8000-000000000001"
    },
    {
      "prk": "prk-a1b2c3d4-0000-4000-8000-000000000002",
      "name_fa": "هدفون بلوتوثی مدل P9",
      "price_toman": 410000,
      "available": true,
      "shop_name": "پخش عمومی صوت",
      "url": "https://torob.com/p/prk-a1b2c3d4-0000-4000-8000-000000000002/"
    }
  ],
  "attribution": "Data comes from Torob's public web API. Prices, stock and seller offers change constantly - always confirm on torob.com before buying."
}

Agents running in a browser work too - the endpoint answers CORS preflights (OPTIONS /mcp).

Or run it on your own machine

The same fifteen tools as a local process - no endpoint of ours, no rate limit of ours. What a run learns goes in ~/.torob-mcp/state.json: the product names and links it found, and the wall it is waiting out. A restart keeps both; deleting that file starts you over.

One line - the first run is slower because npm builds it, and git must be installed, since one dependency (fa-text-utils) is fetched from a git repository:

json
{
  "mcpServers": {
    "torob": { "command": "npx", "args": ["-y", "github:mmdju/torob-mcp"] }
  }
}

Or from a clone, if you would rather run code you can read:

bash
git clone https://github.com/mmdju/torob-mcp.git
cd torob-mcp && npm install      # the prepare script builds dist/
json
{
  "mcpServers": {
    "torob": { "command": "node", "args": ["/path/to/torob-mcp/dist/index.js"] }
  }
}

15 tools, grouped by the question

Find it

ToolWhat it answers
torob_suggestVague wording to the search terms Torob itself suggests
search_products"Show me X", price checks - filters, sorting, paging, price window
search_by_image"What is this?" - products matched to a picture link, no upload
browse_categoriesWalk Torob's category tree, with each category's product count
list_locationsProvince and city ids, plus the cities shoppers pick most

Know one product

ToolWhat it answers
product_detailsOne product plus every seller's offer - online and in person - with the spec tables and the full price window
product_guide"Should I buy this?" - Torob's own write-up of one model: what it is, its strengths and weaknesses, what buyers said
price_history"Is now a good time to buy?" - Torob's own price chart, month by month, and when it last moved

Decide

ToolWhat it answers
similar_products"That one is too expensive, what else?"
compare_products"Which of these?" - only what actually differs, plus the price spread
find_best_value"Best X under Y Toman" - ranked by what your budget actually reaches

Shops and sellers

ToolWhat it answers
shop_profile"Is this seller any good?" - Torob's own notes, seal, score, delivery terms, and the shop's catalogue
find_shopsFind a shop by name or city, when the user names a store rather than a product

What is hot

ToolWhat it answers
torob_trendsWhat shoppers are searching right now, each with a sample product
special_offersToday's featured deals, kept separate from any product's seller list

Every tool is read-only (readOnlyHint: true) and needs no credentials. Nothing here can order, message or contact a shop.

Using it well

  • All prices are in Toman (1 Toman = 10 Rial). Prices, stock and shop grades move constantly - always link the product URL so the user can confirm before buying.
  • A search card is one price - the cheapest offer. product_details is the call that lists every seller, and its price_spread_toman is the whole reason a price-comparison source exists. It also returns the shops that sell in person, with each shelf price's age - so say how old it is.
  • A seller's url is the shop's page on torob.com. The buy button's link is a tracked api.torob.com redirect that travels separately as buy_url - keep url in the answer, reach for buy_url only when the user is about to click through.
  • price_history is the honesty check on a price. Compare today's cheapest offer with what Torob charts; the series labels are Torob's own, so quote them rather than inventing a trend.
  • price_toman: null means not available, never 0 - and 0 is never free: Torob's own "not for sale" comes back as available: false. price_unreliable: true is Torob saying the price cannot be trusted: pass the warning on, do not present it as a bargain.
  • A shop grade needs its vote count. shop_score: 5 with shop_votes: 0 is normal and means "no votes yet", not "five-star shop".
  • An empty result is not proof a product does not exist. The response carries query_note and Torob's own suggested_queries - retry with one of those instead of telling the user it is unavailable.
  • An unknown filter slug or value is refused with the real ones (available_filters carries every group's accepted values). Torob ignores what it does not know and answers unfiltered, which is exactly why this server refuses first.
  • Torob answers a client that calls too fast with a bot challenge instead of data. The server reports it plainly, never solves or evades it, and holds the rest of a burst for the whole cooldown. Details in SECURITY.md.
  • Results are capped (default 10, each tool's own maximum in docs/tools.md) to protect agent context, and Persian wording is folded (Arabic yeh/kaf, mixed digits, ZWNJ) when names are compared - the query reaches Torob exactly as typed.
  • examples/sample-calls.md has eleven copy-paste flows, docs/tools.md every parameter and filter slug, and docs/card.d.ts the response types.

How it works

How a question becomes an answer. No user data is stored anywhere in this path.

  • Stateless. Every request stands alone - no sessions, no accounts, nothing to log in to.
  • Read-only. All 15 tools carry readOnlyHint. Nothing can change, delete or order anything.
  • Projected, not passed through. A Torob search page is roughly 70KB of ranking metadata and experiment plumbing; every tool returns a compact record instead, with the seller list as a first-class offers[] array.
  • No user data. What the server does keep: a short-lived response cache and a small map of product ids it handed out.
  • Rate-aware by necessity. Upstream calls run one at a time with a 1.5s gap, and a challenge closes a gate the whole server shares instead of opening a retry storm.
  • Undocumented upstream. Torob's API can change without notice, which is exactly why the verify script exists.

Trust, verified

Don't take my word for it - check the live server yourself:

bash
node scripts/verify-live.mjs   # needs Node.js 18+, nothing to install

It drives the real endpoint the way an MCP client does and compares the version the live service reports against the newest release here, so a deployment that lags these docs cannot stay quiet. The same script runs hourly in CI (Live verify); a bot challenge is reported without failing the run, because it is upstream's answer to a fast caller rather than a broken deploy. The unit suite - the badge that means the code is healthy - runs on every push (Test). Full path, including why a product id is not an address upstream: docs/architecture.md. Copy-paste client: examples/python.py.

Run it yourself

bash
npm install      # two runtime dependencies: the MCP SDK and a small Persian text helper
npm test         # builds, then runs every test in the repo
npm run dev      # the same Worker the live service runs, on your machine
npm run probe    # re-checks every upstream endpoint this server reads

Nothing to configure: no account, no key, no database, no bindings. npm run build && npx wrangler deploy puts your own copy on your own Cloudflare account.

Status

There are two versions, and the one to use is the one on your machine.

  • The main version is this repository, run by you: npx -y github:mmdju/torob-mcp, or a clone plus node dist/index.js. It has no limit of ours, and its calls come from your own connection.
  • A quick-test copy is hosted for a first look at https://torob-mcp.mmdju3.workers.dev/mcp - free, read-only, keyless, at most 20 /mcp calls a minute per client IP (HTTP 429 with retry-after past that), and Torob pauses it from time to time. Both stops say so in their own text and name the main version, so nobody is left thinking the tools are broken.

Why it gets paused: Torob answers some addresses with a challenge page instead of data, and what it judges is the address, not what a client sends (measured 2026-10-09: every request shape answered from one connection, while a Cloudflare Worker drew the challenge page on its third call of the minute - a Worker's subrequests carry Cloudflare's Cf-Worker header, which cannot be removed). An address can also be blocked outright with nothing wrong at all (measured 2026-10-12: one request answered in full, the next 40 seconds later challenged, still challenged after five idle minutes) - so some addresses are simply refused, and no header or setting here fixes that. If your own copy keeps being challenged, the only thing you can change is where the calls come from: run it locally, or point TOROB_API_BASE at a relay you control (every upstream call, and every details_url it hands out, goes through that base) - worth trying, not a guarantee. The measurements are in the changelog, the behaviour in SECURITY.md.

Data source

Torob's public web API (undocumented, may change without notice). This project is not affiliated with or endorsed by Torob.

License

MIT - see LICENSE. Security notes in SECURITY.md. Persian version in README_FA.md.

If this is useful, a star helps other builders find it.

Встановлення

TypingMind
{
  "mcpServers": {
    "torob-mcp": {
      "command": "node",
      "args": [
        "dist/index.js"
      ]
    }
  }
}

Використовуйте MCP Torob MCP з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення Torob MCP ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ви можете запустити MCP локально на своєму пристрої або підключитися до віддаленого сервера MCP за URL.

Варіант 1: використовуйте локальний конектор

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте Torob MCP як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP Torob MCP.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "torob-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "torob-mcp"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для Torob MCP, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для Torob MCP.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через Torob MCP?
Torob MCP
Звісно. Я це прочитав.
Ось що я знайшов за допомогою Torob MCP.

Варіант 2: додайте URL сервера MCP

Виберіть цей варіант, якщо Torob MCP уже розміщено віддалено або вашій команді потрібен один спільний конектор для кількох користувачів.

1

Відкрийте конектори MCP

У TypingMind перейдіть до розділу «Плагіни», відкрийте «Конектори MCP» і виберіть «Додати URL».

  1. Відкрийте TypingMind у браузері.
  2. Перейдіть до розділу «Плагіни».
  3. Відкрийте конектори MCP.
  4. Натисніть «Додати URL».
Форма «Додати URL власного сервера MCP» у TypingMind
2

Вставте URL сервера

Введіть https://torob-mcp.mmdju3.workers.dev/mcp у поле «URL сервера». Додайте назву підключення, опис, значок, власні HTTP-заголовки або налаштування клієнта OAuth, якщо сервер їх потребує.

  1. Вставте https://torob-mcp.mmdju3.workers.dev/mcp у поле «URL сервера».
  2. Введіть назву підключення для Torob MCP.
  3. Додайте опис і значок, щоб було легше впізнати підключення.
  4. Додайте власні HTTP-заголовки або дані клієнта OAuth, якщо сервер потребує автентифікації.
3

Створіть підключення

Натисніть «Створити підключення», потім поверніться до списку плагінів і переконайтеся, що нове підключення MCP активне.

  1. Натисніть «Створити підключення».
  2. Поверніться до списку конекторів MCP.
  3. Переконайтеся, що підключення Torob MCP відображається як активне.
  4. Оновіть список плагінів, якщо підключення не з’явилося одразу.
4

Перемикайте моделі без повторного підключення

Почніть чат із бажаною моделлю, увімкніть інструменти Torob MCP у розділі «Плагіни» й за потреби перемикайтеся на іншу модель. Підключення MCP залишається доступним у робочому просторі TypingMind.

  1. Почніть новий чат у TypingMind.
  2. Виберіть модель ШІ, яку хочете використовувати.
  3. Увімкніть інструменти Torob MCP у розділі «Плагіни».
  4. За потреби попросіть модель скористатися інструментом.
  5. Перемкніться на іншу модель ШІ й використовуйте те саме підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через Torob MCP?
Torob MCP
Звісно. Я це прочитав.
Ось що я знайшов за допомогою Torob MCP.

Поширені запитання

Для чого використовується сервер MCP Torob MCP?

Torob MCP — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP Torob MCP з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати Torob MCP з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP Torob MCP із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши Torob MCP, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP Torob MCP до TypingMind?

Torob MCP можна підключити в TypingMind через локальний конектор MCP або додавши URL віддаленого сервера MCP. Використовуйте локальний конектор, коли серверу потрібен доступ до файлів, застосунків або приватних ресурсів на вашому пристрої, а URL сервера — коли сервер MCP розміщено віддалено.

Які інструменти надає MCP Torob MCP у TypingMind?

Torob MCP надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP Torob MCP?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо Torob MCP потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇