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 (or a comma-separated list) 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 top-level category tree for ebooks and audiobooks with ids and slugs; group adds one group's sub-categories
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). A comma-separated list is used one at a time: the next proxy takes over when one is blocked (403/429) or cannot connect

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 python -m pytest -q            # offline, on recorded fixtures
uv run python -m 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.3.0

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.3.0
File Size Uploaded Provenance
taaghche_mcp-0.3.0.tar.gz 144.5 kB With provenance Details

Built distribution (wheel)

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

Total release size: 167.5 kB

Release files / taaghche_mcp-0.3.0.tar.gz

Download URL taaghche_mcp-0.3.0.tar.gz
Size 144.5 kB
Tags Source
SHA-256 checksum
How to use checksums
eedbf14b00e379cb0d64e913ad787792d4d6ad1be09c7b26a8a451c1a8d20c77
BLAKE2b-256 checksum
How to use checksums
070970a7f85b0c8adcd9c89562d2ab62a11a9ad3f5ebb3ef77d97df58c6fe37b
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 18, 2026.

Transparency log

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

Download URL taaghche_mcp-0.3.0-py3-none-any.whl
Size 23.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5301215c4dd5a8d06cee8f26764dc25e3e6408295a191d2d967d93b160edd4f6
BLAKE2b-256 checksum
How to use checksums
cd8ac4c14129826780a061774cc2a6dd10707d56d294d395fd5257af3d4d6d7d
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 18, 2026.

Transparency log

Security for taaghche-mcp 0.3.0

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.3.0.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 18, 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