Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

Explore

  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Tags index
  • Submit a server
  • Pricing

Learn

  • Guides hub
  • What is MCP?
  • Install guide
  • Troubleshooting
  • Security
  • Blog
  • Blog RSS

Tools

  • All tools
  • Config generator
  • Config validator
  • MCP playground
  • OpenAPI โ†’ MCP
  • Badge generator

For agents

  • API docs
  • Trust & traffic
  • llms.txt โ†— (opens in a new tab)
  • Catalog JSON โ†— (opens in a new tab)
  • Remote MCP โ†— (opens in a new tab)

Company

  • About
  • Contact
  • X (@AllMCPs) โ†— (opens in a new tab)
  • GitHub โ†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on Buildlist
ยฉ 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. ๐Ÿ’ป Developer Tools
  3. Alfanous Quranic Search Engine
A
Health: Not checked yetWe have not completed a health check for this listing yet.Last checked 8/10/2026, 11:45:59 PM

Alfanous Quranic Search Engine

Enrichment pendingWe havenโ€™t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time โ€” check back soon.
View Repository

Search and explore the Holy Qur'an with Arabic text, transliteration, and advanced search support.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON โ–พ

Install Config Generator

Choose your client
claude_desktop_config.json
{
  "mcpServers": {
    "alfanous-quranic-search-engine": {
      "command": "npx",
      "args": [
        "-y",
        "alfanous-quranic-search-engine"
      ]
    }
  }
}

๐Ÿ’ก Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

Install Directory Badge Claim listing Alternatives๐Ÿ’ป More in Developer Tools

Documentation Overview

Tests

Alfanous API

Alfanous is a Quranic search engine API that provides simple and advanced search capabilities for the Holy Qur'an. It enables developers to build applications that search through Quranic text in Arabic, with support for Buckwalter transliteration, advanced query syntax, and rich metadata.

Features

  • Powerful Search: Search Quranic verses with simple queries or advanced Boolean logic
  • Arabic Support: Full support for Arabic text and Buckwalter transliteration
  • Rich Metadata: Access verse information, translations, recitations, and linguistic data
  • Flexible API: Use as a Python library or RESTful web service
  • Faceted Search: Aggregate results by Sura, Juz, topics, and more
  • Multiple Output Formats: Customize output with different views and highlight styles

Quickstart

Installation

Install from PyPI using pip:

sh
$ pip install alfanous3

Basic Usage

Python Library

server.ts
>>> from alfanous import api

# Simple search for a word
>>> api.search(u"ุงู„ู„ู‡")

# Advanced search with options
>>> api.do({"action": "search", "query": u"ุงู„ู„ู‡", "page": 1, "perpage": 10})

# Search using Buckwalter transliteration
>>> api.do({"action": "search", "query": u"Allh"})

# Get suggestions
>>> api.do({"action": "suggest", "query": u"ุงู„ุญ"})

# Correct a query
>>> api.correct_query(u"ุงู„ูƒุชุงุจ")

# Get metadata information
>>> api.do({"action": "show", "query": "translations"})

Web Service

You can also use the public web service:

  • Search: http://alfanous.org/api/search?query=ุงู„ู„ู‡
  • With transliteration: http://alfanous.org/api/search?query=Allh

Or run your own web service locally (see alfanous_webapi).

Quick Examples

Search for phrases:

python
>>> api.search(u'"ุงู„ุญู…ุฏ ู„ู„ู‡"')

Boolean search (AND, OR, NOT):

python
>>> api.search(u'ุงู„ุตู„ุงุฉ + ุงู„ุฒูƒุงุฉ')    # AND
>>> api.search(u'ุงู„ุตู„ุงุฉ | ุงู„ุฒูƒุงุฉ')    # OR
>>> api.search(u'ุงู„ุตู„ุงุฉ - ุงู„ุฒูƒุงุฉ')    # NOT

Fielded search:

python
>>> api.search(u'ุณูˆุฑุฉ:ูŠุณ')           # Search in Sura Yasin
>>> api.search(u'ุณุฌุฏุฉ:ู†ุนู…')          # Search verses with sajda

Wildcard search:

python
>>> api.search(u'*ู†ุจูŠ*')             # Words containing "ู†ุจูŠ"

Faceted search (aggregate by fields):

python
>>> api.do({
...     "action": "search",
...     "query": u"ุงู„ู„ู‡",
...     "facets": "sura_id,juz"
... })

Documentation

API Reference

