quran-mcp
Provides canonical Quran text, translations, and tafsir commentary via MCP for accurate AI citation.
README
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.
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 + server
The 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/ Frontend apps (documentation site, mushaf viewer)
assets/ Static files
tests/ Test suite
codev/ Development methodology (specs, plans, protocols)
Development
uv venv && source .venv/bin/activate
uv pip install -e ".[dev]"
cp .env.example .env
docker compose up -d
pytest
Data 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
<img src=".assets/scorecard.png" width="100%">
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.