Alfanous - Quranic Search Engine
개요
제작자가 쓴 설명(영어 원문)
Search and explore the Holy Qur'an with Arabic text, transliteration, and advanced search support.
PopNx MCP의 세 기둥
이 세 가지는 절대 하나의 점수로 합치지 않아요. 의견, 측정, 인기는 서로 다른 것이니까요.
- 사용자 의견i아직 리뷰가 없어요리뷰는 다음 단계에서 계정 기능과 함께 열려요
- 우리의 기본 점검i1개 중 1개 통과공개된 정보로 점검했으며, 코드는 아직 스캔하지 않았어요
- 사용 정도i아주 새로움↓ 75/주 · ★ –
할 수 있는 일
이 서버는 아직 쉬운 말로 된 요약을 쓰지 못했어요. 아래는 레지스트리에서 읽어 온 사실이에요.
- 연결 방식: 내 컴퓨터에서 실행
- 전송 방식: stdio
- 카테고리: 검색 및 AI 기억
설치
쓰고 있는 AI 앱을 고른 다음 설정을 복사하세요.
설치하기 전에
- 기본 점검: 1개 중 1개 통과
- 내 컴퓨터에서 내 사용자 계정의 권한(파일, 네트워크, 앱)으로 실행돼요.
- 레지스트리에 입력해야 할 키가 나와 있지 않아요.
필요한 것
- PyPIPython의 uv 설치(uvx 명령어용)
어떤 앱을 쓰세요?
위에서 앱을 고르세요. 기억해 두었다가 다음부터는 버튼에 “…에 설치”라고 표시해요.
Claude Desktop → Settings → Developer → Edit Config를 열고 claude_desktop_config.json에 이 내용을 붙여 넣으세요
{
"mcpServers": {
"alfanous": {
"command": "uvx",
"args": [
"alfanous3-mcp"
]
}
}
}터미널에서 이 명령어를 실행하세요
claude mcp add alfanous -- uvx alfanous3-mcp또는 설정을 직접 복사하기
프로젝트의 .cursor/mcp.json 또는 ~/.cursor/mcp.json에 붙여 넣으세요
{
"mcpServers": {
"alfanous": {
"command": "uvx",
"args": [
"alfanous3-mcp"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
또는 설정을 직접 복사하기
프로젝트의 .vscode/mcp.json에 붙여 넣으세요
{
"servers": {
"alfanous": {
"type": "stdio",
"command": "uvx",
"args": [
"alfanous3-mcp"
]
}
}
}브라우저가 앱을 열지 물어본 다음, 앱이 설정을 보여 주고 확인을 요청해요. 키 값은 비워 두니 직접 입력하세요.
이 서버는 내 컴퓨터에서 실행되는데, ChatGPT는 인터넷에 있는 서버에만 연결할 수 있어요. 다른 앱을 고르세요.
선택한 앱은 이 기기의 쿠키에만 저장돼요. 계정은 필요 없어요.
이 설정은 제작자의 레지스트리 정보로 만들었어요. README와 다르면 README를 따르세요.
할 수 있는 일
내 컴퓨터에서 실행돼요. 설치하면 AI 앱에 도구 목록이 나타나요.
기본 점검i
누구나 볼 수 있는 정보를 점검했고, 코드는 읽지 않았어요. 해당하지 않는 항목은 개수에서 뺐어요. · 2026년 11월 8일 점검
- ✓ 통과
제작자와 저장소 일치
레지스트리 이름이 GitHub 계정 Alfanous-team 기준으로 확인되었고, 이 계정이 저장소를 소유하고 있어요
- … 아직 점검 안 함
계속 관리되고 있음
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
- … 아직 점검 안 함
라이선스 있음
아직 GitHub에서 이 저장소를 읽어 오지 않았어요
- – 해당 없음
엔드포인트 응답
내 컴퓨터에서 실행되는 서버라 인터넷 엔드포인트가 없어요
- – 해당 없음
OAuth로 로그인
내 컴퓨터에서 실행되며, 대신 로컬 설정을 사용해요
- … 아직 점검 안 함
도구 설명에 숨겨진 지시 없음
내 컴퓨터에서 실행돼요. 도구 목록은 인터넷 엔드포인트가 있는 서버에서만 읽을 수 있어요
검색 및 AI 기억 카테고리의 다른 서버와 비교i
- 이 카테고리의 다른 서버 5690개 중 0%보다 스타가 많아요
- 이 카테고리의 다른 서버 5690개 중 17%보다 최근에 레지스트리에 공개됐어요
- 기본 점검 결과가 이 카테고리의 다른 서버 5690개 중 100%와 같거나 더 좋아요
레지스트리에서 이 카테고리의 활성 서버 전체와 비교했어요. 스타는 게시자가 저장소를 소유한 경우에만 세요.
자주 묻는 질문
Alfanous - Quranic Search Engine, 안전한가요?
해당하는 기본 점검 1개 중 1개를 통과했어요. 코드는 읽지 않았어요. 키나 토큰을 넣기 전에 서버가 어떤 권한을 요구하는지 확인하고, 꼭 필요한 권한만 있는 키를 쓰세요.
어떤 키나 코드가 필요한가요?
레지스트리에 필수 키가 나와 있지 않아요. 다만 처음 쓸 때 로그인을 요구하는 서버도 있어요.
내 컴퓨터에서 실행되나요, 클라우드에서 실행되나요?
내 컴퓨터에서 실행돼요. AI 앱이 필요할 때 실행하고, 데이터는 제작자의 서버를 거치지 않아요(서버 자체가 온라인 서비스를 호출하는 경우는 제외).
아직 관리되고 있나요?
GitHub 저장소는 마지막으로 – 변경됐고, 최신 버전(1.9.4)은 5개월 전 레지스트리에 올라왔어요.
어떤 앱에서 쓸 수 있나요?
Claude Desktop, Claude Code, Cursor, VS Code처럼 MCP를 지원하는 앱에서 쓸 수 있어요. 내 컴퓨터에 Python (uv)도 있어야 해요.
대신 쓸 수 있는 건 뭐가 있나요?
같은 카테고리에는: Context7, Codebase Memory, Exa
대안
같은 카테고리에서 다른 제작자가 만든 서버예요. 스타 순으로 정렬했어요.
카드 보는 법:↓ 주간 다운로드i★ GitHub 스타i세 기둥: 리뷰 · 점검 · 사용 정도i업데이트 = 최신 버전을 레지스트리에 공개한 날i
Codebase Memory
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Exa
Connect AI agents to Exa for web search, content fetching, and multi-step research.
제작자의 README
README 열기
제작자의 저장소에서 쓰인 그대로 가져왔어요. PopNx MCP가 검토하거나 보증한 내용이 아니에요. HTML, 이미지, 스크립트는 제거했어요. 링크를 누르면 이 사이트를 벗어나요.
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:
$ pip install alfanous3
Basic Usage
Python Library
>>> 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:
>>> api.search(u'"الحمد لله"')
Boolean search (AND, OR, NOT):
>>> api.search(u'الصلاة + الزكاة') # AND
>> api.search(u'الصلاة | الزكاة') # OR
>> api.search(u'الصلاة - الزكاة') # NOT
Fielded search:
>>> api.search(u'سورة:يس') # Search in Sura Yasin
>> api.search(u'سجدة:نعم') # Search verses with sajda
Wildcard search:
>>> api.search(u'*نبي*') # Words containing "نبي"
Faceted search (aggregate by fields):
>>> api.do({
... "action": "search", ... "query": u"الله", ... "facets": "sura_id,juz" ... })
Documentation
API Reference
Core Functions
api.search(query, **options)- Search Quran versesapi.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 queryapi.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:
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 includerecitation(str): Recitation ID to include (1-30, default: "1")fuzzy(bool): Enable fuzzy search — searches bothaya_(exact) andaya(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, or3(default:1, only used whenfuzzy=True).facets(str): Comma-separated list of fields for faceted searchfilter(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.
# 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:
- Normalisation — shaped letters, tatweel, hamza variants and common spelling errors are unified.
- Stop-word removal — high-frequency function words (e.g. مِنْ، فِي، مَا) are filtered out so they do not dilute result relevance.
- Synonym expansion — each token is stored together with its synonyms, so a query for one word automatically matches equivalent words.
- 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.
# 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_maxdist | Behaviour |
|---|---|
1 (default) | Catches single-character insertions, deletions, or substitutions |
2 | Broader tolerance — useful for longer words or noisy input |
3 | Maximum 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:
pystemmermust 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.
# 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 thevalueslist.
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.
# 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 returnNone(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 tooriginalwhen 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
>->رحيم(searchesaya_stem— corpus-derived stem) - Derivation (lemma): Use
>>->>رحيم(searchesaya_lemma— all inflections of the same lexeme) - Derivation (root): Use
>>>->>>ملك(searchesaya_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:
| Level | Value | Index field | Description |
|---|---|---|---|
| 0 | "word" | aya | Exact match only (default) |
| 1 | "stem" | aya_stem | Corpus-derived stem — words sharing the same morphological stem |
| 2 | "lemma" | aya_lemma | Corpus lemma — all inflections of the same lexeme |
| 3 | "root" | `aya_root
앞부분만 보여 드려요. 나머지는 저장소에서 읽어 보세요