Core Functions

  • api.search(query, **options) - Search Quran verses
  • api.do(params) - Unified interface for all actions (search, suggest, show, list_values, correct_query)
  • api.correct_query(query, unit, flags) - Get a spelling-corrected version of a query
  • api.get_info(category) - Get metadata information

The underlying Raw output engine is exposed as Engine in alfanous.api (and re-exported from alfanous directly). Use it as a context manager to ensure index resources are properly released:

server.ts
from alfanous.api import Engine
# or equivalently:
# from alfanous import Engine

with Engine() as engine:
    result = engine.do({"action": "search", "query": u"ุงู„ู„ู‡"})

Search Parameters

Common parameters for api.do() with action="search":

  • query (str): Search query (required)
  • unit (str): Search unit - "aya", "word", or "translation" (default: "aya")
  • page (int): Page number (default: 1)
  • perpage (int): Results per page, 1-100 (default: 10)
  • sortedby (str): Sort order - "score", "relevance", "mushaf", "tanzil", "ayalength" (default: "score")
  • reverse (bool): Reverse the sort order (default: False)
  • view (str): Output view - "minimal", "normal", "full", "statistic", "linguistic" (default: "normal")
  • highlight (str): Highlight style - "css", "html", "bold", "bbcode" (default: "css")
  • script (str): Text script - "standard" or "uthmani" (default: "standard")
  • vocalized (bool): Include Arabic vocalization (default: True)
  • translation (str): Translation ID to include
  • recitation (str): Recitation ID to include (1-30, default: "1")
  • fuzzy (bool): Enable fuzzy search โ€” searches both aya_ (exact) and aya (normalised/stemmed) fields, plus Levenshtein distance matching (default: False). See Exact Search vs Fuzzy Search.
  • fuzzy_maxdist (int): Maximum Levenshtein edit distance for fuzzy term matching โ€” 1, 2, or 3 (default: 1, only used when fuzzy=True).
  • facets (str): Comma-separated list of fields for faceted search
  • filter (dict): Filter results by field values

For a complete list of parameters and options, see the detailed documentation.

Advanced Features

Exact Search vs Fuzzy Search

Alfanous provides two complementary search modes that control which index fields are queried.

Exact Search (default โ€” fuzzy=False)

When fuzzy search is off (the default), queries run against the aya_ field, which stores the fully-vocalized Quranic text with diacritical marks (tashkeel) preserved. This mode is designed for precise, statistical matching:

  • Diacritics in the query are significant โ€” ู…ูŽู„ููƒู and ู…ูŽุงู„ููƒู are treated as different words.
  • No stop-word removal, synonym expansion, or stemming is applied to the query.
  • Ideal when you need exact phrase matches, reproducible result counts, or statistical analysis.
python
# Default exact search โ€” only the vocalized aya_ field is used
>>> api.search(u"ุงู„ู„ู‡")
>>> api.search(u"ุงู„ู„ู‡", fuzzy=False)

# Phrase match with full diacritics
>>> api.search(u'"ุงู„ู’ุญูŽู…ู’ุฏู ู„ูู„ูŽู‘ู‡ู"')
Fuzzy Search (fuzzy=True)

When fuzzy search is on, queries run against both the aya_ field (exact matches) and the aya field (a separate index built for broad, forgiving search). At index time the aya field is processed through a richer pipeline:

  1. Normalisation โ€” shaped letters, tatweel, hamza variants and common spelling errors are unified.
  2. Stop-word removal โ€” high-frequency function words (e.g. ู…ูู†ู’ุŒ ูููŠุŒ ู…ูŽุง) are filtered out so they do not dilute result relevance.
  3. Synonym expansion โ€” each token is stored together with its synonyms, so a query for one word automatically matches equivalent words.
  4. Arabic stemming โ€” words are reduced to their stem using the Snowball Arabic stemmer (via pystemmer), so different morphological forms of the same root match each other.

No heavy operations are performed on the query string at search time; all the linguistic enrichment lives in the index.

Additionally, for each Arabic term in the query, a Levenshtein distance search is performed against the aya_ac field (unvocalized, non-stemmed). This catches spelling variants and typos within a configurable edit-distance budget controlled by fuzzy_maxdist.

python
# Fuzzy search โ€” aya_ (exact) + aya (normalised/stemmed) + Levenshtein distance on aya_ac
>>> api.search(u"ุงู„ูƒุชุงุจ", fuzzy=True)

# Increase edit distance to 2 to tolerate more spelling variation
>>> api.search(u"ุงู„ูƒุชุงุจ", fuzzy=True, fuzzy_maxdist=2)

