@quranmiracle/mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
@quranmiracle/mcp
Remote MCP server for Quranic linguistic data — 77,851 words, 324,646 letters, 114 surahs with grammar-aware search, ebced calculations, and root analysis.
Built on the Model Context Protocol, this server gives AI applications direct access to a comprehensive Quranic database with Arabic morphological analysis, abjad (ebced) numerology, and grammar-aware search that handles the Arabic prefix system. Deployed as a remote HTTP server with OAuth 2.1 authentication.
Quick Start
This is a remote MCP server. Point your MCP client to the deployed URL:
Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
{
"mcpServers": {
"qurandb": {
"url": "https://your-deployed-url.vercel.app/mcp"
}
}
}Cursor
Go to Settings > MCP Servers > Add:
{
"mcpServers": {
"qurandb": {
"url": "https://your-deployed-url.vercel.app/mcp"
}
}
}The OAuth 2.1 flow is handled automatically by MCP clients — dynamic client registration, authorization, and token exchange happen transparently.
Related MCP server: Quranpedia MCP
Environment Variables
Variable | Required | Description |
| Yes | Secret key for signing JWT tokens (HMAC-HS256) |
| Yes | Public URL of the server (e.g. |
| No | Server port (default: |
Available Tools (7)
Tool | Description | Key Parameters |
| Search words by text, root, or lemma |
|
| Grammar-aware search with Arabic prefix analysis |
|
| Get verse with all words and linguistic data |
|
| Get surah metadata and statistics |
|
| Search by abjad numerical value |
|
| Letter frequency statistics |
|
| Get all words derived from a root |
|
Grammar-Aware Search
The quran_grammar_search tool handles the Arabic prefix system automatically. When you search for a word like الله, it finds all prefix variants:
الله (exact) — 2,255 occurrences
والله (wa + Allah) — conjunction "and"
بالله (bi + Allah) — preposition "with/by"
لله (li + Allah) — preposition "for" (lam merges with al-)
تالله (ta + Allah) — oath marker
فالله (fa + Allah) — conjunction "then/so"
Results are grouped by grammar category with counts for each prefix type.
Ebced (Abjad) Search
The quran_ebced_search tool searches by numerical value using the traditional abjad letter-number system (alif=1, ba=2, ... ghayn=1000). Supports exact value, range, and multiples-of-19 filtering for both individual words and entire verses.
Available Prompts (4)
Prompt | Description | Arguments |
| Grammar-aware search guide |
|
| Verse linguistic analysis guide |
|
| Ebced calculation rules |
|
| Root derivation analysis |
|
Prompts provide structured instructions to the AI model, teaching it how to use the tools effectively with domain-specific knowledge about Arabic morphology, abjad numerology, and Quranic linguistics.
Database Statistics
Metric | Count |
Words | 77,851 (with POS tags, roots, lemmas, ebced values) |
Letters | 324,646 (with individual abjad values) |
Surahs | 114 (Arabic, Turkish, English names) |
Verses | 6,236 |
Each word record includes: Arabic text, surah/ayah location, position in verse, root (Buckwalter), lemma (Buckwalter), POS tag, and abjad value. The letter table stores each individual letter with its position and abjad value.
Example Scenarios
"How many times does the word الله appear in the Quran?" — Uses
quran_grammar_searchto find all prefix variants of Allah and returns grouped counts."Analyze verse 2:255 (Ayat al-Kursi)" — Uses
quran_get_versewith surah=2, ayah=255 to retrieve full word-by-word linguistic data."Find words whose ebced value is a multiple of 19" — Uses
quran_ebced_searchwithonly_19: trueto find words whose abjad values are multiples of 19."Show all words derived from the root ر-ح-م" — Uses
quran_get_root_wordswith root="رحم" to retrieve all words derived from the r-H-m root (mercy).
Deployment
The server is configured for Vercel deployment. The vercel.json routes all requests to api/index.ts, which re-exports the Express app.
# Set required environment variables in Vercel dashboard:
# AUTH_SECRET, AUTH_ISSUER_URL
vercel deployThe SQLite database (data/qurandb.sqlite) is bundled with the deployment via the includeFiles config in vercel.json.
Building from Source
git clone https://github.com/berktavsan/quranmiracle-mcp.git
cd quranmiracle-mcp
npm install
npm run build:db # Creates SQLite from compressed JSON sources in data/
npm run build # Compiles TypeScript to dist/index.jsThe build:db script decompresses data/words.json.gz and data/letters.json.gz to create the SQLite database at data/qurandb.sqlite.
Development
# Set environment variables
export AUTH_SECRET="your-dev-secret"
export AUTH_ISSUER_URL="http://localhost:3000"
npm run dev # Runs the server on port 3000 via tsxLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Quran MCP server for translation, tafsir, mutashabihat, recitation playlists, and prayer times.
Quran MCP — Al-Quran Cloud API. Surahs (chapters), ayahs (verses), translations, and full-text…
Quran: Quran API Service with 90+ different languages and 400+ translations.
Find, vet, and run MCP tools through a secure audited gateway with prompt-injection risk scoring
Related MCP Servers
- 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
- AlicenseAqualityCmaintenanceProvides AI clients with fast, hallucination-free access to the Quran through 13 MCP tools, covering search, navigation, morphology, tafsir, translations, and surah background over stdio and Streamable HTTP.26MIT
- FlicenseNot gradedqualityBmaintenanceEnables AI assistants to retrieve canonical Quran text, translations, scholarly tafsir, full-text search, and word-level morphology from verified Quran data.-
- AlicenseAqualityCmaintenanceProvides read-only access to Quran data — reciters, surahs, full-text search, ayah retrieval, prayer times, live radio stations, and Hijri dates — so AI agents can answer Islamic content queries. Runs locally via stdio or remotely over stateless HTTP for Claude, ChatGPT, and other MCP clients.8ISC