Pushpad MCP
OfficialPushpad MCP
Pushpad MCP 服务器,用于发送 Web 推送通知并通过 Pushpad API 管理 Pushpad 上的资源(对通知、订阅、项目和发送者执行 CRUD 操作)。
该项目是基于 Pushpad API 构建的薄层,使用了官方的 Pushpad OpenAPI 规范 和 FastMCP for TypeScript。
安全
使用 MCP 技术与您的 Pushpad 账户交互可能存在风险。
此 MCP 服务器提供对 Pushpad API 的完全访问权限,包括不可逆和破坏性操作(如更新、删除等)。API 还可能返回敏感数据,如推送订阅密钥(订阅 API)和 VAPID 密钥(发送者 API)。
我们建议在您的代理中使用适当的 权限模式,并使用具有 受限访问权限 的 Pushpad 令牌。
您可以在代理设置中将权限模式更改为 手动,或为此 MCP 服务器提供的不同工具设置 允许 / 拒绝 权限。
我们建议将存储在发送者中的 VAPID 密钥 排除在 AI 上下文之外:您可以使用具有受限访问权限的 Pushpad 令牌,或拒绝提供对发送者 API 访问权限的工具。
请记住 保持访问令牌私密,切勿将其存储在 Git 仓库中。
Related MCP server: mcp-server-digitalocean
安装
步骤 1:将 API 令牌设置为环境变量
首先,您需要 创建一个新的 Pushpad 令牌:打开 Pushpad 仪表板,点击您的账户名称,然后点击 访问令牌 并创建一个新令牌。
然后您需要 将 Pushpad 令牌存储为环境变量。您可以在机器上全局设置(~/.bashrc、~/.zshrc 或其他 shell 配置文件),使用密码管理器(如 1Password CLI),在项目特定的 .env 文件中设置,或直接添加到 MCP 客户端配置文件(如 .mcp.json)。请记得将 .env、.mcp.json 或其他可能包含机密信息的文件添加到 .gitignore 中。
步骤 2:将 MCP 服务器添加到您的 AI 代理
本地 MCP 服务器由您的 MCP 客户端根据 MCP JSON 配置文件中定义的设置直接启动。此文件的确切位置及其应用方式取决于您的 MCP 客户端。
要启用 MCP 服务,请在 mcpServers 块中添加一个条目:
{
"mcpServers": {
"pushpad": {
"type": "stdio",
"command": "npx",
"args": ["-y", "pushpad-mcp"],
"env": {
"PUSHPAD_TOKEN": "${PUSHPAD_TOKEN}"
}
}
}
}上面的示例使用 ${PUSHPAD_TOKEN} 配置了 Pushpad MCP 服务器。请将其替换为您的 Pushpad 令牌,或使用客户端特定的变量替换方法(如果有)将令牌保留在配置文件之外。
步骤 3:使用 Pushpad MCP
最后,您可以使用 MCP 和您的 AI 代理与 Pushpad 进行交互。
例如:
使用 Pushpad 向所有人发送关于 XYZ 的通知。
使用 Pushpad 向用户 123 发送通知。
通知 98765 获得了多少次点击?
项目 456 中通知的默认 TTL 是多少?
MCP 服务器支持完整的 Pushpad API,包括通知 API、订阅 API、项目 API 和发送者 API。
开发
如果您想为该项目做出贡献,请随时提出问题或提交拉取请求。
如果您想修改此包以进行本地开发,可以克隆此仓库并使用 VS Code 配合 开发容器 以更轻松地设置。
然后您可以使用以下命令:
npm run build编译 TypeScript 项目npm run start启动 MCP 服务器npm run inspect启动 MCP 服务器并通过@modelcontextprotocol/inspector检查它
您可以在 .env 文件中设置 PUSHPAD_TOKEN,它会自动被读取。
此仓库还在开发容器中包含了 Claude Code 和一个 .mcp.json 文件,您可以使用它们来尝试此 MCP 服务器的本地版本。这仅当您计划对此包进行修改并希望在提交拉取请求之前试用修改后的版本时才有用。
许可证
此 MCP 服务器根据开源许可证(MIT)发布。
Available Tools
19 toolsnotifications_cancelB
To cancel a scheduled notification,
send a DELETE request to /notifications/NOTIFICATION_ID/cancel.
Inputs: notification_id (required).
notifications_createC
To send a web push notification,
send a POST request to /projects/PROJECT_ID/notifications.
Inputs: body (required), project_id__path (required), ttl, tags, +14 more. Returns: id, uids, send_at, scheduled
notifications_getA
To get a notification and its stats,
send a GET request to /notifications/NOTIFICATION_ID.
Only the notifications created in the last 35 days are available.
Inputs: notification_id (required). Returns: id, ttl, body, tags, +21 more
notifications_listA
To list the latest notifications for your project,
send a GET request to /projects/PROJECT_ID/notifications.
Only the notifications created in the last 35 days are available.
The response body will be an array containing objects each representing a notification.
Inputs: project_id (required), page. Returns: result
projects_createA
To create a new project, send a POST request to /projects setting the
required attributes.
A project will be created using the provided information.
The response body will contain a JSON object with the attributes of your new project.
Inputs: name (required), website (required), sender_id (required), icon_url, +4 more. Returns: id, name, website, icon_url, +6 more
projects_deleteA
To delete a project, send a DELETE request to /projects/PROJECT_ID.
The project will be deleted asynchronously. The actual processing of the request is performed later.
A successful request will receive a 202 status code with no body in response.
Inputs: project_id (required).
projects_getA
To show information about an individual project, send a GET request
to /projects/PROJECT_ID.
Inputs: project_id (required). Returns: id, name, website, icon_url, +6 more
projects_listA
To list all projects in your account, send a GET request to /projects.
The response body will be an array containing objects each representing a project.
Inputs: no named parameters. Returns: result
projects_updateC
To update a project, send a PATCH request to /projects/PROJECT_ID.
The project will be updated using the provided information.
The response body will contain a JSON object with the attributes of your project.
Inputs: project_id (required), name, website, icon_url, +4 more. Returns: id, name, website, icon_url, +6 more
senders_createC
To create a new sender, send a POST request to /senders setting the
required attributes.
A sender will be created using the provided information.
The response body will contain a JSON object with the attributes of your new sender.
Inputs: name (required), vapid_public_key, vapid_private_key. Returns: id, name, created_at, vapid_public_key, +1 more
senders_deleteA
To delete a sender, send a DELETE request to /senders/SENDER_ID.
The sender will be permanently deleted.
You cannot delete a sender if it has associated projects.
A successful request will receive a 204 status code with no body in response.
Inputs: sender_id (required).
senders_getC
To show information about an individual sender, send a GET request
to /senders/SENDER_ID.
Inputs: sender_id (required). Returns: id, name, created_at, vapid_public_key, +1 more
senders_listB
To list all senders in your account, send a GET request to /senders.
The response body will be an array containing objects each representing a sender.
Inputs: no named parameters. Returns: result
senders_updateC
To update a sender, send a PATCH request to /senders/SENDER_ID.
The sender will be updated using the provided information.
The response body will contain a JSON object with the attributes of your sender.
Inputs: sender_id (required), name. Returns: id, name, created_at, vapid_public_key, +1 more
subscriptions_createA
To create a new subscription,
send a POST request to /projects/PROJECT_ID/subscriptions
setting the required attributes.
A subscription will be created using the provided information.
The response body will contain a JSON object with the attributes of your new subscription.
This operation is mainly intended to import subscriptions from another service into Pushpad.
This is not the standard way to collect subscriptions: usually you collect them using the JavaScript SDK.
Inputs: endpoint (required), project_id__path (required), uid, auth, +2 more. Returns: id, uid, auth, tags, +5 more
subscriptions_deleteA
To delete a subscription,
send a DELETE request to /projects/PROJECT_ID/subscriptions/SUBSCRIPTION_ID.
The subscription will be permanently deleted.
A successful request will receive a 204 status code with no body in response.
Inputs: project_id (required), subscription_id (required).
subscriptions_getA
To show information about an individual subscription,
send a GET request to /projects/PROJECT_ID/subscriptions/SUBSCRIPTION_ID.
Inputs: project_id (required), subscription_id (required). Returns: id, uid, auth, tags, +5 more
subscriptions_listA
To list all subscriptions in your project,
send a GET request to /projects/PROJECT_ID/subscriptions.
The response body will be an array containing objects each representing a subscription.
Inputs: project_id (required), page, tags[], uids[], +1 more. Returns: result
subscriptions_updateB
To update a subscription,
send a PATCH request to /projects/PROJECT_ID/subscriptions/SUBSCRIPTION_ID.
The subscription will be updated using the provided information.
The response body will contain a JSON object with the attributes of your subscription.
Inputs: subscription_id (required), project_id__path (required), uid, tags. Returns: id, uid, auth, tags, +5 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 19 tools
Each tool targets a distinct resource-action pair (notifications, subscriptions, projects, senders) with clear CRUD operations. There is no overlap or ambiguity between the tools.
All tool names follow a consistent plural_noun_verb pattern (e.g., notifications_get, subscriptions_create, projects_delete), making the API surface predictable and easily navigable.
With 19 tools covering four distinct resources (notifications, subscriptions, projects, senders), the count is appropriate for a comprehensive push notification service. Each tool has a clear purpose, and the set is neither bloated nor thin.
All four resources have full CRUD operations (create, get, update, delete, list) with the exception of notifications which also includes cancel. No obvious gaps exist for managing a push notification service.
Maintenance
Related MCP Connectors
Send push notifications to iPhone, iPad, Android, Android Auto, and web browsers.
Send yourself a push notification from an AI assistant. No account, one environment variable.
Send, search, and manage notifications, accounts, and push preferences
WhatsApp, Telegram, MAX & SMS for AI agents: send messages, files and bulk mailings via ChatPush
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to manage OneSignal push notifications, email, SMS, and user management through natural language. Supports multi-channel messaging, segmentation, templates, analytics, and iOS Live Activities with 50+ tools for complete OneSignal API coverage.1-
- AlicenseAqualityDmaintenanceEnables managing DigitalOcean cloud resources, including Droplets, databases, domains, and more, via natural language.121MIT
- AlicenseAqualityCmaintenanceSend and schedule push notifications across web and mobile app subscribers, build segments and audience groups, and read campaign analytics from your PushEngage account in plain language. Browser-based login, so no API keys go into your client config.3298 npm8MIT
- AlicenseNot gradedqualityCmaintenanceEnables an AI assistant to send push notifications to a user's phone through Webhooky endpoints, including choosing sounds and distinguishing accepted-but-undelivered notifications from successful delivery. It also exposes the available notification sounds grouped by meaning.150 npmMIT