Docs / AI assistants

Connect an AI assistant

Ask Claude, ChatGPT or another AI assistant about your masjid, and let it make the changes you allow: "move the second jumu'ah to 14:30 and tell our followers". Assistants reach Masjidbox through the Model Context Protocol (MCP), at one of three addresses.

The assistants' features are in beta: what they show and the plans that include them can change.

The three servers

AddressForSign-in
https://mcp.masjidbox.com/masjidthe managers of a masjid: read and change ityour Masjidbox dashboard account
https://mcp.masjidbox.com/publicanyone: find a masjid, read its prayer timesnone
https://mcp.masjidbox.com/docsdevelopers: search and read these docsnone

The manager server acts on your own masjid only. No tool takes a masjid id: the masjid is the one of the account that connected the assistant. Every change it makes goes through the same rules, limits and activity log as a change made with an API key.

Who can connect the manager server

A manager with the API permission and write access. The owner of your organization has it and can give it to other managers. Masjidbox staff accounts can't connect assistants.

The owner can turn assistants off for the whole organization, from API → AI assistants in the dashboard. Every connected assistant then stops within about two minutes, and no new one can connect until the owner turns them back on.

Add Masjidbox to your assistant

The only thing to type is the address. The dashboard shows it too, under API → AI assistants, with a copy button.

Claude

  1. In Claude, open Settings → Connectors and select Add custom connector.
  2. Name it Masjidbox and paste https://mcp.masjidbox.com/masjid as the server URL.
  3. Select Connect. A browser window opens the Masjidbox dashboard: sign in if you aren't already, then choose what Claude may do (see The consent screen).

Claude counts custom connectors per plan: the Free plan allows one. Claude on claude.ai, Desktop and mobile registers itself while it connects, so the consent screen shows it as an Unverified app, every access starting at None: check that it says it returns to claude.ai.

ChatGPT

Today, ChatGPT adds a server of your own with developer mode, on the Business, Enterprise and Edu plans, on the web only; Pro can only read. Turn on developer mode in ChatGPT's settings, then add an app with the address https://mcp.masjidbox.com/masjid and OAuth sign-in. On Plus and Free, Masjidbox will be reachable once it is listed in the ChatGPT app directory.

ChatGPT is a known assistant: the consent screen shows it as Known assistant.

Claude Code and other MCP clients

In Claude Code:

sh
claude mcp add --transport http masjidbox https://mcp.masjidbox.com/masjid

Then run /mcp in Claude Code to sign in. Claude Code is a known assistant.

Any other client that speaks MCP over Streamable HTTP with OAuth 2.1 can connect: its consent screen shows it as an Unverified app.

The public and docs servers need no sign-in: add https://mcp.masjidbox.com/public or https://mcp.masjidbox.com/docs the same way and choose no authentication.

When the assistant connects, the dashboard asks you what it may do, on the dashboard's own address, never on the assistant's.

  • Who is asking. The assistant's name, whether Masjidbox knows it (Known assistant) or not (Unverified app: its name is what the app says about itself), and the address it returns to. Continue with an unverified app only if you added it yourself.
  • What it can access. A right per product, as for a key: None, Read or Edit. An assistant can't have more access than you. A known assistant starts on Read where you can read and Edit nowhere; an unverified app starts on None everywhere.
  • Donations. Off by default, and Read only. With Read, the assistant sees your donors' names and emails to answer you, and they are sent to the company that runs it. Card and bank details are never shared. Share donations only if your donors' privacy notice allows it.
  • For how long. 7 or 14 days.

Select Allow access to connect it, or Don't allow to send it back with nothing shared. The owner of your organization gets an email when an assistant is connected, and when one is disconnected.

What you share leaves Masjidbox: what the assistant reads is sent to the company that runs it, under your account terms with that company. Read Using assistants safely before you connect one.

How long a connection lasts

A connection lasts the 7 or 14 days you chose, and never longer: using it doesn't extend it. After that, the assistant asks you to connect again, and the consent screen opens as the first time.

A connection also ends:

  • within about two minutes, when a manager with API write access selects Disconnect on it, under API → AI assistants, or when the owner turns assistants off for the organization;
  • within the hour, when the manager who connected it loses the API permission or leaves the organization.

When the manager who connected it loses access to a product in the dashboard, the assistant loses it too, within the hour. Changes the assistant already made stay. To connect it again, add Masjidbox again in your assistant, or reconnect it from its connector settings.

See what assistants do

API → AI assistants in the dashboard lists every connected assistant: who connected it, what it may do, when it was last used and when it expires.

Under it, the call log shows the last 90 days of calls: when, which assistant and who connected it, the tool, what it asked, and whether it worked (done, refused for lack of access, refused at a limit, failed). The data the assistant received is not kept there.

Every change an assistant makes also shows in your activity log, as "Claude (connected by Fatima)".

The tools

The manager server lists only the tools its connection allows: a tool that changes something needs Edit on its product, and Read is enough for the others.

Manager server (/masjid)

Reads:

