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/mcp2. Add it to Claude
claude.ai, the desktop and mobile apps. Every plan, Free included (Free: one custom connector).
- Open Customize → Connectors.
- Click + Add → Add custom connector.
- Name: Maktaba-e-Qamar; URL: the address above → Continue. No authentication is needed → Add.
- 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/mcp3. 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).
- Open Plugins in the sidebar, click the + button → Add custom MCP server.
- Name: Maktaba-e-Qamar; under Connection, the address above; authentication: No authentication.
- Tick I understand and want to continue → Create as a plugin, then install it. It lists four tools.
- 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.
5. First questions to try
- Where does Tafsir Noor-ul-Bayan discuss isti'adha (seeking refuge: a'udhu billah)? Quote the passage with book, volume, page and link.
- 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.
- 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، ڈیسک ٹاپ اور موبائل ایپ۔ ہر پلان میں، مفت پلان میں بھی (مفت پلان میں ایک کسٹم کنیکٹر)۔
- Customize → Connectors کھولیے۔
- + Add دبا کر Add custom connector چنیے۔
- نام Maktaba-e-Qamar اور اوپر والا پتہ لکھ کر Continue دبائیے؛ کسی تصدیق کی ضرورت نہیں، پھر Add۔
- نئی گفتگو میں نیچے بائیں + دبائیے، 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 (ادارے میں شاید ایڈمن کی اجازت چاہیے)۔
- سائیڈ بار میں Plugins کھولیے، + دبا کر Add custom MCP server چنیے۔
- نام Maktaba-e-Qamar؛ Connection میں اوپر والا پتہ؛ تصدیق: No authentication۔
- I understand and want to continue پر نشان لگائیے، Create as a plugin دبائیے اور انسٹال کیجیے۔ چار ٹول نظر آئیں گے۔
- نئی گفتگو میں @ لکھ کر 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۔
انگریزی میں یہی ہدایات (معاون انگریزی ہدایات بھی پوری طرح سمجھتے ہیں):
۵۔ پہلے سوال، آزمانے کے لیے
- تفسیر نور البیان میں استعاذہ کی بحث کہاں ہے؟ کتاب، جلد، صفحہ اور لنک کے ساتھ بتائیں۔
- شبِ براءت کی فضیلت پر کتب خانے کی کن کتابوں میں بحث ہے؟ اہم عبارتیں حوالے اور لنک کے ساتھ نقل کیجیے۔
- بہارِ شریعت اور فتاویٰ شامی میں زکوٰۃ کے نصاب اور شرائط کا موازنہ کیجیے؛ دونوں کی اصل عبارت حوالے کے ساتھ۔
اردو یا عربی الفاظ سے سب سے زیادہ نتائج ملتے ہیں؛ املا کی مختلف صورتیں معاون خود آزما لیتا ہے۔
ٹول
سب صرف پڑھنے کے لیے: search (الفاظ یا مفہوم سے تلاش، چاہیں تو ایک کتاب کے اندر)، fetch (ایک یا پانچ تک صفحات، کتاب، جلد اور صفحے کے ساتھ)، list_books، get_book۔ ہر نتیجے میں url (جس کتاب کا متن عام ہے، اس کے صفحے کا متن اس سائٹ پر) اور scan_url (ریڈر میں اسکین شدہ صفحہ) ہوتا ہے۔
حوالہ
اقتباس کرتے وقت گزارش ہے کہ کتاب، جلد، صفحہ اور مکتبۂ قمر کا لنک ساتھ دیا جائے، مثلاً «تفسیر نور البیان، جلد ۱، صفحہ ۱۰ — https://maktaba.muftiqamar.com/t/4fb35c438749/10»۔
مفتی صاحب کے دروس اور ان کی اپنی کتب: muftiqamar.com۔ رازداری: سوالات کا ریکارڈ سائٹ کی عام آمد کی طرح رکھا جاتا ہے۔