KosmoKrator

communication

Novu MCP Integration for LangChain

Connect Novu to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 5 read 2 write API key auth

Connect Novu to LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

Novu MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "mcpServers": {
    "kosmokrator-novu": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=novu",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=novu --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Novu instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Novu Tools Visible to LangChain

LangChain sees stable MCP tool names generated from the Novu integration catalog.

MCP toolSource functionTypeDescription
integration__novu__novu_list_notifications novu.novu_list_notifications Read List notifications from Novu. Returns a paginated list of notifications, optionally filtered by channel (e.g., in_app, email, sms, chat, push).
integration__novu__novu_get_notification novu.novu_get_notification Read Get details of a specific notification in Novu by its ID. Returns the full notification object including status, channel data, and content.
integration__novu__novu_list_subscribers novu.novu_list_subscribers Read List subscribers from Novu. Returns a paginated list of all notification subscribers with their details.
integration__novu__novu_get_subscriber novu.novu_get_subscriber Read Get details of a specific subscriber in Novu by their ID. Returns the subscriber profile including email, phone, and preferences.
integration__novu__novu_create_subscriber novu.novu_create_subscriber Write Create a new subscriber in Novu. Requires an email address. Optionally include first name, last name, and phone number.
integration__novu__novu_trigger_event novu.novu_trigger_event Write Trigger a notification event in Novu. Sends a notification based on a workflow template to one or more subscribers. The "to" field can be a subscriber ID, email address, or an array of recipients.
integration__novu__novu_get_current_user novu.novu_get_current_user Read Get the currently authenticated Novu user. Returns user profile information including name, email, and organization details.

Related Novu Pages