HadithDB
HadithDB (Hadith Unlocked) is a website for reading, searching, and citing the Quran and ḥadīth. You can browse it online at https://hadithunlocked.com.
Every record keeps the original Arabic text alongside an English translation where one is available, together with chapter listings and grading information. For ḥadīth, the chain of narrators (isnād) and the report itself (matn) are stored separately so each can be read and searched on its own.
MCP server
HadithDB exposes a read-only, stateless Streamable HTTP MCP transport at
POST /mcp. After this version is deployed, the public endpoint will be
https://hadithunlocked.com/mcp. It provides Quran and tafsir lookup/search,
hadith search, and full hadith-detail lookup tools.
Text fields are returned in full. Arabic and English are exposed separately
when the underlying record provides both languages; unavailable language fields
are returned as null rather than synthesized or omitted.
Quran ayat, Quran search results, hadith search results, and hadith-detail
records expose bilingual, text, text_arabic, text_english, and
truncated. Hadith-detail sharh entries retain their existing text and
text_en source fields and additionally expose the same language-explicit
fields, with their combined value in text_combined.
The endpoint accepts JSON-RPC 2.0 requests for initialize, ping,
tools/list, and tools/call. It does not create sessions, so clients should
not expect an Mcp-Session-Id response header. Browser preflight requests are
supported with OPTIONS /mcp; other HTTP methods return 405.
curl https://hadithunlocked.com/mcp \
-H 'Accept: application/json, text/event-stream' \
-H 'Content-Type: application/json' \
-H 'MCP-Protocol-Version: 2025-11-25' \
--data '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-11-25","capabilities":{},"clientInfo":{"name":"example","version":"1.0.0"}}}'
The endpoint has a 64 KiB request limit and a per-IP rate limit. Override the
defaults with MCP_RATE_LIMIT_WINDOW_MS and MCP_RATE_LIMIT_PER_IP. Internal
tool requests use the current request host by default; staging deployments can
override the backing sites with HADITHDB_MCP_HADITH_BASE_URL and
HADITHDB_MCP_QURAN_BASE_URL.
What's New
Recent work has improved the reading, browsing, and search experience across the site:
- Reading the Quran — move naturally between Passage, Ayat, Mushaf, Practice, and Mudhakkir views while the site keeps your place. You can like, comment on, bookmark, and share a passage, move easily between verses and sections, and use the page-faithful Mushaf with database-backed spaced repetition.
- The 15-line Mushaf — read all 604 pages in a responsive, page-faithful Digital Khatt layout with infinite scrolling, Quranic surah headers, interactive words and ayah markers, page bookmarks, passage-aware coloring, and continuous recitation.
- Commentary and translation — full-page commentary and translation views, tabs for switching between works, authored book and surah introductions, hover explanations, dynamic translation selection, and the option to show Arabic and English side by side. You can turn individual works on or off and choose the order they appear in.
- Quran audio — choose a reciter, begin from a selected ayah, continue across page boundaries, repeat a passage or subsection, and control playback speed without losing synchronized ayah highlighting or translation captions.
- Search — a site-wide search panel switches between ḥadīth and Quran + Tafsīr while remembering a separate query for each. It supports canonical Quran ordering, Arabic RTL input, virtual collections, book-group shortcuts, per-work filters, and unified suggestions for surahs, ayat, translations, tafsīr, and ḥadīth.
- Enriched ḥadīth details — individual reports can include multiple scholarly grades, report and chain classification, a linked narrator timeline, uncommon-word definitions, sourced explanations, and references to similar or supplementary transmissions.
- Outline navigation — responsive section menus and sticky desktop rails follow the current chapter, passage, subsection, or metadata section and expose nearby headings for faster movement through long works.
- Sharing — responsive Quran and ḥadīth share cards support editable copy, text-size controls, selectable translations, Copy text, Copy image, and the device share sheet.
- MCP access — a read-only Streamable HTTP endpoint exposes Quran, tafsīr, ḥadīth search, and full ḥadīth-detail tools to compatible clients without creating server-side sessions.
- My Settings — separate starting points for ḥadīth and Quran, remembered commentary, translation, and reciter preferences, and bookmarked passages and Mushaf pages saved for later.
Hadith Features
- Browse source books and thematic virtual collections with bilingual chapter and section navigation, stable
book:number citations, and JSON, TSV, EPUB, or Markdown output where available.
- Search the whole ḥadīth library or narrow it to individual books and the Sahihayn, Four Sunan, Six Books, or Nine Books groups. Virtual collections remain searchable alongside their source books.
- Read Arabic isnād and matn separately from the English translation. Report attribution and chain categories identify material such as prophetic, companion, or successor reports and connected or interrupted chains when that metadata is available.
- On enriched detail pages, compare scholarly grading opinions, follow a vocalized narrator-by-narrator isnād with biographical links and reliability notes, open definitions of uncommon Arabic terms, read Arabic or English sharḥ, and follow similar-report references back into the library.
- Supplementary source transmissions are linked to their primary local report instead of being presented as unrelated duplicate records.
- Like, bookmark, comment on, cite, and share reports. The share editor can resize or omit language blocks and copy either formatted text or a generated image on desktop and mobile.
- Administrators can revise text and headings in place, manage scholarly grades and sourced explanations, link similar reports, enrich metadata from configured sources, and refresh the affected search and rendered caches without changing the public citation.
Quran Unlocked
Read the Quran as a book, explore it as a study text, and hear it as a continuous recitation—all in one place. Quran Unlocked combines a responsive 15-line Mushaf with word-level learning, passage structure, trusted translations and tafsīr, personalized audio, and tools for saving and sharing what matters.
Open the Mushaf and begin where you left off. Tap a word for its meaning, select an ayah to read its translation, or let the recitation carry you seamlessly across pages. Switch to Practice to test recall against the same 15-line page layout, or move instantly to a focused ayah or structured passage without losing your place.
Quran Features
Five connected reading modes
- Passage presents the Quran in titled sections and subsections for thematic reading.
- Ayat focuses the reading experience on individual verses and the ayah hero view.
- Mushaf reproduces the familiar 15-line, page-by-page reading experience.
- Practice keeps the Digital Khatt Mushaf font and 15-line page layout while replacing ordinary words with underlined blanks. The basmalah and ayah markers remain visible.
- Mudhakkir tests due ayat using an ayah-level spaced-repetition schedule. Learning ayat enter the queue first and progress through short new-card steps before graduating to Good.
- The mode links, page subtitle, URL, previous/next links, and related passage automatically follow the content currently in view during infinite scrolling.
- Direct navigation is available by surah, ayah, passage, subsection, juz, manzil, Mushaf page, and search result.
A responsive Digital Khatt Mushaf
- All 604 pages use Digital Khatt Quran text in a page-faithful 15-line layout.
- Pages load continuously with vertical infinite scroll; after page 604, reading can continue again from page 1.
- The layout scales for desktop, portrait phones, and landscape phones without changing through the normal text-size controls or bleeding beyond the page.
- Quranic surah headers use the QCF header font. A new surah opens with its header and basmalah kept with the beginning of the surah; Surah 9 correctly omits the basmalah.
- Subtle inner-edge shading distinguishes odd and even pages like an open printed book.
- Alternating black and saddle-brown text reveals h3 subsection boundaries while preserving the Quranic styling of ayah markers.
- Each page identifies its page number, juz, surah number, and Arabic surah name. Page, juz, and surah numbers are directly editable, while the custom surah picker opens at the current surah.
- The page footer links the passage and subsection titles that actually begin on that page, making the Mushaf’s thematic structure visible without repeating earlier headings.
/quran/page resumes at the bookmarked Mushaf page, or page 1 when no page bookmark exists.
Practice view