marketing
Braze MCP Integration for LangChain
Connect Braze to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Braze 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.
Braze MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"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
Expose only Braze instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Braze Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the Braze integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
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. |