Wirdi MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Wirdi MCP Analyze the tajwid rules in Al-Fatiha, ayat 1 to 7, with wasl context"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Wirdi MCP
A local MCP server for the Qaloun recitation (from Nafi'). You give it a passage of the Quran; it gives you back the Tajwid rules that apply to it, letter by letter, each with the page of the book that states the rule.
Version 0.6.0 · 12 tools · 97 rules · 97 detectors · 322 tests (289 on a clean clone, the rest also check the original Wirdi AI files)
Read-only and deterministic: no LLM, no RAG, no database, no network. The Quran text is read from the Wirdi AI files and never modified.
Nothing is scholarly verified. No qualified reviewer has been named, so every result is a
candidate. The server never says more than that.
En français. Serveur MCP local (stdio) pour Qaloun d'après Nafi'. Vous donnez un passage ; il renvoie les règles de tajwid applicables (madd, hamza, tafkhim/tarqiq, idgham, ياءات الإضافة, noon/mim sakina, qalqala…), avec la lettre exacte, le contexte (waqf/wasl) et la page du livre cité. Aucune annotation n'est validée par un savant : le statut maximal est
candidate. Requêtes prêtes à coller : docs/EXEMPLES_REQUETES.md (une par outil) et docs/APPLY.json (toutes). Pièges déjà rencontrés : docs/NoteImportant.md.
Contents
Related MCP server: Quranpedia MCP
1. How it works
your request the answer
─────────── ──────────
selection (surah, ayah range) ┌─────────► annotations: rule, exact letters,
+ reading context (waqf / wasl) │ note, variants, page, book citation
+ optional filter (family, rules) │ + counts, unresolved, skipped, coverage
│ │
▼ │
1. check the corpus SHA-256 matches the pinned one (fail closed)
2. read the unchanged ayat of the Qaloun corpus
3. split each ayah into words and letters, with reversible codepoint offsets
4. detect one deterministic detector per rule family reads the letters and their signs
5. attach rule record (hash-checked) → citation, page; the ayah's 559-page span
6. report what could not be decided: `unresolved` (missing context), `skipped` (out of scope)Four ideas hold the design together:
Idea | What it means in practice |
A candidate is not a verdict | Every annotation is |
The text decides, not an assumption | Detectors read the signs the corpus writes (maddah, small waw/yeh, sukun, shadda…); no Hafs rule is assumed |
Several readings are listed, never chosen | Where a book allows 2, 3 or 4 harakat, |
Missing context is said, not guessed | A word-final letter at the end of a |
2. Quick start
Requires Python 3.12+.
python3 -m venv .venv
.venv/bin/python -m pip install -e '.[dev]'
.venv/bin/wirdi-mcp # waits for MCP input on stdin; no network listenerVariable | Purpose |
(none needed) | The Quran text, the 559-page map and the mapping resolver are bundled in the package ( |
| Optional. Path of a Wirdi AI checkout: the server then reads and verifies the original files instead of the snapshot |
| Optional. |
| Another |
| Log level, written to stderr |
| Tests only: enables the real-corpus tests |
Use it from an MCP client (replace the paths):
{
"mcpServers": {
"wirdi": {
"command": "/absolute/path/wirdi-mcp/.venv/bin/wirdi-mcp",
"env": {"WIRDI_MCP_LOG_LEVEL": "INFO"}
}
}
}Try it in the MCP Inspector.
npx @modelcontextprotocol/inspector .venv/bin/wirdi-mcpThen call health_check: quran_data must be configured_unchecked and quran_source bundled.
(The Inspector starts the server with a filtered environment: to set WIRDI_AI_ROOT, pass it with
-e WIRDI_AI_ROOT=/path, not as a variable written before npx.) Ready-to-paste requests for
every tool are in docs/EXEMPLES_REQUETES.md (one per tool) and docs/APPLY.json (all of them).
3. Key commands
I want to… | Command |
Start the server |
|
Check it works end to end |
|
Run the tests (bundled snapshot, real corpus included) |
|
Also check against a Wirdi AI checkout |
|
Lint and format |
|
Change a rule record | edit the table in |
Check the rule files against the manifest |
|
Count every rule over the 6,214 ayat |
|
One correct JSON request per tool, run against the server |
|
Build the local page store of a book |
|
After changing a rule or a detector, in this order: regenerate the records and the manifest →
run both test suites → regenerate the audit (RULE_AUDIT.md).
4. The 12 tools
Every tool is read-only. A success is {status: "ok", data, provenance, validation_status, warnings}; a failure is {status: "error", error: {code, message, retryable}}.
Tool | You give | You get |
| nothing | Readiness and configuration; reads no data |
|
| The unchanged ayat, their SHA-256 and their 559-page span |
|
| Where the selection falls in another numbering (e.g. Kufian/Hafs), |
|
| The 97 rules: id, Arabic name, family, type, |
|
| One rule record: definition, conditions, exceptions, limits, book and page |
|
| Candidate annotations, paged, with counts, |
|
| Counts per rule and per ayah (≤300 ayat) |
|
| Candidates for the ayat that begin on that page of the application layout |
|
| For each ayah with a madd or a plural meem, the readings that may be taken together, from the book's own tables (Nabhan pp.98-108); |
|
| Place of articulation and characteristics (Book A pp.40-45) |
|
| Raw text of pages from the local page store |
|
| The pages that contain the word, with a normalised snippet |
Error codes: INVALID_REFERENCE, NOT_FOUND, UNSUPPORTED_VERSION, DATA_UNAVAILABLE,
INTEGRITY_FAILURE, UNSUPPORTED_CAPABILITY. A missing or altered store fails that one tool, typed;
an error never contains a path or book text.
5. Selections and reading context
A selection is {"start": <reference>, "end_ayah": N}. A reference names the corpus:
{"corpus_id": "wirdi-ai:quranpedia:qalun",
"corpus_version": "sha256:ece0a2b0efe44d496211c595d0a34f495413bc93f78fba8095a666e2048d1303",
"numbering_system": "wirdi-ai:qalun-6214", "riwaya": "qaloun", "tariq": "unspecified",
"surah": 2, "ayah": 5}The reading context decides what a word-final letter does:
Field | Meaning |
| The reading stops at the end of each selected ayah, and nowhere else. Inside an ayah the reading is continuous: a mim in the middle of an ayah is still read with the next word |
| Continuous reading across the whole selection. The last position of the last ayah needs the next ayah, otherwise it is reported under |
| A complete reference to the next ayah of the same surah (for |
| Stop the last ayah after that many words, to simulate a stop inside an ayah |
Waqf-only rules (madd_arid_sukun, madd_lin, madd_iwad, madd_muttasil_arid, ra_mutatarrif_*)
never fire in wasl. Waqf signs written inside an ayah are not treated as stops.
6. What an annotation says
Field | Content |
| Which rule |
| The ayah's SHA-256, the codepoint range into the unchanged text, the word index |
| Waqf or wasl, and what was assumed |
| Always |
| Book, edition and page of the rule (a source, never a verdict) |
| The 559-page application span of the ayah |
| What the detector saw, in words |
| The readings the book allows here; the engine never picks one |
A short or empty result is not a claim that the passage has no other rule: only the rules you
ask for are evaluated, and coverage says whether every position could be decided.
7. All 97 rules
Each rule is a short paraphrase written for this project, page-cited, unreviewed. Legend:
Type:
Amechanical ·Bdepends on the stop or on the neighbouring word ·Ca closed word list named by the book (matched on the book's own Kufian ayah numbers).Detector: every rule has one. The two-hamza rules and part of the vowel-on-a-sakin-letter rule are found only at the places the farsh table of the longer book lists, because the Qaloun text keeps only the result.
Tariq: no rule names one. Book A attests Qaloun without naming a tariq, so every rule is
unspecified.
Rule | Arabic name | Family | Type | Detector | Pages (Book A; 92 rules also cite the longer book, see the rule) |
| ألف أنا قبل همزة مفتوحة أو مضمومة |
| B | yes | 23, 24 |
| ألف أنا قبل همزة مكسورة |
| B | yes | 24 |
| حذف ألف أنا وصلا |
| B | yes | 23, 24 |
| الألفات الثابتة وقفا ووصلا |
| C | yes | 23, 24 |
| الم الله في فاتحة آل عمران وصلا |
| C | yes | 23 |
| المد العارض للسكون |
| B | yes | 20 |
| مد البدل |
| A | yes | 15, 16 |
| الألف في هجاء أحرف حي طهر |
| A | yes | 15, 17, 23 |
| مد العوض |
| A | yes | 15, 16, 17 |
| المد اللازم الحرفي المخفف |
| A | yes | 22, 23 |
| المد اللازم الحرفي المثقل |
| A | yes | 22 |
| المد اللازم الكلمي المخفف |
| C | yes | 21, 22 |
| المد اللازم الكلمي المثقل |
| A | yes | 21 |
| حذف حرف المد لالتقاء الساكنين |
| B | yes | 24 |
| مد اللين |
| B | yes | 20, 21 |
| المد الجائز المنفصل |
| A | yes | 19 |
| المد الواجب المتصل |
| A | yes | 19 |
| المد المتصل العارض |
| B | yes | 20 |
| كلمات استثنيت من صلة هاء الضمير |
| C | yes | 18, 19, 20 |
| الصلة الكبرى في هاء الضمير |
| A | yes | 19, 20 |
| الصلة الكبرى في ميم الجمع |
| A | yes | 19, 20 |
| الصلة الصغرى في هاء الضمير |
| A | yes | 17, 18, 19 |
| الصلة الصغرى في ميم الجمع |
| A | yes | 17, 18 |
| المد الطبيعي |
| A | yes | 14, 15 |
| الوقف على نون التوكيد الخفيفة المرسومة تنوينا |
| C | yes | 16, 17 |
| تسهيل الهمزة الثانية في أرأيت وأرأيتكم وأرأيتم |
| C | yes | 27 |
| استثناءات الهمزتين في كلمة |
| C | yes | 26, 27 |
| الهمزتان في كلمة |
| A | yes | 26 |
| إبدال الهمزة في منسأته |
| C | yes | 25 |
| إبدال الهمزة في مؤصدة |
| C | yes | 25 |
| إبدال الهمزة في رئيا |
| C | yes | 25 |
| إبدال الهمزة في سأل |
| C | yes | 25 |
| إبدال الهمزة ألفا في يأجوج ومأجوج |
| C | yes | 25 |
| همزة الاستفهام المزيدة في ءامنتم وءأله |
| C | yes | 27 |
| همزة الاستفهام قبل همزة أل التعريف |
| C | yes | 31 |
| همز النبي ونحوها |
| C | yes | 25, 26 |
| استثناء النبي في موضعي الأحزاب |
| C | yes | 26 |
| الهمزتان المختلفتان في كلمتين |
| C | yes | 28, 29 |
| الهمزتان المتفقتان في كلمتين |
| C | yes | 27, 28 |
| اجتماع همزة الوصل وهمزة القطع في الكلمة |
| A | yes | 16 |
| همز الواو في هزوا وكفوا |
| C | yes | 25 |
| همزة الوصل في أل التعريف |
| A | yes | 29, 31 |
| همزة الوصل في الأسماء |
| C | yes | 29, 30, 31 |
| همزة الوصل في الأفعال |
| B | yes | 30, 31 |
| الاستفهام المكرر: ما أثبتت همزته في الأول |
| C | yes | 27 |
| الاستفهام المكرر: ما أثبتت همزته في الثاني |
| C | yes | 27 |
| تحريك الساكن قبل همزة الوصل |
| B | yes | 31 |
| تفخيم الألف |
| B | yes | 32, 35 |
| تفخيم الألف بعد الراء غير المقللة |
| A | yes | 35 |
| ترقيق الألف |
| B | yes | 35 |
| تفخيم الغنة |
| B | yes | 35 |
| ترقيق الغنة |
| B | yes | 35 |
| المرتبة الأولى من تفخيم الاستعلاء |
| A | yes | 32 |
| المرتبة الثانية من تفخيم الاستعلاء |
| A | yes | 32, 33 |
| المرتبة الثالثة من تفخيم الاستعلاء |
| A | yes | 32, 33 |
| المرتبة الرابعة من تفخيم الاستعلاء |
| A | yes | 32, 33 |
| تفخيم لام لفظ الجلالة |
| B | yes | 34, 35 |
| ترقيق لام لفظ الجلالة |
| B | yes | 34, 35 |
| جواز الوجهين في راء فرق |
| C | yes | 34 |
| جواز الوجهين في الراء المتطرفة |
| C | yes | 34 |
| تفخيم الراء المتطرفة |
| B | yes | 34 |
| ترقيق الراء المتطرفة |
| B | yes | 34 |
| تفخيم الراء |
| B | yes | 33, 34 |
| ترقيق الراء |
| B | yes | 33, 34 |
| فتح ياء الإضافة قبل الهمزة |
| B | yes | 45, 46, 47, 48, 49, 50 |
| ياءات الإضافة المفتوحة استثناء |
| C | yes | 50 |
| ياءات الإضافة الساكنة قبل الحروف |
| C | yes | 47, 50 |
| ياءات الإضافة الساكنة استثناء |
| C | yes | 46, 48, 49, 50 |
| ياء الإضافة في كلمة معي |
| C | yes | 47 |
| ياء ربي في فصلت |
| C | yes | 46, 49 |
| الإدغام الكبير المتماثل |
| C | yes | 36 |
| إدغام المتجانسين |
| A | yes | 36, 37, 38 |
| إدغام المتماثلين |
| A | yes | 36 |
| إدغام المتقاربين |
| A | yes | 38 |
| الإدغام الناقص |
| C | yes | 38, 39 |
| الإدغام بغنة |
| B | yes | 5, 6 |
| الإدغام بغير غنة |
| B | yes | 5 |
| الإظهار الحلقي |
| B | yes | 4, 5 |
| الإظهار المطلق |
| C | yes | 6 |
| الإخفاء الحقيقي |
| B | yes | 7, 8 |
| الإقلاب |
| B | yes | 7 |
| الإدغام الشفوي |
| B | yes | 9 |
| الإظهار الشفوي |
| B | yes | 9, 10 |
| الإخفاء الشفوي |
| B | yes | 9 |
| غنة النون والميم المشددتين |
| A | yes | 11 |
| القلقلة |
| A | yes | 44 |
| اللام القمرية |
| A | yes | 13 |
| اللام الشمسية |
| A | yes | 12, 13 |
| الإمالة في هار |
| C | yes | 35 |
| التقليل في التوراة |
| C | yes | 35 |
| الياء الزائدة المثبتة وصلا المحذوفة وقفا |
| C | yes | — (Nabhan 80, 81) |
| الياء الزائدة المثبتة وصلا ووقفا |
| C | yes | — (Nabhan 80, 81) |
| الياء الزائدة بالوجهين وصلا |
| C | yes | — (Nabhan 80, 81) |
| الوقف على أيه بالهاء |
| C | yes | — (Nabhan 82-86) |
| الكلمتان المقطوعتان رسما |
| C | yes | — (Nabhan 82-86) |
| الكلمة المجزأة رسما |
| C | yes | — (Nabhan 82-86) |
| الوقف على تاء التأنيث المبسوطة |
| C | yes | — (Nabhan 82-86) |
Family | Rules | What it covers |
| 25 | natural, badal, 'iwad, muttasil, munfasil, 'arid, lin, lazim, sila of the ha and meem, fixed alefs, alef of ana, light tawkid noon, الم الله |
| 22 | replaced hamzas, prophet words, two hamzas, repeated interrogatives, hamzat al-wasl, wasl then qat' in one word, أرأيت, hamza before the article |
| 17 | ra, lam of Allah, alef (also after ra), ghunna, the four ranks of the isti'la letters |
| 6 | open and closed first-person ya, |
| 4 | stops that depend on the rasm: open ta, words written apart, |
| 3 | the zaida ya: kept when joined, kept or dropped, kept always (from the longer book only) |
| 5 | identical, same-place and close letters, naqis, the great idgham |
| 6 | idhar, idgham, iqlab, ikhfa |
| 3 · 2 · 2 · 1 | shafawi rules, article lam, taqlil and imala, qalqala |
| 1 | geminated noon and meem |
What the detectors read. A maddah marks the long madds; a superscript alef marks a madd alef; a small waw or yeh on a ha marks the sila; a sakin noon or meem before idgham, ikhfa and iqlab letters has no sukun; an alef inserted between two hamzas is a superscript alef; the open first-person ya is spelled with a fatha and the closed one with the yeh barree; hamzat al-wasl has three different marks.
8. Data and numbering
Datum | Origin | Guard |
Quran text | KFGQPC Qaloun via Qur'anpedia ( | SHA-256 checked on every call; never modified |
559-page layout and mapping resolver | Same snapshot (page map derived from the King Fahd mushaf images; resolver code of the Wirdi AI project, trimmed schemas, short public notes) | SHA-256 checked; |
Rules |
|
|
Books | PDFs placed locally in | Never committed; only paraphrased rules with a page citation are |
The mushaf behind the page map. The 559-page layout is that of the Madinah Mushaf in the riwaya of
Qaloun from Nafi', printed by the King Fahd Complex for the Printing of the Holy Qur'an (1427 H / 2006,
559 printed pages; the PDF used is listed at https://islamhouse.com/ar/books/5268, SHA-256
17bb037d84f3e344c35122eb9fcad72d9b751d6011ab10dd896176f8974e8309). It is not the 604-page layout and
not the Tunisian Hannibal print. This repository holds only page numbers derived from that mushaf: for
each ayah, the page where it begins and the page where it ends. The method is in
src/wirdi_mcp/quran/snapshot/docs/qaloun-pagination-validation.md (verse-end markers and surah banners
detected on the page images, without OCR, checked against the verse counts and the printed index). No
scan, image, page text, font or glyph of the mushaf is included or distributed. The mushaf is a
copyrighted publication; the page numbers are facts about its layout, but whether to publish them is the
repository owner's decision, and they can be replaced by another verified map without touching the code
(qaloun_pagination_verified.json, pinned by SHA-256).
Licences. The code, tests, scripts and docs are MIT (LICENSE). The folder
src/wirdi_mcp/quran/snapshot/ keeps its own terms (LICENSE-DATA):
the Quran text is CC BY-SA 4.0 with credit to Qur'anpedia.net and the dump version; ShareAlike
applies to that data, not to the code that reads it. The books themselves are never in the repository.
Two numberings meet here.
Qaloun count | Kufian count | |
Used by | the corpus, the tools, the application | the place numbers of Book A |
Ayat | 6,214 | 6,236 |
Kept in the corpus as | the ayah number |
|
Pages | 559 (application) | 604 (Hannibal) |
78 Qaloun ayat gather two Kufian numbers and 59 Kufian ayat are split, touching 59 surahs. In
Al-Baqara: Qaloun 2:5 = Kufian 2:6, Qaloun 2:7 = 2:8. Convert with resolve_source_mapping. Pages are
never compared by number, only through the verse.
9. Sources and where they disagree
Source | Role | State |
Book A, أحكام رواية قالون عن نافع المدني (51 pp.) | The base of 90 of the 97 rules; Qaloun, names no tariq | Citations checked on the page images; inconsistent in places (below) |
Nabhan, الثمر اليانع في أصول رواية قالون عن نافع (214 pp.) | The longer book Book A digests; names Abu Nashit (p.111 only). Second citation of 92 rules, sole source of the 3 | Pages read on their images; local, never committed; see BOOK_NABHAN_EVALUATION |
Book A has an unknown licence (it is never committed). Its text layer is raw (inverted lam-alef ligatures).
Where Book A contradicts itself or the corpus (each case is in the rule limits and in BOOK_A_COVERAGE; none is arbitrated):
Case | What happens |
| Both readings are in |
| Three readings in |
Ya'at lists (p.46 against p.49) | Four place numbers differ; each word was looked up in the corpus and the retained place is documented. The longer source book shows two are Book A's own slips and the others inherited |
| The book's sentence is the reverse of the corpus spelling and of its own classes, and differs from the longer book it digests (Nabhan p.79); each occurrence reports what the corpus spells |
Plural meem before ba and meem (1,314 places) | Sila by the general wording of p.17; its exclusion of ikhfa/idgham shafawi is an inference, written in both annotations |
Madd lengths | A reviewer proposes 2 or 4 (munfasil) and 4 (muttasil); Book A says 2, 3 or 4 and 3 or 4. Open |
10. What is not covered
Most waqf and ibtida rules (the chosen stops, rawm, ishmam, pp.87-98 of the longer book) and waqf signs inside an ayah: the engine stops only at an ayah end. Only the closed lists that depend on the rasm are built (
waqf_*).The vowel of sakin letters before hamzat al-wasl, and two hamzas in two words, outside the places the farsh table lists (19 and 82 places the corpus shows).
The default closed ya before an ordinary letter, beyond the seven named examples.
Everything Book A does not say (it is a 51-page summary).
BOOK_A_COVERAGE lists each section of the book and its state.
11. Tests
.venv/bin/python -m pytest # everything, on the bundled snapshot
WIRDI_TEST_SOURCE_ROOT=/abs/wirdi-Ai .venv/bin/python -m pytest # + checks against the original files: 322 testsSynthetic and stdio: synthetic fixtures modelled on the books' examples, real stdio subprocess tests, the README and APPLY.json consistency checks, tamper tests.
Real corpus (bundled): every single-ayah selection in both modes, all 559 pages, the closed word lists (each must hit exactly the places the book names), and every request of
docs/APPLY.json.
12. Repository layout and scripts
src/wirdi_mcp/
server.py, config.py entry point and configuration
domain/ typed contracts (Pydantic): annotations, statuses, references
quran/ checksum-pinned, read-only access to the Wirdi AI files
mapping/ the mapping authority (Qaloun <-> Hafs)
knowledge/ rule registry (hash-pinned) and local page store (fail-closed)
tajwid/ tokenizer and detectors: madd, hamza, tafkhim, idgham, yaat,
lexicon (word lists), letters (static tables), engine, service
tools/ the 12 MCP tools and their contracts
knowledge/rules/ 97 rule records + manifest.json (committed)
knowledge/sources/ edition metadata only (no book text)
knowledge/validation/ empty, ready for a reviewer's records
scripts/ rule generation, manifest, audit, page store, local check
tests/ unit and integration tests
docs/ design, audits, reports, guides and APPLY.json (PDFs are git-ignored)The commands that use the scripts are in section 3.
13. What needs a human
A named, qualified reviewer. Without one, nothing moves beyond
candidate; the validation store is ready and empty.Licences of the books (the code and bundled data are licensed, see section 8), and whether the paraphrased records may stay in the repository.
Which tariq? Book A names none; the corpus does not attest one either.
Display in version 1: label unreviewed candidates, or show nothing until a reviewer approves?
Arbitration of the divergences in section 9, with the reviewer.
Integration into Wirdi AI (not started): INTEGRATION.
14. Documentation index
Document | Contents |
Start here to test in the Inspector: one verified JSON request per tool (12), to paste into « Edit as JSON » | |
The full set of 40 requests, errors and edge cases included, with the expected result; checked by a test | |
Inspector setup, data origin, every test done and its analysis | |
A request per rule family and what to check | |
Each Book A section, its rules, its state and the page contradictions | |
Tool contracts, statuses, reading context, failure semantics | |
Rule, detector, annotation and review, kept separate | |
Per-rule counts over the whole corpus | |
Boundaries, reference identity, the corpus and its checksums | |
Design decisions | |
Assessment of a second, longer Qaloun book: what it settles in Book A and what it could add | |
The planned client contract for Wirdi AI |
The official mcp Python SDK is pinned to
2.3.0; this project uses its MCPServer API, not the separate fastmcp package.
Available Tools
12 toolsanalyze_app_pageCRead-onlyIdempotent
Candidates for the ayat that begin on a page of the verified 559-page Qaloun layout.
Inputs: page (required), reading_context (required), limit, offset, +2 more. Returns: object
analyze_qaloun_tajwidBRead-onlyIdempotent
Candidate Tajwid occurrences for 1 to 100 Qaloun ayat, paged, each with its citations.
Inputs: selection (required), reading_context (required), limit, offset, +3 more. Returns: object
get_letter_propertiesBRead-onlyIdempotent
Place of articulation and characteristics of 1 to 29 Arabic letters (Book A pp.40-45).
Inputs: letters (required). Returns: object
get_qaloun_passageBRead-onlyIdempotent
Read unchanged Qaloun ayat and verified page spans from checksum-pinned source files.
Inputs: selection (required). Returns: Object-shaped result union without the SDK's primitive-result wrapper.
get_source_pageARead-onlyIdempotent
Read 1 to 5 pages of a locally placed source book (printed page numbers).
Inputs: page_end (required), edition_id (required), page_start (required). Returns: object
get_tajwid_ruleBRead-onlyIdempotent
Read a local Tajwid rule record with its page-level citations (unreviewed).
Inputs: rule_id (required), version (required). Returns: object
health_checkARead-onlyIdempotent
Report process readiness and configuration, without accessing source or private data.
Inputs: no named parameters. Returns: status, mapping, quran_data, quran_source, +5 more
list_reading_combinationsDRead-onlyIdempotent
Which readings of the madds may be taken together in each ayah (the book's tables).
Inputs: selection (required), reading_context (required), max_combinations. Returns: object
list_tajwid_rulesBRead-onlyIdempotent
List the available local rules and whether a detector exists for each.
Inputs: family. Returns: object
resolve_source_mappingCRead-onlyIdempotent
Reuse the pinned mapper; review-required ranges are unsafe for source retrieval.
Inputs: selection (required), target_corpus_id (required), target_corpus_version (required), target_numbering_system (required). Returns: Object-shaped result union without the SDK's primitive-result wrapper.
search_source_pagesBRead-onlyIdempotent
Literal Arabic search over locally placed source pages; returns page hits only.
Inputs: query (required), edition_ids (required), limit. Returns: object
summarize_tajwidCRead-onlyIdempotent
Per-rule candidate counts for a surah or an ayah range, with per-ayah counts (paged).
Inputs: surah (required), reading_context (required), limit, offset, +4 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools target clearly distinct resources: passage retrieval, rule lookup, analysis, summarization, source pages, letter properties. The main potential confusion is between analyze_qaloun_tajwid and analyze_app_page (both return candidate occurrences, differing only in scope), and get_qaloun_passage vs get_source_page, but the descriptions clarify the boundaries.
The set follows a consistent verb_noun snake_case pattern (get_*, list_*, analyze_*, summarize_*, search_*, resolve_*). health_check is the sole outlier using a noun_verb form, though it is a widely recognized convention.
12 tools is a well-scoped surface for a specialized Tajwid/Qaloun analysis server, with retrieval, analysis, summarization, and diagnostic operations each earning a place.
The surface covers passage retrieval, rule listing/lookup, candidate analysis, summarization, source page access/search, letter properties, and reading combinations. Minor gaps exist, such as no explicit surah/ayah metadata listing or a way to search within Tajwid rule records, but core workflows are covered.
Related MCP Connectors
Quran text, 95 translations, tafsir and audio recitation links from globalquran.com. Read-only.
Quran: Quran API Service with 90+ different languages and 400+ translations.
Read-only scripture-study engine: complete-or-fail concordance over Greek NT, Hebrew OT, LXX.
Research Quran, translations, tafsir, hadith, scholarly commentaries, Sirah, and Islamic history.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceValidates Arabic Quran recitations for single verse, full surah, juz, page, or any consecutive verse range, supporting standard Arabic, Uthmani script, and full tashkeel validation.-
- AlicenseAqualityCmaintenanceProvides AI clients with fast, hallucination-free access to the Quran through 13 MCP tools, covering search, navigation, morphology, tafsir, translations, and surah background over stdio and Streamable HTTP.26MIT
- FlicenseNot gradedqualityBmaintenanceProvides read-only access to Quranic verses and tafsir from Dorar, enabling retrieval of ayahs, surah tafsir, and search over tafsir content through MCP tools via a Streamable HTTP endpoint.-
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to retrieve canonical Quran text, translations, scholarly tafsir, full-text search, and word-level morphology from verified Quran data.-