Alfanous
Lets your AI agent search the Qur'an in Arabic, including transliteration and advanced queries.
286 stars on GitHubby Alfanous-teamLicense LGPL-3.0Updated 5 months ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add alfanous -- uvx -m alfanous_mcp.mcp_server alfanous3-mcp
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Search for verses containing the word Allah.
Find verses in sura Yasin that mention a sajda.
What it is
Alfanous is a search engine for the Holy Qur'an. It supports Arabic text, Buckwalter transliteration and rich metadata for verses. Your agent can run simple or advanced searches and get suggestions or spelling fixes.
What it can do
search: search verses with simple or advanced queriessuggest: get suggestions for a queryshow: get metadata such as translationslist_values: list unique values for a fieldcorrect_query: spelling-correct a query- Faceted search by sura, juz and other fields
When to use
- βΊWhen you want to find verses with a certain word or phrase
- βΊWhen you want to search using transliteration instead of Arabic letters
- βΊWhen you want to find words from the same root across the text
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
text-in-imagesGives your agent a way to find images that contain words and replace them with real text, so people using zoom, translation or screen readers can read them.paper-lookupSearches scholarly articles from multiple online sources. It finds research, citations, and full-text papers, returning reliable results.embeddingsLets your agent search by meaning rather than exact words, by turning text into vectors and finding similar items.Frequently asked questions
Is it free and open source?
It is an open Python package published on PyPI, and the public web service needs no key.
Which languages does it support?
Arabic text, Buckwalter transliteration and translations.
What kinds of queries work?
Phrases, AND, OR, NOT, wildcards, fielded search, ranges and root-based search.
What is fuzzy search?
A mode that matches spelling variants, stems and synonyms, with edit distance of 1 to 3.
Do I need to host it?
No. You can use the public service or run your own web service.
Can it return other formats?
Yes. There are views and highlight styles such as css, html, bold and bbcode.
If it does not work
- βΊInstall it with pip install alfanous3.
- βΊInstall pystemmer so stemming works in fuzzy search.
- βΊCheck that Python and pip are installed before starting.
5 new skills a week. 1 minute to read.