Skip to main content

taaghche-mcp: Taaghche MCP server for AI agents

Unofficial, read-only MCP server that lets your AI agent search Taaghche (طاقچه), the Iranian ebook and audiobook store: compare prices and formats, read reviews, browse bestsellers, new and free books.

Covers about 220,000 Persian and translated ebooks and audiobooks on taaghche.com, prices in Toman. No API key, no account. Works with Claude, Cursor and Copilot.

Quick start · Tools · FAQ · فارسی


For AI agents

  • What: Unofficial MCP server for Taaghche (طاقچه, taaghche.com), an Iranian ebook and audiobook store. Queries in Persian work best; prices in Toman.
  • Install: claude mcp add taaghche -- uvx taaghche-mcp (stdio, needs uv and Python 3.10+).
  • Auth: none. Optional TAAGHCHE_MCP_PROXY sets an HTTP proxy for every request.
  • Access: read-only. It cannot log in, buy, review or touch a library.
  • Tools: 12, all prefixed tg_. Start with tg_search, tg_book, tg_reviews, tg_bestsellers, tg_free_books.
  • Typical sequence: tg_search -> tg_book -> tg_reviews or tg_similar.
  • Use when: the user wants to find an Iranian ebook or audiobook, compare price and format, read reader reviews, or list bestsellers, new releases and free books.
  • Do not use when: the user wants to buy, borrow or read a book, or needs the user's own library or orders.
  • Output: compact JSON. Prices in Toman (final_price is what you pay), rating 0-5, numeric book ids to pass between tools, paging with next_cursor.
  • Machine-readable: server.json, and the catalog of all Iranian MCP servers awesome-iran-mcp (TOOLS.md, servers.json, llms.txt).

Quick start

You need uv.

claude mcp add taaghche -- uvx taaghche-mcp

Any other MCP client (Claude Desktop, Cursor, VS Code): run uvx taaghche-mcp as a stdio server (or pip install taaghche-mcp and run taaghche-mcp), e.g.

{
  "mcpServers": {
    "taaghche": { "command": "uvx", "args": ["taaghche-mcp"] }
  }
}

Then ask, for example:

  • "Is there an audiobook of شازده کوچولو, and which edition is the cheapest?"
  • "Free audiobooks about history, most downloaded first."
  • "What do readers say about book 6426? Show the most liked reviews."
  • پرفروش‌ترین کتاب‌های روان‌شناسی زیر ۱۰۰ هزار تومان کدامند؟

How it works

taaghche-mcp runs locally and calls the same public JSON endpoints the taaghche.com website uses (get.taaghche.com for books, reviews, lists and search, explore.taaghche.com for suggestions; the category menu is read from the home page). No hosted server in between. API map and quirks: ../taaghche/.

Tools

All 12 tools are annotated readOnlyHint: true and return compact structured JSON.

Find and read a book

Tool What it does
tg_search Search by title, author or topic; format ebook / audiobook; sort (relevance, bestselling, cheapest, newest, ...); discounted, free, subscription, price range
tg_suggest Typeahead: matching titles with their publisher
tg_book Price and discount, format, pages or listening time, publisher, translator, narrator, rating breakdown, review count, categories, ISBN, availability
tg_reviews Reader reviews (most liked first) with stars and likes; replies to one review
tg_similar Similar books, other books of the same author and publisher

Browse

Tool What it does
tg_categories The category tree for ebooks and audiobooks with ids and slugs
tg_browse A category or the whole catalog: format, sort, price ceiling, discounted, free; 16 per page
tg_bestsellers The hottest books («داغ‌ترین»), overall or per category and format
tg_new_releases Newest books, overall or per category and format
tg_free_books Free books and audiobooks, most downloaded first
tg_author An author's profile (nationality, life dates, biography) and books
tg_publisher A publisher's description and books

