Integrations
Administrators can connect an assistant that supports MCP (Model Context Protocol), such as Codex or Claude, to read and manage parts of TroopBook. Typical uses are drafting a batch of events from a campout schedule, moving pages from an old website, or checking a roster against another list.
An API key never gives more access than the administrator who created it. If that person is demoted or removed, the key stops working for anything their role no longer allows.
Create an API key
- Open Settings → Organization → Tokens and choose Create Token.
- Select API Key, give it a label you will recognize, and choose when it expires (30 days, 90 days, 1 year, or never).
- Under Members and Money, choose how much access to give. Both default to No access.
- Copy the key and store it somewhere safe. You will not be able to see it again.
Revoke or extend a key from the same page whenever you like.
Connect your assistant
Add TroopBook as an MCP server using the address https://troopbook.com/mcp and your API key. The key tells TroopBook which organization you mean, so every organization uses the same address. For Codex:
export TROOPBOOK_API_KEY="<copied-api-key>"
codex mcp add troopbook \
--url "https://troopbook.com/mcp" \
--bearer-token-env-var TROOPBOOK_API_KEY
Replace <copied-api-key> with the key you copied. Other MCP clients ask for the same two things: the URL and the key as a bearer token.
What an assistant can do
| Area | Access | What it can do |
|---|---|---|
| Events and locations | Included on new keys | Find events and saved locations, create events, update them, and upload images for your website |
| Website pages and menus | Included on new keys | Read, create and update pages and menus |
| Members | Optional: Read only, or Read and update custom fields | Look up members, families, groups and contact details, and read or fill in custom member field answers |
| Event registrations | Needs member read access | Read an event's registration list, including the email entered at registration |
| Money | Optional, read only | Read collections, member account balances and an overview of what is owed |
Some safeguards apply no matter what a key allows:
- New events always start as drafts. To cancel an event, update its status. Events cannot be deleted this way.
- Event updates must be based on the latest version, so an assistant cannot overwrite a change you made in the meantime.
- Money access is read only and is never included on a new key unless you choose it.
- Assistants cannot change member names, contact details or how a custom field is set up.
Work with member data
Member access is useful for comparing your roster with another source or filling in a profile question for many people at once.
- Look people up: Search by name, filter the roster by member type, status or group, or fetch specific profiles. Results can include current groups, adult email and phone numbers, and parent and child links.
- Fill in custom fields in bulk: An assistant can update up to 100 members and 500 answers at a time. It first previews the changes, and nothing is saved until the preview is applied.
- Blanks are filled by default: Replacing or clearing an existing answer has to be explicit. If a family changed an answer after the assistant read it, the whole batch is rejected so nothing is overwritten.
- Add missing choices first: If an answer such as a school name is not on the field's list of choices, add it in Settings → Organization → Member fields, then apply the update.
Birth dates, home addresses, notes about relationships, login accounts and raw import data are never included. Reads of contact details and family links are recorded in an audit log, without the names or contact values themselves.
Member read access covers profiles, contact details and family links, so give it only to keys that need it. You can review every key's access from Settings → Organization → Tokens.
AI assistant in TroopBook
TroopBook also has a built-in AI assistant that uses many of the same tools. It can look up members and groups, find communications and website pages, and draft a message or page for you to review. It only creates drafts: it never sends, schedules or publishes anything on its own.
The assistant is in early testing and is turned off by default. To try it with your organization, email [email protected]. Where it is enabled, the communication editor can also suggest subject lines or rewrite text for a different length or audience. Review dates, details and recipients before you accept a suggestion.