KosmoKrator

marketing

Braze MCP Integration for Vercel AI SDK

Connect Braze to Vercel AI SDK through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 7 read 0 write API key auth

Connect Braze to Vercel AI SDK

Use KosmoKrator as a local integration gateway for Vercel AI SDK agents and scripts.

Create an MCP client that starts or connects to the KosmoKrator gateway for the selected integration. The gateway is local, scoped to this integration, and starts with --write=deny so Vercel AI SDK can inspect read-capable tools without receiving write access by default.

Braze MCP Config for Vercel AI SDK

Prefer CLI JSON calls when a workflow only needs one deterministic integration operation.

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

Run the Gateway Manually

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

Why Use KosmoKrator Here

Scoped tools

Expose only Braze 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.

Braze Tools Visible to Vercel AI SDK

Vercel AI SDK sees stable MCP tool names generated from the Braze integration catalog.

MCP toolSource functionTypeDescription
integration__braze__braze_list_campaigns braze.braze_list_campaigns Read List marketing campaigns from Braze. Returns campaign IDs, names, tags, and creation dates. Use pagination to browse large numbers of campaigns.
integration__braze__braze_get_campaign braze.braze_get_campaign Read Get detailed information about a specific Braze campaign, including targeting rules, messaging content, schedule, and analytics.
integration__braze__braze_list_canvases braze.braze_list_canvases Read List canvases (multi-step customer journeys) from Braze. Returns canvas IDs, names, tags, and creation dates. Use pagination to browse large result sets.
integration__braze__braze_get_canvas braze.braze_get_canvas Read Get detailed information about a specific Braze canvas, including steps, targeting rules, messaging channels, and analytics.
integration__braze__braze_list_users braze.braze_list_users Read Export users from Braze by segment ID or external IDs. Returns user profile data including attributes and subscription state. Provide either a segment_id to get users in a segment, or external_ids to look up specific users.
integration__braze__braze_get_user braze.braze_get_user Read Get a single user profile from Braze by their external ID. Returns full profile data including attributes, custom attributes, events, purchases, and subscription groups.
integration__braze__braze_get_current_user braze.braze_get_current_user Read Get the current authenticated Braze user profile. Useful for verifying credentials and identifying the connected workspace.

Related Braze Pages