Skip to main content
Glama

quran-mcp

The Quran, the major hadith collections and prayer times, for Claude and any other assistant that speaks the Model Context Protocol.

Ask "what does the Quran say about patience?", "give me Ayat al-Kursi in Arabic and French", "find the hadith about intentions in Bukhari" or "when is Isha in Brussels tonight?", and the assistant answers from the actual texts, with the exact reference for every quotation, instead of paraphrasing from memory.

Le Coran, les grands recueils de hadiths et les horaires de prière pour Claude et les autres assistants IA. Chaque citation revient avec sa référence exacte (sourate:verset, recueil et numéro), pour qu'une réponse puisse être vérifiée.

Tools

Tool

What it does

get_verses

Arabic (Uthmani script) and translation of 2:255, 2:255-257 or a whole surah, with juz and Mushaf page

search_quran

Verses containing every word of the query, in the translation or in Arabic (vowel marks ignored)

list_surahs

The 114 surahs: name, meaning, Meccan or Medinan, verse count

list_translations

About 440 translations in 90 languages (French: Hamidullah, Rashid Maash, ...)

get_hadith, search_hadith

Bukhari, Muslim, Abu Dawud, Tirmidhi, Nasa'i, Ibn Majah, Malik, Nawawi's 40, Qudsi; with grades when the collection has them

prayer_times

Computed locally from the sun's position: MWL, ISNA, Egypt, Umm al-Qura, Karachi, UOIF, Tehran; standard or Hanafi Asr; high latitude rule

Related MCP server: hadith-mcp

Install

With uv installed, nothing else is needed:

claude mcp add quran -- uvx quran-mcp

Or with pip: pip install quran-mcp, then claude mcp add quran -- quran-mcp.

Claude Desktop (claude_desktop_config.json):

{ "mcpServers": { "quran": { "command": "uvx", "args": ["quran-mcp"] } } }

Texts are downloaded on first use (about 1.5 MB per Quran edition, a few MB per hadith collection) into ~/.cache/quran-mcp and read from disk afterwards. Set QURAN_MCP_CACHE to put them elsewhere.

Accuracy

  • Texts come from the open quran-api and hadith-api datasets. Nothing is generated or reworded by this server.

  • Prayer times match Aladhan to the minute for Fajr, sunrise, Dhuhr, Maghrib and Isha (tested in Brussels, Makkah, Casablanca and Sydney, summer and winter). Asr follows the exact shadow definition checked against the NOAA solar model, which can be one to three minutes earlier than Aladhan. Local mosques often add a few minutes of precaution: their timetable comes first.

  • The server gives sources, not rulings. Its instructions tell the assistant to quote references and to send fiqh questions to a qualified scholar.

Roadmap

  • Quran: verses, passages, surahs, Arabic search, 440 translations

  • Hadith: 10 collections, lookup and search

  • Prayer times, offline, 7 methods

  • Search by meaning (French "prière" should find Hamidullah's "Salât")

  • Tafsir Ibn Kathir and al-Jalalayn

  • Word-by-word Arabic, roots and transliteration

  • Hijri calendar and important dates

  • Qibla direction

  • Recitation audio links per verse

Comes from Isuramu, an offline Quran app for Android.

License

MIT for the code. The texts keep the terms of their sources.

Available Tools

7 tools
get_hadithA
Read-only

One hadith by its number in a collection (bukhari, muslim, abudawud, tirmidhi, nasai, ibnmajah, malik, nawawi, qudsi, dehlawi). Language: fra, eng, ara...

Inputs: number (required), collection (required), language. Returns: result

get_versesC
Read-only

Arabic text and translation of a verse or a passage: '2:255', '2:255-257', or a surah number for the whole surah (up to 300 verses).

Inputs: reference (required), translation. Returns: result

list_surahsA
Read-only

The 114 surahs: number, name, meaning, place of revelation, verse count.

Inputs: no named parameters. Returns: result

list_translationsA
Read-only

Available translations of the Quran (about 440, in 90 languages), filtered by a language name such as 'french' or 'english'.

Inputs: language. Returns: result

prayer_timesA
Read-only

Prayer times for a place and a day (YYYY-MM-DD, today by default), computed locally. timezone is an IANA name such as Europe/Brussels (the machine's zone by default). Methods: MWL, ISNA, Egypt, Makkah, Karachi, UOIF, Tehran. asr: standard or hanafi.

Inputs: latitude (required), longitude (required), asr, day, +2 more. Returns: result

search_hadithC
Read-only

Hadiths of a collection containing every word of the query.

Inputs: query (required), limit, language, collection. Returns: result

search_quranA
Read-only

Find verses containing every word of the query, in the translation or in the Arabic (vowel marks and accents are ignored).

Inputs: query (required), limit, translation. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 7 tools

    Disambiguation5/5

    Each tool targets a distinct resource+action: reference lookup (get_verses) vs. full-text search (search_quran), hadith by number (get_hadith) vs. hadith search (search_hadith), plus distinct metadata (list_surahs, list_translations) and prayer_times. The lookup/search split is intuitive and well-communicated by the descriptions.

    Naming Consistency4/5

    Six of seven tools follow a clear verb_noun pattern (get_verses, list_surahs, search_hadith, search_quran, list_translations, get_hadith). Only prayer_times deviates as a bare noun phrase, a minor but readable inconsistency.

    Tool Count5/5

    Seven tools is well-scoped for a Quran/hadith reference server, covering retrieval, search, metadata, and prayer times without redundancy. Each tool earns its place.

    Completeness4/5

    The surface covers core workflows: verse retrieval, Quran search, translation listing, hadith retrieval/search, and prayer times. Gaps remain for tafsir/commentary and hadith-collection metadata, but the essential read-only lifecycle is covered.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Provides AI assistants with comprehensive access to Islamic resources including Quran verses with translations, Tafsir commentary, Hadith collections, and audio recitations. Enables users to explore Islamic texts, get daily inspiration, and access scholarly interpretations through natural language queries.
      18
      25 npm
      10
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables fetching and searching canonical hadith texts (Arabic and English) with cross-references and citation-safe URLs for assistants, built on FastMCP.
      3
      GPL 3.0
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to retrieve canonical Quran text, translations, scholarly tafsir, full-text search, and word-level morphology from verified Quran data.
      -