quran-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@quran-mcpShow me Surah Al-Fatiha with Arabic text and English translation."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
quran-mcp
An MCP server providing canonical Quran text, translations, and tafsir commentary — sourced from quran.com.
What this is
quran-mcp is a Model Context Protocol server that gives AI assistants grounded access to the Quran. Instead of relying on training data (which can misquote, fabricate, or confuse verses), the AI fetches verified text through structured tool calls.
Why this matters: For Muslims, the Quran is the literal word of God. Misquoting it is not an acceptable error mode. This server exists so AI assistants can cite accurately, attribute properly, and defer to scholarly commentary rather than inventing interpretations.
Related MCP server: Quran Cloud MCP Server
Capabilities
Quran text — Arabic text in multiple qira'at (Hafs, Warsh, Qaloon, etc.)
Translations — 50+ translations across 30+ languages
Tafsir — Classical and modern exegesis from 15+ scholars (Ibn Kathir, al-Tabari, al-Qurtubi, al-Sa'di, and more)
Search — Full-text search across Quran text, translations, and tafsir
Morphology — Word-level grammatical analysis, root concordance, paradigm tables
Mushaf viewer — Visual mushaf page rendering
Quick start
As a remote MCP server (recommended)
Add to your MCP client configuration:
{
"mcpServers": {
"quran": {
"url": "https://mcp.quran.ai",
"type": "http"
}
}
}Works with Claude Desktop, ChatGPT, and any MCP-compatible client.
Self-hosted
git clone https://github.com/quran/quran-mcp.git
cd quran-mcp
cp .env.example .env # fill in database password
docker compose up -d # starts postgres + serverThe server runs at http://localhost:8088.
For integration patterns beyond basic hosting, see docs/SETUP.md. It documents both MCP-server composition (for sibling servers such as quran-mcp-auth) and client-style consumption (for apps such as quran-mcp-admin).
Project structure
src/quran_mcp/
server.py Entry point
mcp/ Client-facing MCP surface
tools/ fetch_quran, search_tafsir, etc.
resources/ MCP resources
prompts/ MCP prompts
lib/ Business logic and utilities
middleware/ Request pipeline (rate limiting, grounding, logging)
apps/ Backend-owned interactive apps (documentation, mushaf viewer)
assets/ Static files
frontend/ Main Arabic religious website frontend (Svelte + Vite)
tests/ Test suite
codev/ Development methodology (specs, plans, protocols)Development
The main religious website frontend is intentionally separated from the Python backend:
cd frontend
npm install
npm run buildThe build emits the single-file website into src/quran_mcp/assets/, where the Python
server serves it at /. The frontend calls the backend Quran route at /api/quran.
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
cp .env.example .env
docker compose up -d
pytestData sources
All Quran text, translations, and tafsir are sourced from Quran Foundation projects, including quran.com and nuqayah.com.
License
QFGPL-1.0 — Quran Foundation General Public License
This server cannot be deployed
Maintenance
Related MCP Connectors
Search and retrieve Quran ayahs, tafsir commentary, hadith, and detailed hadith records.
Quran: Quran API Service with 90+ different languages and 400+ translations.
Semantic search across 6,236 Quran verses and 12,416 authentic Hadiths for Islamic guidance.
Scripture-cited answers to any Bible question, plus verse text and study pages, for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides 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.181610MIT
- AlicenseNot gradedqualityDmaintenanceConnects LLMs to the Quran API (alquran.cloud) to retrieve accurate Quranic text on-demand, reducing hallucinations when working with sensitive religious content.MIT
- FlicenseCqualityCmaintenanceConnects AI assistants to authentic Islamic content including Qur'an, Hadith, and resources in multiple languages via over 80 tools.128113-
- FlicenseNot gradedqualityDmaintenanceProvides canonical Quran text, translations, and tafsir commentary via MCP for accurate AI citation.81-