Developers · AI agents

The Qurʾān, for code and for agents

Everything the reader shows is available to programs: a read-only MCP server, static JSON for every verse and root, and a markdown twin of every page. Free, no keys, no sign-up.

Before you quote

Facts every answer should carry

  • Arabic: quran-uthmani (Tanzil.net), recitation Ḥafṣ ʿan ʿĀṣim, Kūfan (standard muṣḥaf) numbering. 2:255 is Āyat al-Kursī.
  • Translations are their translators’ renderings — cite the translator, not “the meaning”.
  • Claims are labelled computed, statistical or interpretation. Keep the label when you repeat one.
  • Cite as Quran 2:255 (Saheeh International), https://tartil.app/al-baqara/255.

Model Context Protocol

MCP server

https://tartil.app/mcp — Streamable HTTP, stateless, JSON responses, no authentication. Add it to any MCP client as a remote server.

  • search — Search the Qurʾān atlasFind sūrahs, verses, Arabic roots and themes. Accepts a verse reference (2:255, kahf 10, ٢:٢٥٥), a sūrah name or number, a customary verse name (Ayat al-Kursi), an English word (mercy) or Arabic radicals (رحم). Returns titles with canonical URLs.
  • get_verse — Get a verseOne verse of the Qurʾān: the Arabic (quran-uthmani, Ḥafṣ ʿan ʿĀṣim), translations, its Arabic roots, optional word-by-word morphology and optional tafsīr, the readers' questions answered from that tafsīr where the site has them (every juzʾ, though not every verse), with the URL to cite. Reference as 2:255, 'kahf 10' or a customary name ('Ayat al-Kursi').
  • get_surah — Get a sūrah (or a range of it)A sūrah's metadata and verses — Arabic plus one translation, a URL per verse. At most 60 verses per call; page with from/to.
  • get_root — Get an Arabic rootAn Arabic root's computed profile in the Qurʾān: occurrence and verse counts, derived forms with counts, its curated core sense where one exists (labelled interpretation), and its occurrences with verse URLs. Accepts the site id (r-7-m), Arabic radicals (رحم, ر-ح-م) or a Latin spelling (rhm, rahma).
  • list_translations — List translationsEvery translation the site carries: id, translator, language.
curl -s https://tartil.app/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call",
       "params":{"name":"get_verse","arguments":{"reference":"2:255"}}}'

In a browser that supports WebMCP, the same tools are registered on every page via navigator.modelContext, plus open_page to navigate the reader. Server card: /.well-known/mcp/server-card.json.

Markdown for agents

Any page as markdown

Send Accept: text/markdown to the home page, a sūrah, a verse or a root page and the same URL answers in markdown (with x-markdown-tokens); browsers keep getting HTML.

curl -s -H 'Accept: text/markdown' https://tartil.app/al-baqara/255
curl -s -H 'Accept: text/markdown' https://tartil.app/root/r-7-m

Also: /llms.txt (the site for language models), /llms-full.txt (all 6,236 verses) and /md/{slug}.md per sūrah.

Static JSON

Data API

Plain files on a CDN, described by OpenAPI 3.1. Cache freely — they change only when the site is redeployed.

  • /data/index.jsonAll 114 sūrahs — slug, folder, names, verse count, Makkī/Madanī, revelation order
  • /data/surahs/{folder}/surah.jsonA sūrah's Arabic, verse by verse (folder e.g. 002-al-baqara)
  • /data/surahs/{folder}/translations/{id}.jsonOne translation of a whole sūrah
  • /data/ayah/{surah}/{ayah}.jsonEverything for one verse — Arabic, all translations, words, roots, tafsīr
  • /data/translations.jsonEvery translation with translator and language
  • /data/roots/index.jsonAll 1,651 Arabic roots with counts
  • /data/roots/{rid}.jsonOne root — forms, every occurrence (rid e.g. r-7-m)

Discovery

Where agents find all this

The home page also sends these as RFC 8288 Link headers.

Use

Terms, plainly

The Arabic text is Tanzil’s; translations belong to their translators and are distributed by Tanzil.net — keep the credit with anything you quote. Quoting in answers and search is welcome; training use is not consented (see Content-Signal in robots.txt). This is a map of the text, not a fatwā source. How we count →