# Via the unified interface
>>> api.do({
...     "action": "search",
...     "query": u"ู…ุคู…ู†",
...     "fuzzy": True,
...     "fuzzy_maxdist": 1,
...     "page": 1,
...     "perpage": 10
... })
fuzzy_maxdistBehaviour
1 (default)Catches single-character insertions, deletions, or substitutions
2Broader tolerance โ€” useful for longer words or noisy input
3Maximum supported โ€” use with care as recall increases significantly

Fuzzy mode is particularly useful when:

  • The user does not know the exact vocalized form of a word.
  • You want morphologically related words to appear in the same result set (e.g. searching ูƒุชุจ also surfaces ูƒุชุงุจ, ูƒุงุชุจ, ู…ูƒุชูˆุจ).
  • You want synonym-aware retrieval without writing explicit OR queries.

Note: pystemmer must be installed for stemming to take effect (pip install pystemmer). If the package is absent the stem filter degrades silently to a no-op, leaving normalisation and stop-word removal still active.

List Field Values

list_values returns every unique indexed value for a given field. Use it to discover the full vocabulary of searchable fields โ€” for example, all available translation identifiers, part-of-speech tags, or root words โ€” before composing a query.

python
# Get all unique root values in the index
>>> api.do({"action": "list_values", "field": "root"})
# Returns: {"list_values": {"field": "root", "values": [...], "count": N}}

# Discover all indexed translation IDs
>>> api.do({"action": "list_values", "field": "trans_id"})

# Discover all part-of-speech categories for word search
>>> api.do({"action": "list_values", "field": "pos"})

# Retrieve all indexed lemmas on demand (replaces the former show/lemmas)
>>> api.do({"action": "list_values", "field": "lemma"})

Parameters:

  • field (str): The name of the indexed field whose unique values you want (required).

Return value:

A dictionary with a list_values key containing:

  • field โ€” the requested field name.
  • values โ€” sorted list of unique non-empty indexed values.
  • count โ€” length of the values list.

Query Correction

correct_query() uses Whoosh's built-in spell-checker to compare each term in the query against the index vocabulary and replace unknown terms with the closest known alternative. When the query is already valid (all terms appear in the index) the corrected value in the response is identical to the original input.

python
# Correct a query via the dedicated function
>>> api.correct_query(u"ุงู„ูƒุชุงุจ")
# Returns:
# {"correct_query": {"original": "ุงู„ูƒุชุงุจ", "corrected": "ุงู„ูƒุชุงุจ"}, "error": ...}

# Correct a misspelled / out-of-vocabulary term
>>> api.correct_query(u"ุงู„ูƒุชุจ")
# Returns:
# {"correct_query": {"original": "ุงู„ูƒุชุจ", "corrected": "ุงู„ูƒุชุงุจ"}, "error": ...}

# Via the unified interface
>>> api.do({"action": "correct_query", "query": u"ุงู„ูƒุชุจ", "unit": "aya"})

Parameters:

  • query (str): The raw query string to correct (required).
  • unit (str): Search unit โ€” currently only "aya" is supported; other units return None (default: "aya").
  • flags (dict): Optional dictionary of additional flags.

Return value:

A dictionary with a correct_query key containing:

  • original โ€” the input query string as provided.
  • corrected โ€” the corrected query string; identical to original when no correction is needed.

Query Syntax

Alfanous supports advanced query syntax:

  • Phrases: Use quotes - "ุงู„ุญู…ุฏ ู„ู„ู‡"
  • Boolean AND: Use + - ุงู„ุตู„ุงุฉ + ุงู„ุฒูƒุงุฉ
  • Boolean OR: Use | - ุงู„ุตู„ุงุฉ | ุงู„ุฒูƒุงุฉ
  • Boolean NOT: Use - - ุงู„ุตู„ุงุฉ - ุงู„ุฒูƒุงุฉ
  • Wildcards: Use * for multiple chars, ? for single char - *ู†ุจูŠ*, ู†ุนู…ุŸ
  • Fielded Search: Use field name - ุณูˆุฑุฉ:ูŠุณ, ุณุฌุฏุฉ:ู†ุนู…
  • Ranges: Use [X ุงู„ู‰ Y] - ุฑู‚ู…_ุงู„ุณูˆุฑุฉ:[1 ุงู„ู‰ 5]
  • Partial Vocalization: Search with some diacritics - ุขูŠุฉ_:'ู…ูŽู†'
  • Derivation (stem): Use > - >ุฑุญูŠู… (searches aya_stem โ€” corpus-derived stem)
  • Derivation (lemma): Use >> - >>ุฑุญูŠู… (searches aya_lemma โ€” all inflections of the same lexeme)
  • Derivation (root): Use >>> - >>>ู…ู„ูƒ (searches aya_root โ€” all words from the same root)
  • Tuples: Use {root,type} - {ู‚ูˆู„ุŒุงุณู…}

