# Fanar [Health: Active]

**Category:** 🔮 Spirituality & Esoterica  
**Repository:** https://github.com/Blade-Labs/fanar-mcp  
**GitHub Stars:** 0  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/fanar

## Description
Fanar (QCRI) for MCP: cited Islamic Q&A, Qur'an and hadith checks, Arabic translation and speech

## Tools
Capabilities this server exposes over MCP:

- **fanar_list_models** — List the Fanar models this API key may call. Entitlements differ per key: for example
    Fanar-Sadiq-2, which powers the quotation validator and deep research, must be enabled by Fanar.
- **fanar_chat** — Chat with a Fanar language model. Fanar-C-2-27B is the Fanar 2.0 27B model for Arabic (MSA and
    Gulf, Levantine and Egyptian dialects) and English; "Fanar" is the default alias. Set thinking=true
    for step-by-step reasoning. About 50 requests a minute.
- **fanar_islamic_qa** — Ask Fanar-Sadiq an Islamic question and get an answer grounded in cited sources such as the
    Qur'an, hadith collections and fatwa collections. Show the references with the answer and present
    it as a cited answer, never as a fatwa. Fanar-Sadiq-2 adds madhab and source filters when your key
    is entitled to it; madhab is a list such as ["hanafi"], from all, hanafi, maliki, shafii and hanbali.
    About 50 requests a minute.
- **fanar_validate_quotations** — Detect and verify Qur'an and hadith quotations inside any text: an LLM answer, a draft, an
    article. Verified quotations come back tagged and linked to canonical sources; a quotation left
    untagged could not be confirmed and must be treated as unverified. Requires Fanar-Sadiq-2 on the
    key. About 200 requests a minute.
- **fanar_deep_research** — Start a Fanar-Sadiq-2 deep research job: a structured report on an Islamic topic, with headings
    and cited sources. It takes minutes (quick about 3-6, standard about 7-10); poll it with
    fanar_deep_research_result. Requires Fanar-Sadiq-2 on the key. About 20 jobs a day.
- **fanar_deep_research_result** — Fetch the status, progress or finished report of a Fanar-Sadiq-2 deep research job.
- **fanar_translate** — Translate between Arabic and English with Fanar's Shaheen models, including classical Arabic such
    as hadith and fiqh texts. About 20 requests a day; keep each request under about 4,000 words.
- **fanar_text_to_speech** — Speak Arabic or English text with a Fanar Aura voice and save it as an audio file; returns the
    file path. Qur'an recitation by a named reciter needs Fanar-Sadiq-TTS-1. About 20 requests a day.
- **fanar_transcribe** — Transcribe Arabic (including dialects) or English audio from a local file with Fanar Aura.
    long_form=true uses the long-audio model (about 10 requests a day); otherwise about 20 a day.
- **fanar_generate_image** — Generate a culturally aware image with Fanar Oryx and save it; returns the file path and the
    prompt as Fanar revised it. About 20 requests a day.
- **fanar_moderate** — Score a prompt and response pair with FanarGuard for safety and cultural awareness, in Arabic or
    English. Requires Fanar-Guard-2 on the key.
- **fanar_poem** — Compose Arabic poetry in the classical tradition with Fanar-Diwan. Requires Fanar-Diwan on the key.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "fanar": {
    "command": "uvx",
    "args": ["fanar-mcp"],
    "env": {
      "FANAR_API_KEY": "",
      "FANAR_BASE_URL": "",
      "FANAR_MCP_OUTPUT_DIR": ""
    }
  }
}
```

**Requires environment variables:** `FANAR_API_KEY`, `FANAR_BASE_URL`, `FANAR_MCP_OUTPUT_DIR` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Fanar MCP server does

The Fanar MCP server exposes Fanar, the Arabic-centric generative AI platform built by QCRI at Hamad Bin Khalifa University, through the Model Context Protocol. It gives compatible clients access to Arabic and English chat, cited Islamic question answering, quotation checking, translation, speech recognition, speech synthesis, image generation, moderation, and Arabic poetry.

The project is aimed initially at Islamic finance workflows. An agent can ask a fiqh question with references, review Qur'an or hadith quotations in a draft, translate classical Arabic, or produce a structured Islamic research report. The Islamic answers are cited responses rather than fatwas, so binding religious questions should be referred to a qualified scholar or Shariah board.

## How it works

The server receives MCP tool calls and forwards them to Fanar's API. `fanar_list_models` should be called first because model access depends on the API key's entitlements. If a requested model is unavailable, the server returns an error with a link for requesting access. Results include the remaining quota reported by Fanar.

Available operations include Arabic, dialectal Arabic, and English chat; Islamic Q&A with madhab and source filters; Qur'an and hadith quotation discovery and verification; and a two-step deep-research workflow using `fanar_deep_research` and `fanar_deep_research_result`. Other tools cover Arabic-English translation, Arabic or English transcription, text-to-speech, culturally aware image generation, safety and cultural-awareness scoring, and classical Arabic poetry.

The Fanar MCP server can run over standard local process communication or streamable HTTP. Audio and generated images are saved to the configured output directory. The server does not log or return the API key.

## Setup and configuration

Python 3.10 or later is required. Install the package with `pip install fanar-mcp`, run it with `uvx fanar-mcp`, or invoke the package directly from GitHub with `uvx --from git+https://github.com/Blade-Labs/fanar-mcp fanar-mcp`.

Set `FANAR_API_KEY` to an API key requested from `https://api.fanar.qa/request`. For Claude Desktop and Claude Code, configure the server command as `uvx fanar-mcp`; Cursor and other MCP clients use the same command and environment variable. A shared deployment can use `fanar-mcp --transport streamable-http --port 8765`.

`FANAR_BASE_URL` defaults to `https://api.fanar.qa/v1` and can override the API endpoint. `FANAR_MCP_OUTPUT_DIR` controls where audio and image files are written and defaults to `~/fanar-mcp-output`. Fanar deactivates keys after 90 days without use.

## Tools and capabilities

- `fanar_chat` supports MSA, dialectal Arabic, and English, with optional step-by-step thinking.
- `fanar_islamic_qa` returns referenced answers and supports madhab and source filters on Sadiq-2.
- `fanar_translate` handles Arabic-English translation, including classical material.
- `fanar_text_to_speech` offers Arabic and English voices, including Qur'an reciters on Sadiq-TTS.
- `fanar_transcribe` converts Arabic or English speech to text and supports long-form transcription.
- `fanar_generate_image`, `fanar_moderate`, and `fanar_poem` provide image generation, safety scoring, and classical Arabic poetry.

Published default limits vary by tool: some are per minute, while research, translation, speech, image, and transcription operations use daily quotas. The server also includes prompts for Islamic finance questions and Islamic quotation verification.

## Limitations and notes

The project is currently alpha. An untagged quotation from `fanar_validate_quotations` was not verified and should be treated as unverified. Islamic Q&A results should show their references and account for differences between schools. API usage is subject to Fanar's terms, which should be reviewed before commercial use. Access to individual models depends on the key, and published quotas may restrict production workloads.

_Full upstream README: https://allmcps.com/mcp/fanar/readme_

