Skip to content

Connect the Quran Gallery suite MCP server

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.

On this page

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

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. 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).

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

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.
  • ChatGPT: a custom MCP server, as in ChatGPT, with OAuth as the authentication instead of none.
  • VS Code: an entry in mcp.json, as in VS Code:
{
	"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

VersionHow it starts
2025-11-25initialize; any version the server does not know is answered with this one
2025-06-18initialize
2026-07-28No 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, 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.

Questions

What is the address of the suite MCP server?

https://mcp.qurangallery.com/mcp. It speaks Streamable HTTP; there is no stdio package to install.

Why does my AI app ask me to sign in?

Every request to the suite server needs a Quran Gallery sign-in. The first time your app connects, it opens accounts.qurangallery.com, you sign in, and you choose Allow.

How do I add the suite server to Claude Code?

Run claude mcp add --transport http quran-gallery-suite https://mcp.qurangallery.com/mcp, then start claude, run /mcp, pick quran-gallery-suite and sign in in the browser.

How long does a connection last?

Until you disconnect it, or until the app goes 90 days without using it. Your app holds an access token that lasts an hour and renews it on its own.

How do I disconnect an AI app?

Open accounts.qurangallery.com, go to Settings, Connected AI apps, and choose Disconnect. The app stops working within the hour, and the next connection asks you again.

What is the rate limit?

60 tool calls a minute per account, and 300 requests a minute per IP address. Past either, the server answers HTTP 429 with a Retry-After header.

Which MCP protocol versions does the suite server support?

2025-11-25 and 2025-06-18 through initialize, and 2026-07-28 without a session, through server/discover.

Edit this page on GitHub