Derivation-Level Search

Control how broadly the search expands morphologically using the derivation_level parameter:

LevelValueIndex fieldDescription
0"word"ayaExact match only (default)
1"stem"aya_stemCorpus-derived stem โ€” words sharing the same morphological stem
2"lemma"aya_lemmaCorpus lemma โ€” all inflections of the same lexeme
3"root"aya_rootTrilateral root โ€” all words from the same root

Each derivation field is pre-indexed at build time so queries run against a compact, pre-computed representation rather than expanding at search time.

python
# Level 0 โ€” exact match
>>> api.do({"action": "search", "query": "ุฑูŽุญููŠู…ูŒ"})

# Level 1 โ€” stem (corpus-derived stem)
>>> api.do({"action": "search", "query": "ุฑุญูŠู…", "derivation_level": 1})

# Level 2 โ€” all words sharing the same lemma (e.g. all forms of ุฑูŽุญููŠู…ูŒ)
>>> api.do({"action": "search", "query": "ุฑุญูŠู…", "derivation_level": 2})

# Level 3 โ€” all words from root ุฑุญู… (ุฑุญู…ุฉุŒ ุฑุญู…ู†ุŒ ุฑุญูŠู…ุŒ ูŠุฑุญู…ุŒ โ€ฆ)
>>> api.do({"action": "search", "query": "ุฑุญูŠู…", "derivation_level": 3})

# String aliases are also accepted
>>> api.do({"action": "search", "query": "ูƒุชุจ", "derivation_level": "root"})

The derivation syntax >word, >>word, >>>word maps to levels 1, 2, 3 respectively and can be embedded directly in queries:

python
# Stem-level derivation in a query expression
>>> api.do({"action": "search", "query": ">ุฑุญูŠู…"})

# Root-level: all words from root ู…ู„ูƒ
>>> api.do({"action": "search", "query": ">>>ู…ู„ูƒ"})

# Combined with field filters
>>> api.do({"action": "search", "query": ">>ุงู„ู„ู‡ AND ุณูˆุฑุฉ:ุงู„ุฅุฎู„ุงุต"})

Word Search (unit="word")

When unit="word" the engine searches word-level child documents instead of verse-level parent documents. Each word child carries its full morphological annotation โ€” part-of-speech, lemma, stem, root, pattern, gender, number, person, voice, mood, derivation level, and more.

python
# Search all words matching "ุงู„ู„ู‡" at word level
>>> api.do({"action": "search", "query": "ุงู„ู„ู‡", "unit": "word"})

# Derivation levels also apply to word search:
# Level 1 โ€” search word_stem (corpus-derived stem)
>>> api.do({"action": "search", "query": "ุฑุญูŠู…", "unit": "word", "derivation_level": 1})

# Level 2 โ€” search word_lemma (normalized lemma)
>>> api.do({"action": "search", "query": "ุฑุญูŠู…", "unit": "word", "derivation_level": 2})

# Level 3 โ€” search root (exact root value, e.g. "ุฑุญู…")
>>> api.do({"action": "search", "query": "ุฑุญู…", "unit": "word", "derivation_level": 3})
Morphological Filtering (search_by_word_linguistics)

Filter words by any combination of morphological properties using the search_by_word_linguistics action:

python
# Find all nouns from root ู‚ูˆู„
>>> api.do({
...     "action": "search_by_word_linguistics",
...     "root": "ู‚ูˆู„",
...     "type": "ุฃุณู…ุงุก"       # Arabic POS category name
... })

# Find all active-voice past-tense verbs from root ูƒุชุจ
>>> api.do({
...     "action": "search_by_word_linguistics",
...     "root": "ูƒุชุจ",
...     "pos": "V",
...     "voice": "ู…ุจู†ูŠ ู„ู„ู…ุนู„ูˆู…",
...     "aspect": "ูุนู„ ู…ุงุถูŠ"
... })

# Find all proper nouns
>>> api.do({
...     "action": "search_by_word_linguistics",
...     "pos": "PN"
... })

