# MCP for developers: Connect the Quran Gallery suite MCP server

Source: https://qurangallery.com/docs/mcp/suite-server-connect

> Add mcp.qurangallery.com/mcp to Claude, ChatGPT, VS Code or any MCP client, sign in with your Quran Gallery account, and approve it once.

**One URL, one sign-in.** Add this server to your AI app:

```text
https://mcp.qurangallery.com/mcp
```

The first time your app connects, it opens a Quran Gallery page in your browser. Sign in (or create a free account), then choose **Allow**. Your app comes back connected, with the [20 suite tools](https://qurangallery.com/docs/mcp/suite-server-tools). This is the suite server; for classical Arabic books without an account, the library server at `https://qurangallery.com/mcp/shamela` is the one to add ([which one to use](https://qurangallery.com/docs/mcp/two-servers-which-to-use)).

## What you approve

The approval page names your AI app and the server it connects to, and lists what the app will be able to do:

- confirm who you are on your account;
- use Quran Gallery's tools on your behalf;
- stay connected until you disconnect it.

The tools only read: they return Quran text, times, recordings and pages. None of them changes anything on your account.

## Claude Code

```bash
claude mcp add --transport http quran-gallery-suite https://mcp.qurangallery.com/mcp
```

Then start `claude`, run `/mcp`, pick `quran-gallery-suite` and follow the sign-in in your browser. Add `--scope user` to the command to have the server in every project.

## Claude, ChatGPT and VS Code

Add the server the same way as the library server, with the suite URL above, and sign in when the app asks:

- **Claude** (claude.ai and Desktop): a custom connector, as in [Claude](https://qurangallery.com/docs/mcp/claude).
- **ChatGPT**: a custom MCP server, as in [ChatGPT](https://qurangallery.com/docs/mcp/chatgpt), with OAuth as the authentication instead of none.
- **VS Code**: an entry in `mcp.json`, as in [VS Code](https://qurangallery.com/docs/mcp/vscode):

```json
{
	"servers": {
		"quran-gallery-suite": { "type": "http", "url": "https://mcp.qurangallery.com/mcp" }
	}
}
```

## Any other MCP client

Your client can connect if it supports:

- **Streamable HTTP**: `POST` to the URL above. A `GET` answers `405`, because the server sends no stream of its own.
- **MCP authorization (OAuth 2.1)**: the client reads the sign-in details from the `WWW-Authenticate` header of the first `401`, which points to `https://mcp.qurangallery.com/.well-known/oauth-protected-resource`.
- **Dynamic client registration** at accounts.qurangallery.com, with **PKCE** (`S256`). The client asks for the `qg:mcp` scope and may add `openid`, `profile` and `offline_access`; the resource is `https://mcp.qurangallery.com/mcp`.
- **A redirect address** on `https` (not on qurangallery.com or its subdomains) or on `http://localhost` (also `127.0.0.1` and `[::1]`), with no user name, password or `#` fragment. A redirect to a custom app link (a scheme such as `myapp://`) is not accepted yet.

## Protocol versions

| Version      | How it starts                                                                                     |
| ------------ | ------------------------------------------------------------------------------------------------- |
| `2025-11-25` | `initialize`; any version the server does not know is answered with this one                      |
| `2025-06-18` | `initialize`                                                                                      |
| `2026-07-28` | No session: `server/discover`, with the `MCP-Protocol-Version` header and `_meta` on each request |

Besides tools, the server lists four interactive views (`ui://qurangallery/...`) for apps that show MCP Apps: a Quran passage, prayer times, an audio player and inheritance shares. Every tool also answers in Markdown, so apps without views lose nothing.

## Limits and errors

- **60 tool calls a minute per account**, and **300 requests a minute per IP address**. Past either: HTTP `429`, JSON-RPC code `-32004`, and a `Retry-After` header in seconds.
- **`401`, code `-32001`**: no sign-in, or it has expired. Your app signs in again.
- **`403`, code `-32003`**: the sign-in lacks the `qg:mcp` scope. Connect again and approve it.
- **`503`, code `-32002`**: the sign-in could not be checked for a moment. Try again shortly.
- **Code `-32022`**: a protocol version the server does not support.

A tool that gets a wrong argument (a surah outside 1 to 114, a reciter that does not exist) answers with a sentence saying what to fix, so the assistant can correct its call.

## Disconnect

Open [accounts.qurangallery.com](https://accounts.qurangallery.com/settings), go to **Settings → Connected AI apps** and choose **Disconnect**. The app's access stops within the hour, and the next connection asks you to approve it again.
