Criterion logo

Criterion

Search Quran verses and Hadith narrations semantically, retrieve verses by reference, and connect the results to MCP-compatible assistants.

Install Criterion

Pick your client, then add it in one click or paste the config.

Streamable HTTP (Remote)
Server URL
https://criterion.life/api/mcp

Remote servers are added in the app, not the config file: Customize → Connectors → Add custom connector, then paste this URL.

Overview

It provides search_quran, search_hadith, and get_verse, including Hadith collection and grade filtering and direct verse lookup by references such as 2:255. Reach for criterion when an AI assistant needs source-grounded Islamic guidance or retrieval from Quran and Hadith collections. A hosted endpoint is available at https://criterion.life/api/mcp.

Use cases

  • Search Quran verses about a natural-language topic
  • Retrieve Hadith by meaning, collection, or authenticity grade
  • Fetch a Quran verse from a surah-and-ayah reference
  • Ground an AI assistant's Islamic guidance in cited sources

Key features

  • Semantic Quran search across 6,236 verses
  • Semantic Hadith search across 21,641 narrations
  • Hadith collection and grade filtering
  • Direct Quran verse lookup by reference
  • Context retrieval with surrounding Quran verses
  • MCP endpoint for hosted assistant access

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

24/29 checks healthy over the last 112d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars21Stargazers on the source repository.
Last commit1mo agoMost recent push to the default branch.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

How Criterion works

What criterion does

criterion connects MCP-compatible AI assistants to a searchable corpus of Quran verses and Hadith narrations. Its MCP interface provides three tools: search_quran for semantic retrieval across 6,236 verses, search_hadith for searching 21,641 narrations from six collections, and get_verse for retrieving a Quran verse from a reference such as 2:255.

The source collection covers all 114 Quran surahs and includes Arabic text, an English translation, and Slovak translation data. Hadith content comes from Sahih Bukhari, Sahih Muslim, Jami` at-Tirmidhi, Sunan Abi Dawud, 40 Hadith Nawawi, and Riyad as-Salihin. Hadith searches can use authenticity grades including Sahih, Hasan, and Da'if.

How it works

Natural-language queries are converted into embeddings and matched against vector indexes in PostgreSQL with pgvector. The application uses 768-dimensional embeddings generated with Google Gemini's text-embedding-004 model.

The broader application uses retrieval-augmented generation: an LLM selects Quran or Hadith tools, the database returns matching passages, and responses include source references linking to Quran.com or Sunnah.com. Quran retrieval can add surrounding verses to improve context. The application also supports streamed responses, although the MCP tools are the relevant interface for external assistants.

Setup and configuration

For the hosted MCP service, add the endpoint to an MCP client configuration:

config.json
{
  "mcpServers": {
    "criterion": {
      "url": "https://criterion.life/api/mcp"
    }
  }
}

Claude Desktop and Cursor are shown as supported clients. A local development setup requires Node.js 18 or newer, pnpm, and PostgreSQL with the pgvector extension. Install dependencies with pnpm install, enable pgvector with pnpm db:enable-pgvector, and apply migrations using pnpm db:migrate.

The application configuration uses POSTGRES_URL for the database, XAI_API_KEY for the Grok language model, and AI_GATEWAY_API_KEY for the AI gateway. Quran and Hadith ingestion scripts populate the database and generate embeddings; Quran ingestion can take 10–15 minutes. Start the development application with pnpm dev.

Tools and capabilities

  • search_quran: Semantically search the Quran corpus.
  • search_hadith: Search Hadith narrations with collection and grade filtering.
  • get_verse: Retrieve a specific Quran verse by reference.
  • Context-aware Quran retrieval can include nearby verses around top matches.
  • English and Slovak Quran reading data are available, with English positioned as the faster path.
  • Search is backed by HNSW vector indexes, with documented search targets below 150 milliseconds for English Quran and Hadith queries.

Limitations and notes

The MCP interface is focused on Quran and Hadith retrieval rather than general-purpose religious research. The project emphasizes core Islamic teachings and avoids sectarian debates and controversial topics. Source coverage and translation availability depend on the ingested datasets; Slovak support is available as translation data, while broader multilingual expansion is described as future-oriented. Running the full application locally also requires external AI API access and a configured PostgreSQL database.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Criterion

criterion is an MCP server that connects AI assistants to Quran and Hadith sources through semantic retrieval tools. Its main tools are search_quran for 6,236 verses, search_hadith for 21,641 narrations with collection and grade filtering, and get_verse for retrieving a Quran verse by reference such as 2:255.

Add https://criterion.life/api/mcp as the criterion server URL in your MCP client configuration. For local development, install Node.js 18+, pnpm, and PostgreSQL with pgvector, then run pnpm install, database setup commands, and pnpm dev.

Yes, criterion works with Cursor through its hosted MCP endpoint. Configure Cursor with the server URL https://criterion.life/api/mcp to expose Quran search, Hadith search, and verse lookup tools.

criterion searches 6,236 Quran verses and 21,641 Hadith narrations from six collections. Quran data includes Arabic, English, and Slovak translation content, while Hadith searches support grades such as Sahih, Hasan, and Da'if.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCriterion AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/criterion?style=directory)](https://allmcps.com/mcp/criterion)
HTML Embed
<a href="https://allmcps.com/mcp/criterion"><img src="https://allmcps.com/api/badge/criterion?style=directory" alt="Criterion on AllMCPs" /></a>