ToolWhat it doesAccess it needs
get_masjidyour masjid's organization and profileMasjid profile: read
get_prayer_timestoday's athan, iqamah and jumu'ah times (today only: there is no range of days)Prayer times: read
get_prayer_settingshow the times are computed: athan, iqamah, special timesPrayer times: read
list_contentevents, announcements, news, polls, quizzes, lives, albums or collections, a page at a timeContent: read
get_contentone content item by its idContent: read
list_notificationsOne notifications, and the app's scheduled, recurring and one-time pushesNotifications: read
get_donation_campaignsthe donation account's status and the campaigns, with goals and totalsDonation campaigns: read
get_donation_reportdonation figures over a range of days, by period, campaign, terminal and frequencyDonation campaigns: read
list_donationsdonations with the donor's name and email, filtered by date, campaign, status and amountDonations: read
list_recurring_donationsrecurring donations: active, paused, failed or cancelledDonations: read
get_donor_insightseach donor's total, gifts, first and last gift; new, returning or lapsedDonations: read
list_receiptsfiscal receipts, with each receipt's fileDonations: read
list_imam_questionsquestions visitors asked your imam, with the answer when there is oneContent: read
get_imam_questionone question to the imamContent: read
get_website_and_appthe website's status, its widgets, the app widget and popupsWebsite and app: read
list_screensyour screens, their settings and their playlists' namesScreens: read
get_statisticsaudience figures of Masjidbox One, the website or the appStatistics: read

Changes:

ToolWhat it doesAccess it needs
update_jumuah_timesreplaces your jumu'ah servicesPrayer times: edit
update_prayer_settingschanges the athan, the iqamah or the special times, one per callPrayer times: edit
create_contentasks to publish an event, an announcement or a news item; a person confirms itContent: edit
update_contentasks to change an event, an announcement or a news item; a person confirms itContent: edit
prepare_deleteshows what a delete would remove and where it is shown; deletes nothingContent: edit
delete_contentdeletes the item of a delete previewContent: edit
prepare_answershows an answer to a question to the imam; sends nothingContent: edit
answer_imam_questionasks to email the answer of an answer preview to the asker; a person confirms itContent: edit
prepare_notificationchecks a One notification or a one-time app push and shows it; sends nothingNotifications: edit
send_notificationasks to send the notification of a preview; a person confirms itNotifications: edit
schedule_app_notificationasks to schedule an app push, once or recurring; a person confirms itNotifications: edit
get_send_statuswhere a send stands: waiting for a person, sent, rejected, expired or cancelledNotifications: edit
update_donation_campaigncreates a donation campaign, or changes oneDonation campaigns: edit
update_website_statuscloses or reopens the website, or turns its maintenance page on or offWebsite and app: edit
update_screenschanges a screen's name or playlist, or the settings all screens shareScreens: edit

No tool moves money (no refund, no cancelling a donation), manages people, or takes an email address, a recipient or a link.

Public server (/public)

What the public prayer page of a masjid already shows, with "Data provided by Masjidbox" and the link to the masjid's page.

ToolWhat it does
find_masjidfinds masjids by name and town or near a point, five at most
get_masjida masjid's name, address, timezone, website and page
get_prayer_timesprayer times for today, the next 7 days, this month or next month
get_jumuah_timesthe jumu'ah services of the next Friday

Docs server (/docs)

ToolWhat it does
search_docssearches these docs (guides, every operation of both APIs, error codes) and returns short matches
fetch_docreturns one page of these docs as Markdown

The same pages are on this site in Markdown: add .md to a page's address, or start from /llms.txt.

Confirmations in two steps

Assistants ask for your approval before a tool that changes something. On top of that, what reaches people or can't be undone takes two steps:

  • a notification (prepare_notification, then send_notification);
  • a delete (prepare_delete, then delete_content);
  • an answer to the imam's question (prepare_answer, then answer_imam_question).

The first step shows what will happen and returns a preview handle. The second takes that handle and nothing else. A handle works once, for 10 minutes, and only on the connection that made it. If what the preview showed changed in the meantime, nothing is done and the assistant prepares it again.

A person confirms sends and publications

Some changes reach people or the public. A person confirms them before they happen, whatever the assistant decides:

  • a notification of Masjidbox One, or a push of your app, sent now or scheduled;
  • an answer to a question to the imam;
  • an event, an announcement or a news item, when it's created or changed.

When the assistant can ask you in the chat (Claude Code, ChatGPT), Masjidbox shows you there what will be sent or published, and to whom, and you approve or reject it. Otherwise the assistant gives you a link to the dashboard, where any manager with edit access to that section approves or rejects it within 24 hours. A request nobody approves is dropped, and disconnecting the assistant cancels the ones it left waiting.

When the message contains donor details the assistant read in the last 24 hours, the confirmation warns you. Read it before you approve: it's how you stop a message that would send your donors' details to other people.

An assistant with access to Donations can't read or answer questions to the imam, so text written by visitors never reaches a conversation that holds your donors.

Limits and errors

  • 60 calls a minute per connection. Past it, the assistant is asked to wait a minute.
  • Changes count against your organization's write limit, shared with your API keys: 30 an hour and 300 a day. Reads count against the read limit of the masjid API.
  • The public and docs servers are limited per address, and answer "Too many requests" past it.

When a call is refused, the tool answers with a sentence the assistant can pass on: what happened and what to do. For example: "This assistant was not given access to Donations. Reconnect it with Donations: read to use this tool." or "Your organization has reached its limit of changes through the Masjidbox API: 30 an hour and 300 a day. Try again in 12 minutes." When the connection has ended or expired, the assistant asks you to connect Masjidbox again.