npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@botbell/mcp-server

v0.2.3

Published

BotBell MCP Server - Let AI assistants send push notifications to your phone

Downloads

84

Readme

English | 中文

BotBell MCP Server

让 AI 助手向你的 iPhone / Mac 发送推送通知。

功能

配置完成后,你的 AI 助手(Claude、Cursor 等)可以:

  • 发送通知 — 任务结果、告警、提醒推送到手机
  • 读取回复 — 你在 BotBell App 中回复,AI 读取后继续工作
  • 管理 Bot — 列出、创建 Bot(PAT 模式)

认证模式

BotBell MCP Server 支持两种 Token,根据前缀自动识别:

| Token 类型 | 前缀 | 作用域 | 适用场景 | |------------|------|--------|----------| | Bot Token | bt_ | 单个 Bot | 简单场景,一个 Bot | | 个人访问令牌 (PAT) | pak_ | 所有 Bot | 多 Bot,完整控制 |

Bot Token:在 BotBell App 中创建 Bot 时获取,一个 Token 对应一个 Bot。

PAT:在 BotBell App > 设置 > API Keys 中创建,一个 Token 管理所有 Bot。

快速开始

1. 安装 BotBell App

从 App Store 下载,创建一个 Bot,获取 Token。

2. 安装 MCP Server

npm install -g @botbell/mcp-server

3. 配置 Claude Desktop

编辑 ~/Library/Application Support/Claude/claude_desktop_config.json

方式 A:PAT 模式(推荐)

{
  "mcpServers": {
    "botbell": {
      "command": "botbell-mcp",
      "env": {
        "BOTBELL_TOKEN": "pak_你的PAT"
      }
    }
  }
}

方式 B:Bot Token 模式

{
  "mcpServers": {
    "botbell": {
      "command": "botbell-mcp",
      "env": {
        "BOTBELL_TOKEN": "bt_你的Token"
      }
    }
  }
}

4. 开始使用

对 Claude 说:

  • "给我手机发个通知,说构建完成了"
  • "分析这个日志文件,把摘要推送到我手机"
  • "看看 BotBell 有没有新回复"
  • "列出我的 Bot"(PAT 模式)
  • "创建一个叫「部署告警」的 Bot"(PAT 模式)

工具

PAT 模式(pak_ Token)

botbell_list_bots

列出所有 Bot,用于获取 bot_id

botbell_create_bot

创建新 Bot。

| 参数 | 必填 | 说明 | |------|------|------| | name | 是 | Bot 名称(最多 50 字符) | | description | 否 | Bot 描述 |

botbell_send

通过指定 Bot 发送推送通知。

| 参数 | 必填 | 说明 | |------|------|------| | bot_id | 是 | Bot ID(用 botbell_list_bots 获取) | | message | 是 | 消息内容(最多 4096 字符) | | title | 否 | 通知标题 | | url | 否 | 附带链接(可点击打开) | | image_url | 否 | 附带图片链接 | | actions | 否 | 快捷回复按钮(最多 5 个),见 Actions |

botbell_get_replies

获取用户对指定 Bot 的回复。

| 参数 | 必填 | 说明 | |------|------|------| | bot_id | 是 | 要查询的 Bot ID | | limit | 否 | 最多获取条数(默认 20) |

Bot Token 模式(bt_ Token)

botbell_send

发送推送通知。

| 参数 | 必填 | 说明 | |------|------|------| | message | 是 | 消息内容(最多 4096 字符) | | title | 否 | 通知标题 | | url | 否 | 附带链接(可点击打开) | | image_url | 否 | 附带图片链接 | | actions | 否 | 快捷回复按钮(最多 5 个),见 Actions |

botbell_get_replies

获取用户回复。

| 参数 | 必填 | 说明 | |------|------|------| | limit | 否 | 最多获取条数(默认 20) |

额外 Token

如果需要向多个账号的 Bot 发送通知,可以通过 BOTBELL_EXTRA_TOKENS 环境变量配置额外的 Bot Token。

格式:别名1:bt_token1,别名2:bt_token2

{
  "mcpServers": {
    "botbell": {
      "command": "botbell-mcp",
      "env": {
        "BOTBELL_TOKEN": "pak_你的PAT",
        "BOTBELL_EXTRA_TOKENS": "team-ops:bt_abc123,home:bt_xyz789"
      }
    }
  }
}

配置额外 Token 后:

  • botbell_sendbotbell_get_replies 工具新增 alias 参数
  • 通过 alias 指定使用哪个额外 Token 发送消息
  • PAT 模式下,botbell_list_bots 会同时显示额外 Bot
  • 不传 alias 时默认使用主 Token(BOTBELL_TOKEN

Cursor / 其他 MCP 客户端

在 MCP 配置中添加:

{
  "botbell": {
    "command": "botbell-mcp",
    "env": {
      "BOTBELL_TOKEN": "pak_你的PAT"
    }
  }
}

Actions

为通知添加交互按钮,用户点选即可回复,无需手动输入。

{
  "message": "是否部署 v2.3 到生产环境?",
  "actions": [
    { "key": "approve", "label": "是" },
    { "key": "reject", "label": "否" },
    { "key": "custom", "label": "其他...", "type": "input", "placeholder": "输入原因" }
  ]
}

| 字段 | 必填 | 说明 | |------|------|------| | key | 是 | 用户点击后返回的标识符(最多 64 字符) | | label | 是 | 按钮显示文字(最多 64 字符) | | type | 否 | "button"(默认)或 "input"(弹出输入框) | | placeholder | 否 | 输入框占位文字(最多 128 字符) |

用户点击 action 后,botbell_get_replies 返回的内容会包含 action 标识:

[2026-01-15T10:30:00.000Z] [action:approve] 是

轻量替代

如果 MCP 超出你的需求:

  • SDK —— 直接在代码中调用 REST API:
    • Python:pip install botbellPyPI · GitHub
    • JavaScript:npm install @botbell/sdknpm · GitHub
  • Agent Skill —— 一条命令安装,零依赖,支持 30+ AI 工具:BotBell Agent Skill

链接