# Qaf

> Qaf is a free MCP server for religion. MCP server giving AI apps search and cited reading of classical Arabic Islamic books. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** API, Web
- **Website:** https://developers.qaf.ai/mcp
- **Repository:** https://github.com/qaf-ai/plugins
- **MCP Registry name:** ai.qaf/qaf
- **Categories:** [religion](https://ai-powered.com/categories/religion), [books and literature](https://ai-powered.com/categories/books-and-literature)
- **Listing updated:** 2026-11-29

## About

The server lets an AI assistant search a library of classical Islamic texts in Arabic and read the passages around each match. Results come back with links to the passage on Qaf and to the printed page it came from, so answers can be traced to their source.

Search works by meaning and keywords and can be narrowed by author, book, genre or death year. A companion lookup tool resolves author and book names into the identifiers the filters use, and a fetch tool returns a passage with up to five neighbouring passages on each side.

It suits students, researchers and readers of Arabic religious scholarship who want an assistant to quote source text rather than paraphrase from memory. Any Qaf account can connect by signing in, with no API key required. All three tools are read-only.

## Features

- **Meaning and keyword search:** Finds passages by both semantic similarity and exact keywords across the library.
- **Filtered by author or book:** Narrows results by author, book, genre or author death year.
- **Passage context reading:** Returns a chosen passage with up to five neighbouring passages on each side.
- **Catalog name resolution:** Maps author or book names to the IDs used by search filters.
- **Page-level citations:** Each passage links to its place on Qaf and to its printed page.
- **Account sign-in access:** Connects with a Qaf account login instead of an API key, and can be disconnected at any time.

## Good for

- Quoting classical Arabic source text with page references in an AI chat
- Finding what a specific scholar wrote on a topic within a given book
- Locating jurisprudence rulings in Hanbali texts and reading the surrounding passages
- Checking the original wording of a hadith commentary passage

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http qaf https://api.qaf.ai/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "qaf": {
      "type": "http",
      "url": "https://api.qaf.ai/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://api.qaf.ai/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "qaf": {
      "url": "https://api.qaf.ai/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "qaf": {
      "type": "http",
      "url": "https://api.qaf.ai/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://api.qaf.ai/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add qaf --url https://api.qaf.ai/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.qaf]
url = "https://api.qaf.ai/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "qaf": {
      "httpUrl": "https://api.qaf.ai/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http qaf https://api.qaf.ai/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "qaf": {
      "serverUrl": "https://api.qaf.ai/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "qaf": {
      "url": "https://api.qaf.ai/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "qaf": {
      "type": "streamableHttp",
      "url": "https://api.qaf.ai/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "qaf": {
      "url": "https://api.qaf.ai/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "qaf": {
      "url": "https://api.qaf.ai/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "qaf": {
      "url": "https://api.qaf.ai/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "qaf": {
      "url": "https://api.qaf.ai/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://api.qaf.ai/mcp
```

Enter a Name (for example "Qaf"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin. When we checked, this server asked for OAuth sign-in. If its docs give you an OAuth client ID and secret, enter them in the form's OAuth Client ID and Client Secret fields.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "qaf": {
      "type": "http",
      "url": "https://api.qaf.ai/mcp"
    }
  }
}
```

## Tools

Going by the tool names, all 3 tools only read data. From the server's own tool labels and tool names; not verified by us.

- `search` (name suggests: reads): Searches passages by meaning and keywords, optionally filtered by author, book, genre or death year.
- `fetch` (name suggests: reads): Reads a passage by ID, with up to five neighbouring passages on each side.
- `lookup_catalog` (name suggests: reads): Resolves an author or book name to the IDs that search filters take.

## FAQ

### Do I need an API key to connect?

No. You paste the server URL into an app that supports remote MCP servers and sign in with your Qaf account.

### Can the tools change anything in my library?

No. All three tools only read the library.

### How many searches are included?

Each account gets 2,500 searches a week on every plan, including Free, as an introductory offer. Fetch and lookup still work after searches run out.

### What are the request limits?

An account can send 60 requests a minute, counting every message the app sends, and a tool call that runs longer than 30 seconds stops with an error.

### Is Qaf free?

Yes. Qaf is free to use.

### How do I add Qaf to Claude Code?

Run this command in your terminal: claude mcp add --transport http qaf https://api.qaf.ai/mcp

### What are the best alternatives to Qaf?

The closest alternatives to Qaf are Quran Gallery MCP, All Islam Directory, Criterion, Mishkat (مِشكاة) Arabic Islamic lectures and Sacred Texts MCP.

## Where this comes from

- Description: written from the project's website and its MCP Registry entry.
- Status: checked automatically by AIPoweredBot on 28 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Quran Gallery MCP](https://ai-powered.com/mcp/quran-gallery-mcp): Quran Gallery MCP is a free MCP server for religion.
- [All Islam Directory](https://ai-powered.com/mcp/all-islam-directory): All Islam Directory is an MCP server for religion.
- [Criterion](https://ai-powered.com/mcp/criterion): Criterion is a free MCP server for religion.
- [Mishkat (مِشكاة) Arabic Islamic lectures](https://ai-powered.com/mcp/mishkat-arabic-islamic-lectures): Mishkat (مِشكاة) Arabic Islamic lectures is a free MCP server for religion.
- [Sacred Texts MCP](https://ai-powered.com/mcp/sacred-texts-mcp): Sacred Texts MCP is a paid MCP server for religion.
- [Bayan — Islamic encyclopedia (Arabic)](https://ai-powered.com/mcp/bayan-islamic-encyclopedia-arabic): Bayan — Islamic encyclopedia (Arabic) is an MCP server for religion.
- [Global Quran](https://ai-powered.com/mcp/global-quran): Global Quran is a free MCP server for religion.
- [Madeenan Quran and Hadith Sources](https://ai-powered.com/mcp/madeenan-quran-and-hadith-sources): Madeenan Quran and Hadith Sources is a freemium MCP server for religion.

---
Source: https://ai-powered.com/mcp/qaf