Good to know

  • Prices are in Toman. The API returns Toman (book 6426 is 58500 in the API and ۵۸,۵۰۰ تومان on the page). final_price is what you pay, price is before discount, discount_pct a whole percent, free is true for 0.
  • The site cannot filter by price, so the price range is applied here. tg_search applies min_price, max_price and free_only to the results it scans (up to 5 pages of 12); the browse tools, tg_author and tg_publisher do the same with max_price (up to 5 pages of 16). scanned tells how many books were looked at; with sort="cheapest" the ceiling is exact and the scan stops early. Only free and discounted lists are filtered by the site.
  • Paging: tg_search returns 12 books per page, the browse tools and tg_author / tg_publisher 16. Pass next_cursor back as cursor with the same other arguments.
  • «Bestsellers» is the site's «hot» ranking. Taaghche publishes no sales numbers; for the true best-selling order of a keyword use tg_search(sort="bestselling").
  • Binahayat (بی‌نهایت) subscription: in_subscription marks books included in it; the price is for buying the book permanently.
  • Dates ending _fa are Persian (Jalali).
  • Persian queries match best.

Configuration

Variable Default Meaning
TAAGHCHE_MCP_PROXY unset HTTP proxy for every request, e.g. http://user:pass@host:port (system proxy variables are ignored)

FAQ

Is there a Taaghche API or MCP server for AI agents? Yes: this unofficial MCP server wraps the public JSON endpoints the taaghche.com website itself uses, so Claude, Cursor or Copilot can search books and read prices and reviews.

Is it official, safe and free? It is unofficial, open source (MIT) and free. It is read-only, needs no account or API key, and runs on your machine with no hosted server in between.

Can it buy or read a book for me? No. It only reads public catalog data: search, prices, reviews and lists. Buying and reading happen on taaghche.com or in the Taaghche app.

فارسی: سرور MCP طاقچه

taaghche-mcp یک سرور MCP غیررسمی برای طاقچه است که به دستیار هوش مصنوعی شما (Claude، Cursor، Copilot و ...) اجازه می‌دهد در میان کتاب‌های الکترونیکی و صوتی ایران جستجو کند، قیمت و قالب نسخه‌ها را مقایسه کند، نظر خوانندگان را بخواند و پرفروش‌ها، تازه‌ها و کتاب‌های رایگان را ببیند.

  • فقط خواندنی است و حساب کاربری یا کلید API نمی‌خواهد.
  • همه قیمت‌ها به تومان است.

بپرسید: «پرفروش‌ترین کتاب‌های روان‌شناسی زیر ۱۰۰ هزار تومان کدامند؟»

Development

export HTTPS_PROXY=http://127.0.0.1:10898 HTTP_PROXY=http://127.0.0.1:10898   # uv downloads only
uv sync
uv run ruff check . && uv run ruff format --check .
uv run pytest -q            # offline, on recorded fixtures
uv run pytest -m live -q    # real API

If this saves you clicks, a star helps others find it.

License

MIT

Metadata

Release files for taaghche-mcp 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for taaghche-mcp 0.1.1
File Size Uploaded Provenance
taaghche_mcp-0.1.1.tar.gz 127.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for taaghche-mcp 0.1.1
File Interpreter ABI Platform
taaghche_mcp-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 147.4 kB

Release files / taaghche_mcp-0.1.1.tar.gz

Download URL taaghche_mcp-0.1.1.tar.gz
Size 127.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5450986f35ef3a8a2f9a9d09f0922e092fe6e14c9cc140052d42c264a00cbfb9
BLAKE2b-256 checksum
How to use checksums
bb3ee2c5276649470b769229f937b6868df08d708aff6b172bcdeba0a31f5b64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Release files / taaghche_mcp-0.1.1-py3-none-any.whl

Download URL taaghche_mcp-0.1.1-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7739c6fe4e359a65523151a5ae60bf7d7cf8050e74cf2147ed1d7e0f1602581c
BLAKE2b-256 checksum
How to use checksums
c9222a68b8924066d303fe005407506f7448867ce4d00aa1117c20486b4cf845
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

Security for taaghche-mcp 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for taaghche_mcp-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page