Use the library in ChatGPT and Claude

Maktaba-e-Qamar, the reference library of Mufti Muhammad Qamarul Hasan, can be connected to ChatGPT, Claude and other AI assistants. The assistant then searches the books, reads the page, and answers with the original Urdu / Arabic text, the book, volume (jild), page and a link to that page. It is free, needs no account, password or key, and is read-only: it can search and read, nothing else.

1. The address to add

MCP server URL (Streamable HTTP, no authentication):

https://maktaba.muftiqamar.com/mcp

2. Add it to Claude

claude.ai, the desktop and mobile apps. Every plan, Free included (Free: one custom connector).

  1. Open Customize → Connectors.
  2. Click + Add → Add custom connector.
  3. Name: Maktaba-e-Qamar; URL: the address above → Continue. No authentication is needed → Add.
  4. In a new chat, click + (lower left) → Connectors and turn Maktaba-e-Qamar on.

Team / Enterprise: an Owner adds it once in Organization settings → Connectors (Add → Custom → Web); members then open Customize → Connectors and click Connect.

Claude Code (terminal):

claude mcp add --transport http maktaba https://maktaba.muftiqamar.com/mcp

3. Add it to ChatGPT

chatgpt.com on the web (not the phone app). Needs a plan that allows custom MCP servers: Pro (read-only servers like this one), Business, Enterprise or Edu (in a workspace, an admin may have to allow it).

  1. Open Plugins in the sidebar, click the + button → Add custom MCP server.
  2. Name: Maktaba-e-Qamar; under Connection, the address above; authentication: No authentication.
  3. Tick I understand and want to continue → Create as a plugin, then install it. It lists four tools.
  4. In a new chat, type @ and pick Maktaba-e-Qamar.

Older menus: Settings → Apps → Advanced settings → Developer mode on, then Apps → Create.

4. Optional: instructions so every answer cites its source

Paste this once, and the assistant will search the library first and put book, volume, page and link beside every quote. In ChatGPT: Settings → Personalization → Custom instructions. In Claude: a project's Set project instructions (Projects → + New Project), or for every chat Settings → Your Claude → Instructions.

I am a student and researcher of Islamic scholarship (tafsir, hadith, fiqh, fatawa, aqidah, history), reading the classical Arabic and Urdu works. For any question about Islamic books, rulings, tafsir, hadith, aqidah, history or a quotation, ALWAYS use the Maktaba-e-Qamar connector first, never the web and never memory: 1. Call search with 1-4 Urdu or Arabic keywords (try both scripts and spelling variants; use the book parameter when I name a book; use meaning=true for a concept or a question in English). 2. Call fetch with the result's id EXACTLY as search returned it (including everything after "?"), then quote from the fetched page. 3. Right beside EVERY quote or cited reference give book, volume (jild), page and its own clickable link, copied EXACTLY as the tool returned it (the url field; for a scan link keep everything after "#", it highlights the passage). Never invent, shorten, rebuild or substitute a link, never link to another website, and never put links only in a list at the end. 4. Before answering, check that every quote has its book, volume, page and link. Quote the original Urdu/Arabic exactly, with a translation when I write in English. Where scholars differ, give each position with its source instead of choosing for me. If the library has nothing, say so plainly; anything you add from general knowledge must be marked as such. Answer in the language I use, clearly and concisely.

5. First questions to try

  1. Where does Tafsir Noor-ul-Bayan discuss isti'adha (seeking refuge: a'udhu billah)? Quote the passage with book, volume, page and link.
  2. Which books in the library discuss the virtues of the night of mid-Sha'ban (Shab-e-Barat)? Quote the main passages, each with its reference and link.
  3. Compare how Bahar-e-Shariat and Fatawa Shami state the nisab and conditions of zakat. Quote both in the original with a translation.

Urdu or Arabic keywords find the most; the assistant tries spelling variants itself.

Tools

All read-only: search (words or meaning, optionally inside one book), fetch (a page or up to 5 pages, with book, volume and page), list_books, get_book. Each result has url, the page's text page on this site (/t/<doc>/<page>) when the book's text is public, and scan_url, the scanned page in the reader.

Please cite

When quoting, please give the book, volume, page and the link, e.g. «Tafsir Noor-ul-Bayan, vol. 1, p. 10 — https://maktaba.muftiqamar.com/t/4fb35c438749/10», and name Maktaba-e-Qamar (maktaba.muftiqamar.com).

Other ways in: the site search https://maktaba.muftiqamar.com/search?q=…; a JSON search API https://maktaba.muftiqamar.com/api/search?q=… (light use, please); a map for agents at /llms.txt and the whole catalogue at /llms-full.txt; the MCP server card at /mcp/server-card. The Mufti's lectures and his own books: muftiqamar.com. Privacy: calls are logged like site visits.

