Fanar logo

Fanar

Connects MCP clients to Fanar for Arabic AI, cited Islamic Q&A, quotation checks, translation, speech, images, and poetry.

Install Fanar

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

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "fanar": {
      "command": "uvx",
      "args": [
        "fanar-mcp"
      ],
      "env": {
        "FANAR_API_KEY": "YOUR_VALUE_HERE",
        "FANAR_BASE_URL": "YOUR_VALUE_HERE",
        "FANAR_MCP_OUTPUT_DIR": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 12 tools correctly ().

Overview

The Fanar MCP server connects MCP clients to Fanar's Arabic-focused AI platform through chat, Islamic Q&A, quotation validation, translation, speech, image, moderation, and poetry tools. It runs locally with Python and communicates with Fanar's API using an API key, with optional streamable HTTP for shared deployments. Reach for it when an agent needs Arabic or English language workflows, cited Islamic research, Qur'an and hadith checks, or Arabic audio processing. The project is alpha software and is an independent open-source project, not affiliated with QCRI or HBKU.

Use cases

  • Ask cited Islamic finance and fiqh questions
  • Verify Qur'an and hadith quotations before publication
  • Translate classical Arabic texts into English
  • Transcribe or synthesize Arabic speech
  • Generate Islamic research reports with sources

Key features

  • Arabic and English chat
  • Cited Islamic Q&A with filters
  • Qur'an and hadith quotation validation
  • Arabic-English translation
  • Speech transcription and synthesis
  • Image generation and content moderation

Tools12

What Fanar lets your agent do. Expand a tool for its parameters.

Verified live~1.7k tokens of context

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.

10/10 checks healthy over the last 39d

What it can do

From the 12 tools this server returned when we ran it.

Handles credentials · 1Makes network requests · 2Read-only tools · 12
Network at startup2 connections
Files written at startup10

Observed 2026-11-09 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · fanar-mcp (PyPI)

Adoption & maintenance

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

Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed12Callable tools this server registers over MCP.

How Fanar works

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.

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 Fanar

Fanar is an MCP server that connects MCP clients to Fanar's Arabic-focused AI platform. Its main tools provide Arabic and English chat, cited Islamic Q&A, Qur'an and hadith quotation checks, Arabic-English translation, speech transcription and synthesis, image generation, moderation, and classical Arabic poetry.

Install it with `pip install fanar-mcp` or run it without installation using `uvx fanar-mcp`. The server requires Python 3.10 or later and the `FANAR_API_KEY` environment variable.

Yes, Fanar works with Cursor using the `uvx fanar-mcp` command and the `FANAR_API_KEY` environment variable. The same command can be used with other MCP clients.

Any quotation it leaves untagged was not verified and should be treated as unverified.

Run `fanar-mcp --transport streamable-http --port 8765` to expose Fanar over streamable HTTP. Configure clients to connect to that shared endpoint, and provide the required Fanar API key in the server environment.

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 PreviewFanar AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/fanar?style=directory)](https://allmcps.com/mcp/fanar)
HTML Embed
<a href="https://allmcps.com/mcp/fanar"><img src="https://allmcps.com/api/badge/fanar?style=directory" alt="Fanar on AllMCPs" /></a>