# Bayān > Bayān is a library of the sources of Islam: the Quran, the hadith collections and the classical books of the four Sunni schools, in Arabic with English and French translations. Its shared library is open to AI assistants through a read-only MCP server, with no account. ## Open library - [MCP server](https://bayanlibrary.com/mcp): Streamable HTTP, stateless, no sign-in, 60 requests a minute per address. An optional personal key (`Authorization: Bearer bayan_lib_…`, created in Settings, Library keys) gives an account 120 requests a minute per key and 10,000 calls a week. Tools: `search`, `get_passage`, `get_verse`, `lookup_work`, `list_works`. - [Developers](https://bayanlibrary.com/en/developers): how to connect an assistant, the tools and the JSON routes, with examples. - [Agent Skill](https://bayanlibrary.com/skill.md): how to search the library and cite it. Save it as `bayan-library/SKILL.md`. - [Full reference](https://bayanlibrary.com/llms-full.txt): parameters, bounds, response fields and citation rules. ## Tools - `search(query, kinds, works, language, limit, authors, death_year_from, death_year_to, genres, schools)`: passages, hadith and works that match the words, each hit with its `ref`, snippet, citation and `url`. `query` is 2 to 200 characters, `kinds` any of `passage`, `hadith`, `work`, `language` is `ar`, `en` or `fr`, `limit` is 1 to 10. The filters restrict the works read: `works` up to 20 slugs, `authors` up to 20 author keys, the author's death year in hijri from `death_year_from` to `death_year_to` (inclusive), `genres` (the library's disciplines) and `schools` (`hanafi`, `maliki`, `shafii`, `hanbali`); AND across filters, OR within one. An unknown value is refused by name. - `get_passage(ref, context, language)`: the Arabic text of one passage, its stored translation, citation, edition attribution and `url`, with `context` (0 to 3) neighbouring passages on each side. - `get_verse(sura, aya, end_aya, language)`: one verse or a run of at most 10 verses, with the translation and its translator, and references to the tafsir passages that comment on them. - `lookup_work(query, language)`: up to 5 works of the catalogue by title, author or slug; a slug restricts a search to that work. - `list_works(language, works, authors, death_year_from, death_year_to, genres, schools)`: the works the filters admit, each with its slug, `author_key`, the author's death year in hijri, genre and school, and the authors, genres and schools they cover: the values the filters of `search` take. ## JSON routes - `GET https://bayanlibrary.com/api/v1/open/search`: passages, hadith and works. - `GET https://bayanlibrary.com/api/v1/open/passages/{ref}`: one passage with its translation and neighbours. - `GET https://bayanlibrary.com/api/v1/open/quran/{sura}/{aya}`: verses with their translation and tafsir references. - `GET https://bayanlibrary.com/api/v1/open/works`: works of the catalogue by title, author or slug. - `GET https://bayanlibrary.com/api/v1/open/catalogue`: the works a filter admits, with their authors, genres and schools. ## How to cite Name the work, the author, the volume and page or the hadith number, and give the passage `url`. Quote verses and hadith exactly as returned. A translation is the library's own machine rendering unless a translator is credited. Bayān is a library and gives no ruling. ## Scope The open library serves the shared library: classical works in Arabic with their stored translations, and the Quran. It does not serve fatwas, narrator records, private bases or anything belonging to an account, and it states no hadith grade. ## About - [Methodology](https://bayanlibrary.com/en/methodology): scope, sourcing and how the schools are presented. - [Support](https://bayanlibrary.com/en/support): contact the team.