Search and read Urdu, Arabic and Persian Islamic books in Mufti Muhammad Qamarul Hasan's library.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Full OCR text of a page (id "<doc_id>:<page>" from search) or of up to 5 consecutive pages ("<doc_id>:<page>-<page2>"), with book, author, volume, printed page, prev/next ids, url (the text page, else the scan) and scan_url (the scanned page). Inline tags mark <quran ref="sura:ayah">, <hadith>, <arabic>, <persian>, <poetry>. A page without OCR says so. A contents page lists its entries with the id and url of the page each one links to.
The id exactly as search returned it (it may end in "?b=…&q=…", which makes the returned url highlight the passage), or "<doc_id>:<page>" / "<doc_id>:<page>-<page2>" (max 5 pages).
Optional: words to highlight on the page (the search words).
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http maktaba https://maktaba.muftiqamar.com/mcp
Full OCR text of a page (id "<doc_id>:<page>" from search) or of up to 5 consecutive pages ("<doc_id>:<page>-<page2>"), with book, author, volume, printed page, prev/next ids, url (the text page, else the scan) and scan_url (the scanned page). Inline tags mark <quran ref="sura:ayah">, <hadith>, <arabic>, <persian>, <poetry>. A page without OCR says so. A contents page lists its entries with the id and url of the page each one links to.
| Argument | Type | Description |
|---|---|---|
| id* | string | The id exactly as search returned it (it may end in "?b=…&q=…", which makes the returned url highlight the passage), or "<doc_id>:<page>" / "<doc_id>:<page>-<page2>" (max 5 pages). |
| query | string | Optional: words to highlight on the page (the search words). |
{
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The id exactly as search returned it (it may end in \"?b=…&q=…\", which makes the returned url highlight the passage), or \"<doc_id>:<page>\" / \"<doc_id>:<page>-<page2>\" (max 5 pages)."
},
"query": {
"type": "string",
"description": "Optional: words to highlight on the page (the search words)."
}
}
}Details of one book: titles, author, publisher, year, language, section, description (Urdu and English), keywords, text coverage, and every volume with its doc_id, pages, pages with text and reader url of page 1, plus missing volumes. `book` = work number or title words (candidates or suggestions if ambiguous).
| Argument | Type | Description |
|---|---|---|
| book* | string | Work number (e.g. "46") or title words in any script. |
{
"type": "object",
"required": [
"book"
],
"properties": {
"book": {
"type": "string",
"description": "Work number (e.g. \"46\") or title words in any script."
}
}
}Catalogue entries (number, titles in Urdu/Arabic, romanized and English, author, language, section, volumes, pages, pages with text, url). `query` = title/author words in any script (spelling-tolerant; 'did you mean' suggestions when nothing matches); `section` = one topic; neither = whole catalogue in compact rows. Use the number as `book` in `search` / `get_book`.
| Argument | Type | Description |
|---|---|---|
| query | string | Optional title/author words (any script). |
| section | string | Optional topic key: own (works of Mufti Muhammad Qamarul Hasan himself, and a few writings about him), quran (Quran & Quranic sciences), tafsir (tafsir), hadith (hadith), fiqh (fiqh & usul), fatawa (fatawa), aqidah (aqidah & kalam), munazara (polemics & refutations), tasawwuf (tasawwuf), sirah (sirah & virtues of the Prophet ﷺ), manaqib (manaqib), tarikh (history), tazkira (biography), poetry (poetry (naat, qasida)), language (Arabic language), mantiq (logic & philosophy), adab (literature & misc.), other (other), notref (other material, not reference books (mostly not OCR'd)). |
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Optional title/author words (any script)."
},
"section": {
"type": "string",
"description": "Optional topic key: own (works of Mufti Muhammad Qamarul Hasan himself, and a few writings about him), quran (Quran & Quranic sciences), tafsir (tafsir), hadith (hadith), fiqh (fiqh & usul), fatawa (fatawa), aqidah (aqidah & kalam), munazara (polemics & refutations), tasawwuf (tasawwuf), sirah (sirah & virtues of the Prophet ﷺ), manaqib (manaqib), tarikh (history), tazkira (biography), poetry (poetry (naat, qasida)), language (Arabic language), mantiq (logic & philosophy), adab (literature & misc.), other (other), notref (other material, not reference books (mostly not OCR'd))."
}
}
}Full-text search over the OCR text of the Maktaba-e-Qamar books (Urdu/Arabic/Persian, Hanafi/Barelvi). Search works best with 1-4 distinctive Urdu or Arabic keywords, not whole sentences. Try both scripts and spelling variants in separate searches (Urdu نماز / Arabic صلاة, ص/س, ة/ت, old spellings like صلوٰة, singular/plural). ی/ي, ک/ك, ہ/ھ, harakat, hamza forms, with/without ال, particles (کا، کی، میں، في، على) and old orthography (مین = میں) are handled automatically. Romanized and English queries are machine-transliterated (see searched_as) and less precise; prefer typing Urdu/Arabic yourself. Optional `book` limits the search to one book (work number like "46" or title/author words in any script; all volumes; if several books match, all are searched and listed in `books` with their text coverage). Returns one result per page: {id, title, url (the page as text on the library site when the book's text is public, else the scan), scan_url, text, metadata}; index_entry results are table-of-contents lines (points_to_page = the printed book page; target_url / target_id = the page it links to, open it to read the actual discussion). Use `fetch` with the id to read the page.
| Argument | Type | Description |
|---|---|---|
| book | string | Optional: work number ("46") or book title/author words, e.g. "شامی", "Radd-ul-Muhtar". |
| limit | integer | Max pages to return (default 10, max 25). |
| query* | string | Keywords (Urdu or Arabic script preferred; English / romanized accepted). |
| meaning | boolean | Optional: true = search by meaning (semantic) instead of words: for a question or concept in any language whose wording may differ from the book's (e.g. "patience in hardship"). Keyword search already adds meaning-based pages when it finds few. |
We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Dec 3, 2026.
| section | string | Optional topic key: own (works of Mufti Muhammad Qamarul Hasan himself, and a few writings about him), quran (Quran & Quranic sciences), tafsir (tafsir), hadith (hadith), fiqh (fiqh & usul), fatawa (fatawa), aqidah (aqidah & kalam), munazara (polemics & refutations), tasawwuf (tasawwuf), sirah (sirah & virtues of the Prophet ﷺ), manaqib (manaqib), tarikh (history), tazkira (biography), poetry (poetry (naat, qasida)), language (Arabic language), mantiq (logic & philosophy), adab (literature & misc.), other (other), notref (other material, not reference books (mostly not OCR'd)). |
{
"type": "object",
"required": [
"query"
],
"properties": {
"book": {
"type": "string",
"description": "Optional: work number (\"46\") or book title/author words, e.g. \"شامی\", \"Radd-ul-Muhtar\"."
},
"limit": {
"type": "integer",
"maximum": 25,
"minimum": 1,
"description": "Max pages to return (default 10, max 25)."
},
"query": {
"type": "string",
"description": "Keywords (Urdu or Arabic script preferred; English / romanized accepted)."
},
"meaning": {
"type": "boolean",
"description": "Optional: true = search by meaning (semantic) instead of words: for a question or concept in any language whose wording may differ from the book's (e.g. \"patience in hardship\"). Keyword search already adds meaning-based pages when it finds few."
},
"section": {
"type": "string",
"description": "Optional topic key: own (works of Mufti Muhammad Qamarul Hasan himself, and a few writings about him), quran (Quran & Quranic sciences), tafsir (tafsir), hadith (hadith), fiqh (fiqh & usul), fatawa (fatawa), aqidah (aqidah & kalam), munazara (polemics & refutations), tasawwuf (tasawwuf), sirah (sirah & virtues of the Prophet ﷺ), manaqib (manaqib), tarikh (history), tazkira (biography), poetry (poetry (naat, qasida)), language (Arabic language), mantiq (logic & philosophy), adab (literature & misc.), other (other), notref (other material, not reference books (mostly not OCR'd))."
}
}
}