MCP Server
Overview
The BotBell MCP Server lets AI assistants send push notifications to your iPhone and Mac, and read your replies. Once configured, your AI can:
- Send you notifications — task results, alerts, reminders, questions
- Read your replies — you respond in the BotBell app, AI reads it and continues
- Manage your bots — list and create bots (PAT mode only)
Prerequisites
- Install the BotBell app on your iPhone or Mac
- Create a bot and get your token (Bot Token or PAT)
- Node.js 18+ installed on your machine
Authentication Modes
The MCP server auto-detects the token type by its prefix:
| Token Type | Prefix | Scope | Best For |
|---|---|---|---|
| Bot Token | bt_ | Single bot only | Simple setup, one bot |
| PAT | pak_ | All your bots | Multi-bot, full control |
Installation
npm install -g @botbell/mcp-serverConfiguration
Add the BotBell MCP server to your AI tool's configuration:
Claude Desktop
Edit the config file:
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"botbell": {
"command": "botbell-mcp",
"env": {
"BOTBELL_TOKEN": "pak_your_pat_here"
}
}
}
}{
"mcpServers": {
"botbell": {
"command": "botbell-mcp",
"env": {
"BOTBELL_TOKEN": "bt_your_token_here"
}
}
}
}Claude Code (CLI)
Run a single command to add the server:
claude mcp add botbell -- env BOTBELL_TOKEN=pak_your_pat_here botbell-mcp追加トークン(上級)
複数アカウントの Bot に通知を送る場合、BOTBELL_EXTRA_TOKENS 環境変数で追加の Bot Token を設定できます:
形式:alias1:bt_token1,alias2:bt_token2
{
"mcpServers": {
"botbell": {
"command": "botbell-mcp",
"env": {
"BOTBELL_TOKEN": "pak_your_pat_here",
"BOTBELL_EXTRA_TOKENS": "team-ops:bt_abc123,home:bt_xyz789"
}
}
}
}追加トークン設定後、botbell_send と botbell_get_replies に alias パラメータが追加され、特定のトークンでメッセージを送信できます。
Cursor / Other MCP Clients
Add to your MCP configuration:
{
"botbell": {
"command": "botbell-mcp",
"env": {
"BOTBELL_TOKEN": "pak_your_pat_here"
}
}
}Available Tools
PAT Mode Tools
When using a PAT (pak_ prefix), all 4 tools are available:
botbell_list_bots
List all your bots. Use this to find the bot_id before sending.
botbell_create_bot
Create a new bot.
| フィールド | 必須 | 説明 |
|---|---|---|
name | はい | Bot name (max 50 chars) |
description | いいえ | Bot description (optional) |
botbell_send
Send a push notification via a specific bot.
| フィールド | 必須 | 説明 |
|---|---|---|
bot_id | はい | Bot ID (use botbell_list_bots to find it) |
message | はい | Message content (max 4096 chars) |
title | いいえ | Notification title |
url | いいえ | URL to attach (tappable) |
image_url | いいえ | Image URL to attach |
actions | いいえ | Quick reply buttons (max 5). Supports button and input types. |
botbell_get_replies
Check for user replies. Messages are consumed on fetch.
| フィールド | 必須 | 説明 |
|---|---|---|
bot_id | はい | Bot ID to check replies for |
limit | いいえ | Max replies to fetch (default 20, max 100) |
Bot Token Mode Tools
When using a Bot Token (bt_ prefix), 2 tools are available: botbell_send and botbell_get_replies.
No bot_id parameter needed — the token is tied to a single bot.
Interactive Actions
AI agents can include quick reply buttons with messages. This enables human-in-the-loop workflows where the user picks an option or types a custom response — all from a push notification.
{
"bot_id": "bot_abc123",
"message": "3 files will be deleted. Proceed?",
"title": "Confirmation Required",
"actions": [
{"key": "confirm", "label": "Yes, delete"},
{"key": "cancel", "label": "Cancel"},
{"key": "custom", "label": "Other...", "type": "input", "placeholder": "e.g. delete only the first two"}
]
}The interaction flow:
- AI sends a message with action buttons via botbell_send
- User receives a push notification with the buttons
- User taps a button (or types a custom response for "input" type)
- AI reads the reply via botbell_get_replies, including the action key
Tip: Use type "input" for an "Other..." option. This lets the user type a free-text response when none of the predefined choices fit — reducing back-and-forth round trips.
Usage Examples
Just tell your AI assistant what you need in natural language:
Send a Notification
"Send a notification to my phone saying the build succeeded"Ask with Action Buttons
"Ask me whether to deploy v2.3.0 to production, with approve/reject buttons and an option to type a custom response"Check for Replies
"Check if I have any replies in BotBell"Manage Bots (PAT only)
"List my bots" / "Create a new bot called Deploy Alerts"Supported Platforms
- Claude Desktop
- Claude Code (CLI)
- Cursor
- Windsurf
- Any MCP-compatible AI tool