QQ

quran/quran-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

128 stars 29 forks 质量 73 趋势 21NOASSERTION

Quran/Quran-mcp 是一个从 https://github.com/quran/quran-mcp. 导入的 MCP 服务器候选。

概览

Quran/Quran-mcp 是一个从 https://github.com/quran/quran-mcp. 导入的 MCP 服务器候选。

概述(AI 翻译)

一个MCP服务器,提供经典古兰经文本、翻译和注释——来源于 quran.com。

这是什么

Quran-MCP 是一款模型上下文协议服务器,为 AI 助手提供对《古兰经》的基于地带访问。AI 不再依赖训练数据(这些数据可能引用错误、伪造或混淆经文),而是通过结构化工具调用获取经过验证的文本。

这为何重要: 对穆斯林来说,《古兰经》是真主的字面话语。错误引用是不可接受的错误模式。这个服务器的存在是为了让AI助手准确引用、正确注明出处,并尊重学术评论而非虚构解读。

能力

  • 古兰经文本——阿拉伯语文本,包含多个qira’at(哈夫斯、瓦尔什、卡隆等)
  • 翻译 — 跨30+语言的50+翻译
  • Tafsir — 15+位学者(伊本·卡西尔、塔巴里、库尔图比、萨迪等)的古典与现代释经
  • 搜索 — 涵盖《古兰经》文本、翻译和注释的全文搜索
  • 形态学 — 词汇层面语法分析、词根对应、范例表
  • Mushaf viewer — 可视化 Mushaf 页面渲染

快速开始

作为远程MCP服务器(推荐)

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 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

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

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "quran": { "url": "https://mcp.quran.ai", "type": "http" } } }