Available morphological filter fields include: pos, type, root, lemma, stem, pattern, gender, number, person, voice, mood, state, case, form, aspect, derivation, special, prefix, suffix, segments.

Faceted search allows you to aggregate search results by fields:

python
>>> result = api.do({
...     "action": "search",
...     "query": u"ุงู„ู„ู‡",
...     "facets": "sura_id,juz,chapter"
... })
>>> print(result["search"]["facets"])

Available facet fields:

  • sura_id - Sura (chapter) number (1-114)
  • juz - Juz (part) number (1-30)
  • hizb - Hizb (section) number
  • chapter - Main topic/chapter
  • topic - Subtopic
  • sura_type - Meccan/Medinan classification

Filtering Results

Filter search results by field values:

python
>>> api.do({
...     "action": "search",
...     "query": u"ุงู„ู„ู‡",
...     "filter": {"sura_id": "2"}  # Only from Sura Al-Baqarah
... })

Search Fields

Available fields for fielded search:

  • ุณูˆุฑุฉ (sura) - Sura name
  • ุฑู‚ู…_ุงู„ุณูˆุฑุฉ (sura_id) - Sura number
  • ุฑู‚ู…_ุงู„ุขูŠุฉ (aya_id) - Verse number
  • ุฌุฒุก (juz) - Juz number
  • ุญุฒุจ (hizb) - Hizb number
  • ุตูุญุฉ (page) - Page number in Mushaf
  • ุณุฌุฏุฉ (sajda) - Has prostration
  • ู…ูˆุถูˆุน (subject) - Subject/theme
  • ูุตู„ (chapter) - Chapter
  • ุจุงุจ (subtopic) - Subtopic
  • ู†ูˆุน_ุงู„ุณูˆุฑุฉ (sura_type) - Sura type (Meccan/Medinan)

Word-level fields (use with unit="word"):

  • englishstate - Nominal state in English (e.g. "Definite state", "Indefinite state")
  • englishmood - Verb mood in English (e.g. "Indicative mood", "Subjunctive mood", "Jussive mood")

For the complete field list, call:

python
>>> api.do({"action": "show", "query": "fields"})

Output Views

Different views provide different levels of detail:

  • minimal - Basic verse text and identifier
  • normal - Verse text with essential metadata
  • full - All available information
  • statistic - Include statistical information
  • linguistic - Include linguistic analysis

Example:

python
>>> api.do({
...     "action": "search",
...     "query": u"ุงู„ู„ู‡",
...     "view": "full",
...     "word_info": True,
...     "aya_theme_info": True
... })

Metadata Access

Get various metadata using the "show" action:

python
# Get list of available translations
>>> api.do({"action": "show", "query": "translations"})

# Get list of recitations
>>> api.do({"action": "show", "query": "recitations"})

# Get Sura information
>>> api.do({"action": "show", "query": "surates"})

# Get search fields
>>> api.do({"action": "show", "query": "fields"})

# Get default values
>>> api.do({"action": "show", "query": "defaults"})

Note: Lemmas are no longer exposed via show. Use api.do({"action": "list_values", "field": "lemma"}) to retrieve them on demand.

Adding New Translations

You can extend the local search index with additional Zekr-compatible .trans.zip translation files using index_translations(). This requires the alfanous_import package (included in the repository under src/alfanous_import/).

server.ts
import alfanous.api as alfanous

# Index all .trans.zip files found in a folder
count = alfanous.index_translations(source="/path/to/translations")
print(f"{count} translation(s) newly indexed")

The function:

  • Iterates over every *.trans.zip file in source
  • Skips translations that are already in the index (idempotent โ€” safe to call repeatedly)
  • Returns the count of newly indexed translations (0 means nothing new was added)
  • Automatically updates configs/translations.json so the new translations are immediately visible via api.get_info("translations") and searchable with unit="translation"

After indexing, search in the new translation:

python
# Search in a newly indexed translation
result = alfanous.search(u"ุงู„ุฑุญู…ู†", unit="translation", flags={"translation": "en.newt"})

See examples/index_translations_example.py for a complete walkthrough.

Examples

The examples/ directory contains example scripts demonstrating various features:

  • facet_search_examples.py - Faceted search and filtering examples

See examples/README.md for more information.

MCP Server

Alfanous ships an MCP (Model Context Protocol) server that lets AI assistants (Claude, Copilot, etc.) search and explore the Qur'an directly. See alfanous_mcp/README.md for the full reference.

Quick start:

sh
$ pip install alfanous3-mcp
$ python -m alfanous_mcp.mcp_server        # stdio โ€“ works with Claude Desktop

