AI assistants
Let Claude, Cursor or VS Code read and post in Belfry as a bot.
Belfry has an MCP server, so an AI assistant can use a bot to read and post in the chats that bot was added to. Its address is:
https://api.belfrychat.com/api/mcpThe assistant acts as a bot, not as you. It reaches only the chats that bot was added to, it can’t see your direct messages, and what it posts appears under the bot’s name. Everyone using the same bot shares its chats and its name, so set up one bot for each job. Each tool makes one request to the API, under the same rules as any other.
Before you connect
What the bot can read goes to the AI service. Messages the assistant reads are sent to the company that runs it, under that company’s terms. Only add the bot to chats where that’s acceptable, and leave pastoral or other sensitive chats out.
Messages can try to instruct the assistant. Anyone who can post in a chat the bot reads can write something meant to mislead it. Keep the bot to chats you trust, choose Read-only when it doesn’t need to post, and review what the assistant wants to do before you approve it.
Set up a bot
- A church admin creates a bot under Settings → Developers, and creates an API token on it. The token is shown once.
- Someone who can add people to a chat adds the bot under Chat settings → Developers, choosing whether it can post or only read.
A new bot is in no chats, so the assistant finds nothing until step 2. See API tokens for more about tokens.
Connect your assistant
Use your token where it says ccb_....
Claude Code
claude mcp add --transport http belfry https://api.belfrychat.com/api/mcp \
--header "Authorization: Bearer ccb_..."Run /mcp inside Claude Code to check that it connected.
Cursor
Add this to ~/.cursor/mcp.json, and set BELFRY_TOKEN in your environment:
{
"mcpServers": {
"belfry": {
"url": "https://api.belfrychat.com/api/mcp",
"headers": {
"Authorization": "Bearer ${env:BELFRY_TOKEN}"
}
}
}
}VS Code
Add this to .vscode/mcp.json. VS Code asks for the token the first time and stores it securely:
{
"inputs": [
{
"type": "promptString",
"id": "belfry-token",
"description": "Belfry API token",
"password": true
}
],
"servers": {
"belfry": {
"type": "http",
"url": "https://api.belfrychat.com/api/mcp",
"headers": {
"Authorization": "Bearer ${input:belfry-token}"
}
}
}
}Claude Desktop
Claude Desktop connects through the mcp-remote package, which needs
Node.js. Open Settings → Developer → Edit Config, add this, and restart
the app:
{
"mcpServers": {
"belfry": {
"command": "npx",
"args": [
"mcp-remote",
"https://api.belfrychat.com/api/mcp",
"--header",
"Authorization:${AUTH_HEADER}"
],
"env": {
"AUTH_HEADER": "Bearer ccb_..."
}
}
}
}Other assistants
Any assistant that supports MCP over HTTP and lets you set a request header can connect. Send
Authorization: Bearer <API token>. Login through OAuth isn’t available, so assistants that
only offer that can’t connect yet.
What the assistant can do
| Tool | What it does |
|---|---|
get_bot_account | Says which bot it’s connected as |
list_bot_groups | Lists the bot’s chats, with unread counts |
get_group | Gets one chat, and what the bot can do in it |
list_group_dates | Lists the services in a chat’s Weekly, a chat for each one |
get_repeating_group | Gets a chat’s Weekly, with its General chat and when its next service opens |
list_group_members | Lists who’s in a chat, if it allows that |
list_group_bots | Lists the bots that can read a chat |
list_messages | Reads a chat’s messages, newest first |
list_thread_replies | Reads the replies in a thread |
post_message | Posts a message or a thread reply |
edit_message | Changes one of the bot’s messages |
delete_message | Deletes one of the bot’s messages |
add_reaction | Reacts to a message |
remove_reaction | Removes one of the bot’s reactions |
The tools' names say group and their inputs say channel, both meaning a chat, so a chat’s id goes in channel_id. A serving
team’s chat with a Weekly has a weekly_group_id, and each service in it has that as its
group_id, which is what list_group_dates and get_repeating_group take. Files can’t be uploaded or downloaded through MCP. Use the API for those.
A token can send 300 requests a minute to MCP, and its tool calls also count toward its API limit of 300 a minute. An IP address that sends more than 60 wrong or revoked tokens in a minute is turned away until the minute is up.
Troubleshooting
| You see | Check |
|---|---|
401, or it won’t connect | The token is complete, starts with ccb_, and hasn’t been revoked. |
| No chats or messages | The bot has been added to the chat. |
| Posting is refused | The bot was added with permission to post, and the chat allows it. |
Origin not allowed | The assistant runs in a browser. Use a desktop or command-line assistant. |
Too many requests | The token sent over 300 requests in a minute, or the assistant kept trying a wrong or revoked token. Wait a minute and try again. |
To disconnect an assistant, revoke its token. Access ends at once.