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
| Address | For | Sign-in |
|---|---|---|
https://mcp.masjidbox.com/masjid | the managers of a masjid: read and change it | your Masjidbox dashboard account |
https://mcp.masjidbox.com/public | anyone: find a masjid, read its prayer times | none |
https://mcp.masjidbox.com/docs | developers: search and read these docs | none |
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
- In Claude, open Settings → Connectors and select Add custom connector.
- Name it
Masjidboxand pastehttps://mcp.masjidbox.com/masjidas the server URL. - 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:
claude mcp add --transport http masjidbox https://mcp.masjidbox.com/masjidThen 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.
The consent screen
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:
| Tool | What it does | Access it needs |
|---|---|---|
get_masjid | your masjid's organization and profile | Masjid profile: read |
get_prayer_times | today's athan, iqamah and jumu'ah times (today only: there is no range of days) | Prayer times: read |
get_prayer_settings | how the times are computed: athan, iqamah, special times | Prayer times: read |
list_content | events, announcements, news, polls, quizzes, lives, albums or collections, a page at a time | Content: read |
get_content | one content item by its id | Content: read |
list_notifications | One notifications, and the app's scheduled, recurring and one-time pushes | Notifications: read |
get_donation_campaigns | the donation account's status and the campaigns, with goals and totals | Donation campaigns: read |
get_donation_report | donation figures over a range of days, by period, campaign, terminal and frequency | Donation campaigns: read |
list_donations | donations with the donor's name and email, filtered by date, campaign, status and amount | Donations: read |
list_recurring_donations | recurring donations: active, paused, failed or cancelled | Donations: read |
get_donor_insights | each donor's total, gifts, first and last gift; new, returning or lapsed | Donations: read |
list_receipts | fiscal receipts, with each receipt's file | Donations: read |
list_imam_questions | questions visitors asked your imam, with the answer when there is one | Content: read |
get_imam_question | one question to the imam | Content: read |
get_website_and_app | the website's status, its widgets, the app widget and popups | Website and app: read |
list_screens | your screens, their settings and their playlists' names | Screens: read |
get_statistics | audience figures of Masjidbox One, the website or the app | Statistics: read |
Changes:
| Tool | What it does | Access it needs |
|---|---|---|
update_jumuah_times | replaces your jumu'ah services | Prayer times: edit |
update_prayer_settings | changes the athan, the iqamah or the special times, one per call | Prayer times: edit |
create_content | asks to publish an event, an announcement or a news item; a person confirms it | Content: edit |
update_content | asks to change an event, an announcement or a news item; a person confirms it | Content: edit |
prepare_delete | shows what a delete would remove and where it is shown; deletes nothing | Content: edit |
delete_content | deletes the item of a delete preview | Content: edit |
prepare_answer | shows an answer to a question to the imam; sends nothing | Content: edit |
answer_imam_question | asks to email the answer of an answer preview to the asker; a person confirms it | Content: edit |
prepare_notification | checks a One notification or a one-time app push and shows it; sends nothing | Notifications: edit |
send_notification | asks to send the notification of a preview; a person confirms it | Notifications: edit |
schedule_app_notification | asks to schedule an app push, once or recurring; a person confirms it | Notifications: edit |
get_send_status | where a send stands: waiting for a person, sent, rejected, expired or cancelled | Notifications: edit |
update_donation_campaign | creates a donation campaign, or changes one | Donation campaigns: edit |
update_website_status | closes or reopens the website, or turns its maintenance page on or off | Website and app: edit |
update_screens | changes a screen's name or playlist, or the settings all screens share | Screens: 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.
| Tool | What it does |
|---|---|
find_masjid | finds masjids by name and town or near a point, five at most |
get_masjid | a masjid's name, address, timezone, website and page |
get_prayer_times | prayer times for today, the next 7 days, this month or next month |
get_jumuah_times | the jumu'ah services of the next Friday |
Docs server (/docs)
| Tool | What it does |
|---|---|
search_docs | searches these docs (guides, every operation of both APIs, error codes) and returns short matches |
fetch_doc | returns 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, thensend_notification); - a delete (
prepare_delete, thendelete_content); - an answer to the imam's question (
prepare_answer, thenanswer_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.