MCP for developers
Connect your own AI assistant to the classical Islamic library and get answers that cite a real printed edition, volume and page.
7 pages
What the MCP server does
Connect your own AI assistant to a classical Islamic library of 8,594 works and get passages that carry a named printed edition, volume and page.
Getting started
Create an API key, add the Quran Gallery server to your MCP client, and run your first grounded search.
The search_library tool
Every parameter search_library takes, every field it returns, and how its two-pass search behaves.
The full tool surface
All 37 tools grouped by what they are for — searching, reading, citations, isnād and narrators, Quran and tafsir, and catalogue lookup.
Choosing a scope
search_library names one of twelve shelves. What each contains, what they leave out, and why scoping matters even where it is optional.
Reading a result
Two fields decide what a result actually proves: whether the words were in the main text or a footnote, and whether the exact phrase was found.
Limits and errors
Rate limits, every error you can get back, and which ones are worth retrying.