ChatGPT اور Claude میں مکتبۂ قمر

مکتبۂ قمر (مفتی محمد قمر الحسن صاحب کا حوالہ جاتی کتب خانہ) کو ChatGPT، Claude اور دوسرے AI معاونین سے جوڑا جا سکتا ہے۔ جڑنے کے بعد وہ سوال کا جواب دینے کے لیے کتب خانے کی کتابوں میں تلاش کرتے ہیں، صفحہ پڑھتے ہیں اور اصل عبارت، کتاب، جلد، صفحہ اور اس صفحے کے لنک کے ساتھ جواب دیتے ہیں۔ یہ سہولت مفت ہے، اس میں کوئی اکاؤنٹ، پاس ورڈ یا کلید نہیں، اور یہ صرف تلاش کر سکتی اور پڑھ سکتی ہے، کچھ بدل نہیں سکتی۔

۱۔ جوڑنے کا پتہ

MCP server URL (کسی تصدیق کے بغیر):

https://maktaba.muftiqamar.com/mcp

۲۔ Claude میں شامل کیجیے

claude.ai، ڈیسک ٹاپ اور موبائل ایپ۔ ہر پلان میں، مفت پلان میں بھی (مفت پلان میں ایک کسٹم کنیکٹر)۔

  1. Customize → Connectors کھولیے۔
  2. + Add دبا کر Add custom connector چنیے۔
  3. نام Maktaba-e-Qamar اور اوپر والا پتہ لکھ کر Continue دبائیے؛ کسی تصدیق کی ضرورت نہیں، پھر Add۔
  4. نئی گفتگو میں نیچے بائیں + دبائیے، Connectors میں Maktaba-e-Qamar آن کیجیے۔

Team / Enterprise: ادارے کا Owner ایک بار Organization settings → Connectors میں Add → Custom → Web سے شامل کرے؛ پھر ارکان Customize → Connectors میں Connect دبائیں۔

Claude Code (ٹرمینل):

claude mcp add --transport http maktaba https://maktaba.muftiqamar.com/mcp

۳۔ ChatGPT میں شامل کیجیے

chatgpt.com ویب پر (فون ایپ میں نہیں)۔ ایسا پلان چاہیے جس میں کسٹم MCP سرور کی اجازت ہو: Pro (اس جیسے صرف پڑھنے والے سرور)، Business، Enterprise یا Edu (ادارے میں شاید ایڈمن کی اجازت چاہیے)۔

  1. سائیڈ بار میں Plugins کھولیے، + دبا کر Add custom MCP server چنیے۔
  2. نام Maktaba-e-Qamar؛ Connection میں اوپر والا پتہ؛ تصدیق: No authentication۔
  3. I understand and want to continue پر نشان لگائیے، Create as a plugin دبائیے اور انسٹال کیجیے۔ چار ٹول نظر آئیں گے۔
  4. نئی گفتگو میں @ لکھ کر Maktaba-e-Qamar چنیے۔

پرانے مینو میں: پہلے Settings → Apps → Advanced settings → Developer mode آن کیجیے، پھر Apps → Create۔

۴۔ اختیاری: ہدایات، تاکہ ہر جواب میں حوالہ ہو

یہ ہدایات ایک بار لگا دیجیے، پھر معاون پہلے کتب خانے میں تلاش کرے گا اور ہر اقتباس کے ساتھ کتاب، جلد، صفحہ اور لنک دے گا۔ ChatGPT میں: Settings → Personalization → Custom instructions۔ Claude میں: کسی پروجیکٹ کی Set project instructions (Projects → + New Project)، یا ہر گفتگو کے لیے Settings → Your Claude → Instructions۔