To connect Claude Desktop, add the following to your claude_desktop_config.json:

config.json
{
  "mcpServers": {
    "alfanous": {
      "type": "stdio",
      "command": "python",
      "args": ["-m", "alfanous_mcp.mcp_server"],
      "tools": [
        "search_quran",
        "search_translations",
        "get_quran_info",
        "search_quran_by_themes",
        "search_quran_by_stats",
        "search_quran_by_position",
        "suggest_query",
        "correct_query",
        "search_by_word_linguistics",
        "list_field_values"
      ]
    }
  }
}

Web Interface

Alfanous includes a FastAPI-based web service for RESTful access. See alfanous_webapi/README.md for:

  • Installation and setup
  • API endpoints
  • Request/response examples
  • Interactive API documentation (Swagger UI)

Quick start:

sh
$ pip install alfanous3 fastapi uvicorn
$ cd src/
$ uvicorn alfanous_webapi.web_api:app --reload

Then visit http://localhost:8000/docs for interactive documentation.

Contributing

We welcome contributions! See CONTRIBUTING.md for:

  • Setting up a development environment
  • Building from source
  • Running tests
  • Submitting pull requests
  • Code style guidelines

Quick development setup:

sh
# Clone the repository
$ git clone https://github.com/Alfanous-team/alfanous.git
$ cd alfanous

# Install dependencies
$ pip install pyparsing whoosh pystemmer pytest

# Build indexes (required for development)
$ make build

# Run tests
$ pytest -vv --rootdir=src/

Support

  • GitHub Issues: https://github.com/Alfanous-team/alfanous/issues
  • Mailing List: alfanous@googlegroups.com
  • Website: http://alfanous.org

License

Alfanous is licensed under the GNU Lesser General Public License v3 or later (LGPLv3+).

See LICENSE for details.

Credits

  • Contributors: See AUTHORS.md and THANKS.md

This project handles sacred religious text (the Holy Qur'an) - please treat the data and code with respect.

Legacy

If you are looking for the legacy Alfanous code, you can find it under the legacy branch.

Related MCP Servers

View all in Developer Tools View all alternatives
  • Claude Task Master logoClaude Task Master

    AI-powered task management system for AI-driven development. Features PRD parsing, task expansion, multi-provider support (Claude, OpenAI, Gemini, Perplexity, xAI), and selective tool loading for optimized context usage.

    ๐Ÿ’ป Developer Tools7 views
    Compare vs Claude Task Master โ†’
  • A
    Ai Netcafe

    Compare LLM cost & latency on one prompt, translate PDF keeping layout, cited research, make PPTX

    ๐Ÿ’ป Developer Tools0 views
    Compare vs Ai Netcafe โ†’
  • A
    Agent Skills Search Server

    Search and discover Agent Skills from the skills.sh registry. Powered by HAPI MCP server.

    ๐Ÿ’ป Developer Tools0 views
    Compare vs Agent Skills Search Server โ†’
  • A
    Adeu

    Automated DOCX Redlining Engine

    ๐Ÿ’ป Developer Tools0 views
    Compare vs Adeu โ†’

Frequently Asked Questions about Alfanous Quranic Search Engine

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "alfanous-quranic-search-engine": { "command": "npx", "args": ["-y", "Alfanous - Quranic Search Engine"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAlfanous   Quranic Search Engine AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/alfanous-quranic-search-engine?style=directory)](https://allmcps.com/mcp/alfanous-quranic-search-engine)
HTML Embed
<a href="https://allmcps.com/mcp/alfanous-quranic-search-engine"><img src="https://allmcps.com/api/badge/alfanous-quranic-search-engine?style=directory" alt="Alfanous Quranic Search Engine on AllMCPs" /></a>

Technical Specs & Signals

Category๐Ÿ’ปDeveloper Tools
More technical detailsExpand โ–พ
TransportSTDIO
RuntimeNode.js
0/4 checks healthy over the last 6h
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
27Quality signal: Emerging ยท 27/100How this signal is calculated โ–พ
Server availabilityNot measured

Not scored for repo-hosted servers โ€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data โ€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

โ˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Free dofollow backlink: after claiming, verify your product site and place a dofollow AllMCPs badge โ€” we recheck it stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in ๐Ÿ’ป Developer Tools โ†’Best MCP servers for Developers โ†’Alternatives to Alfanous Quranic Search Engine โ†’Install in Claude DesktopInstall in CursorInstall in VS Code