Skip to main content
Glama
Novu MCP Server

Novu MCP Server

Official
by novuhq

Novu MCP 实施

这是 Novu 的模型上下文协议 (MCP) 服务器的 TypeScript 实现,允许 AI 代理与 Novu 的通知基础设施进行交互。

设置

  1. 安装依赖项:

npm install
  1. 构建项目:

npm run build
  1. 启动 MCP 服务器:

npm start

对于开发,您可以使用:

npm run dev

Related MCP server: New Relic MCP Server

配置

MCP 服务器需要在smithery.yml中配置 Novu API 密钥。您可以从 Novu 控制面板获取 API 密钥。

可用操作

MCP 服务器支持以下 Novu 操作:

活动

  • trigger_event :向特定订阅者发送通知

  • broadcast_event :向所有订阅者发送通知

  • cancel_triggered_event :取消触发的通知

通知

  • get_notifications :分页列出通知

  • get_notification_stats :获取通知统计信息

订阅者

  • get_subscribers :分页列出订阅者

  • create_subscriber :创建一个新的订阅者

  • update_subscriber :更新订阅者详细信息

  • delete_subscriber :删除订阅者

主题

  • get_topics :列出所有主题

  • create_topic :创建新主题

  • delete_topic :删除现有主题

  • add_subscribers_to_topic :向主题添加订阅者

  • remove_subscribers_from_topic :从主题中删除订阅者

示例用法

要触发通知:

{
  "type": "execute",
  "payload": {
    "operation": "trigger_event",
    "params": {
      "name": "welcome-email",
      "to": "subscriber-id",
      "payload": {
        "name": "John Doe",
        "company": "Acme Inc"
      }
    }
  }
}

要创建订阅者:

{
  "type": "execute",
  "payload": {
    "operation": "create_subscriber",
    "params": {
      "subscriberId": "unique-id",
      "email": "john@example.com",
      "firstName": "John",
      "lastName": "Doe"
    }
  }
}

发展

源代码使用 TypeScript 编写,并遵循现代开发实践。主要实现位于src/index.ts中,Novu 特定的逻辑位于src/novu-service.ts中。

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      B
      maintenance
      Enables AI assistants to interact with New Relic monitoring and observability data through programmatic access to New Relic APIs. Supports APM management, NRQL queries, alert policies, synthetic monitoring, dashboards, infrastructure monitoring, and deployment tracking.
      27
      207 PyPI
      6
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI agents to interact with Notion workspaces through the Notion API. Supports reading, writing, commenting, and managing Notion pages and databases with optimized token consumption for AI agents.
      19
      MIT
    • A
      license
      Not graded
      quality
      F
      maintenance
      Enables AI agents to interact with Unity projects through multimodal vision, code analysis, asset management, and scene manipulation. Supports real-time Unity editor control, project search, script creation, and visual debugging through screenshots.
      32
      MIT