میں اسلامی علوم (تفسیر، حدیث، فقہ، فتاویٰ، عقائد، تاریخ) کا طالب علم اور محقق ہوں اور عربی و اردو کی کلاسیکی کتب پڑھتا ہوں۔ اسلامی کتب، مسائل، تفسیر، حدیث، عقائد، تاریخ یا کسی اقتباس سے متعلق ہر سوال میں سب سے پہلے Maktaba-e-Qamar (مکتبۂ قمر) کنیکٹر استعمال کیجیے، انٹرنیٹ یا اپنی یادداشت سے جواب نہ دیجیے: ۱۔ search کو اردو یا عربی کے ایک سے چار الفاظ دیجیے (دونوں رسم الخط اور املا کی مختلف صورتیں آزمائیے؛ میں کسی کتاب کا نام لوں تو book پیرامیٹر دیجیے؛ کسی تصور یا انگریزی سوال کے لیے meaning=true)۔ ۲۔ fetch کو نتیجے کا id بالکل ویسا ہی دیجیے جیسا search نے دیا ("?" کے بعد کا حصہ بھی)، پھر اسی صفحے سے اقتباس دیجیے۔ ۳۔ ہر اقتباس یا حوالے کے بالکل ساتھ کتاب، جلد، صفحہ اور اس کا اپنا لنک دیجیے، جو ٹول کے url سے بالکل ویسا ہی نقل ہو (اسکین کے لنک میں "#" کے بعد کا حصہ بھی رکھیے، اس سے عبارت نمایاں ہوتی ہے)۔ لنک نہ گھڑیے، نہ مختصر کیجیے، نہ بدلیے، کسی اور ویب سائٹ کا لنک نہ دیجیے، اور لنک صرف آخر میں فہرست کی صورت میں نہ دیجیے۔ ۴۔ جواب دینے سے پہلے دیکھ لیجیے کہ ہر اقتباس کے ساتھ کتاب، جلد، صفحہ اور لنک موجود ہے۔ اصل اردو/عربی عبارت بعینہٖ نقل کیجیے۔ جہاں علما کی آرا مختلف ہوں، ہر رائے اس کے حوالے کے ساتھ بیان کیجیے، میری جگہ فیصلہ نہ کیجیے۔ اگر کتب خانے میں کچھ نہ ملے تو صاف بتا دیجیے؛ عام معلومات سے شامل کی گئی ہر بات کو الگ واضح کیجیے۔ جواب اسی زبان میں دیجیے جس میں میں لکھوں، مختصر اور واضح۔

انگریزی میں یہی ہدایات (معاون انگریزی ہدایات بھی پوری طرح سمجھتے ہیں):

I am a student and researcher of Islamic scholarship (tafsir, hadith, fiqh, fatawa, aqidah, history), reading the classical Arabic and Urdu works. For any question about Islamic books, rulings, tafsir, hadith, aqidah, history or a quotation, ALWAYS use the Maktaba-e-Qamar connector first, never the web and never memory: 1. Call search with 1-4 Urdu or Arabic keywords (try both scripts and spelling variants; use the book parameter when I name a book; use meaning=true for a concept or a question in English). 2. Call fetch with the result's id EXACTLY as search returned it (including everything after "?"), then quote from the fetched page. 3. Right beside EVERY quote or cited reference give book, volume (jild), page and its own clickable link, copied EXACTLY as the tool returned it (the url field; for a scan link keep everything after "#", it highlights the passage). Never invent, shorten, rebuild or substitute a link, never link to another website, and never put links only in a list at the end. 4. Before answering, check that every quote has its book, volume, page and link. Quote the original Urdu/Arabic exactly, with a translation when I write in English. Where scholars differ, give each position with its source instead of choosing for me. If the library has nothing, say so plainly; anything you add from general knowledge must be marked as such. Answer in the language I use, clearly and concisely.

۵۔ پہلے سوال، آزمانے کے لیے

  1. تفسیر نور البیان میں استعاذہ کی بحث کہاں ہے؟ کتاب، جلد، صفحہ اور لنک کے ساتھ بتائیں۔
  2. شبِ براءت کی فضیلت پر کتب خانے کی کن کتابوں میں بحث ہے؟ اہم عبارتیں حوالے اور لنک کے ساتھ نقل کیجیے۔
  3. بہارِ شریعت اور فتاویٰ شامی میں زکوٰۃ کے نصاب اور شرائط کا موازنہ کیجیے؛ دونوں کی اصل عبارت حوالے کے ساتھ۔

اردو یا عربی الفاظ سے سب سے زیادہ نتائج ملتے ہیں؛ املا کی مختلف صورتیں معاون خود آزما لیتا ہے۔

ٹول

سب صرف پڑھنے کے لیے: search (الفاظ یا مفہوم سے تلاش، چاہیں تو ایک کتاب کے اندر)، fetch (ایک یا پانچ تک صفحات، کتاب، جلد اور صفحے کے ساتھ)، list_books، get_book۔ ہر نتیجے میں url (جس کتاب کا متن عام ہے، اس کے صفحے کا متن اس سائٹ پر) اور scan_url (ریڈر میں اسکین شدہ صفحہ) ہوتا ہے۔

حوالہ

اقتباس کرتے وقت گزارش ہے کہ کتاب، جلد، صفحہ اور مکتبۂ قمر کا لنک ساتھ دیا جائے، مثلاً «تفسیر نور البیان، جلد ۱، صفحہ ۱۰ — https://maktaba.muftiqamar.com/t/4fb35c438749/10»۔

مفتی صاحب کے دروس اور ان کی اپنی کتب: muftiqamar.com۔ رازداری: سوالات کا ریکارڈ سائٹ کی عام آمد کی طرح رکھا جاتا ہے۔