连接器指南阅读约 6 分钟23 个 MCP 工具7 种语言

Braze MCP:连接 Microsoft Copilot

让你的 AI 使用 Braze:查看营销活动、Canvas 及其效果,检查分段、日活跃用户和收入,查询用户档案和订阅,记录属性和事件,并在你确认后触发 API 营销活动。

HC作者:HelpCode 团队更新于 6 分钟阅读 在 GitHub 开源

无需信用卡 · 7 天试用 · 提供自托管方案

Braze

Braze

Let your AI work with Braze: review campaigns, Canvases and their results, check segments, daily active users and revenue, look up user profiles and subscriptions, record attributes and events, and trigger API campaigns after you confirm.

个工具

23

区域

INTL

类别

营销自动化

身份验证

Bearer Token

所需环境变量

BRAZE_REST_ENDPOINTBRAZE_REST_API_KEY
在 Cloud 上一键安装

7 天免费试用 · 无需信用卡

  • 7 天免费试用
    无需信用卡
  • 符合 GDPR,SOC 2 就绪
    数据驻留欧盟,审计日志
  • 在 GitHub 开源
    开源 · AGPL-3.0
  • 支持 ChatGPT、Claude、Gemini
    任何兼容 MCP 的客户端

摘要

让你的 AI 使用 Braze:查看营销活动、Canvas 及其效果,检查分段、日活跃用户和收入,查询用户档案和订阅,记录属性和事件,并在你确认后触发 API 营销活动。

引导式设置

2 分钟将 Braze 连接到 Microsoft Copilot

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Braze,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。

无需信用卡 · 7 天试用 · 提供自托管方案

试试这样问

Braze 的示例提示

点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。

Braze · 通过 MCP 实时
分享
Opus 4.7

Claude 是 AI,可能会出错。请核对回答。

💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Braze、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无 git clone、无本地服务器。

Braze + Microsoft Copilot

让你的 AI 使用 Braze:查看营销活动、Canvas 及其效果,检查分段、日活跃用户和收入,查询用户档案和订阅,记录属性和事件,并在你确认后触发 API 营销活动。

前提条件

完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:

BRAZE_REST_ENDPOINT, BRAZE_REST_API_KEY

步骤 1 — 获取凭证

  1. 在 Braze 中打开 Settings → APIs and Identifiers → API Keys,点击 Create API Key。一个密钥只属于一个工作区。
  2. 为它命名,并勾选工具需要的权限。读取需要:campaigns.list, campaigns.details, campaigns.data_series, sends.data_series, canvas.list, canvas.details, canvas.data_summary, segments.list, segments.details, segments.data_series, kpi.dau.data_series, kpi.mau.data_series, kpi.new_users.data_series, kpi.uninstalls.data_series, events.list, events.data_series, purchases.product_list, purchases.quantity_series, purchases.revenue_series, subscription.status.get, subscription.groups.get, users.export.ids。写入还需要 users.track, campaigns.trigger.send, canvas.trigger.send;只有要开启删除工具时才加上 users.delete。密钥的权限之后无法修改:如有需要,请新建一个密钥。
  3. 把密钥复制到 BRAZE_REST_API_KEY,不要带 Bearer 前缀。
  4. 把同一页面上显示的 REST endpoint 复制到 BRAZE_REST_ENDPOINT。它取决于你的 Braze 实例,并与仪表板地址对应:dashboard-01.braze.com 对应 https://rest.iad-01.braze.com,dashboard-01.braze.eu 对应 https://rest.fra-01.braze.eu,以此类推。美国实例运行在 rest.iad-01 到 rest.iad-08 以及 rest.us-10(.braze.com),欧盟实例运行在 rest.fra-01 和 rest.fra-02(.braze.eu),其他实例运行在 rest.au-01、rest.id-01、rest.jp-01 和 rest.kr-01(.braze.com)。密钥只能在自己的实例上使用。
  5. 安装连接器。连接检查会列出你的营销活动,所以密钥需要 campaigns.list。

谁能看到什么:密钥代表整个工作区,而不是某个人。使用该连接器的人能看到密钥可读取的一切,包括用户档案。请只把 MCP 服务器分享给有权查看这些内容的人。

可读取的内容:营销活动和 Canvas 的设置、消息和每日效果(发送、送达、打开、点击、转化、收入),某一次通过 API 触发的发送的效果(保留 14 天),分段及其估算规模(适用于开启了分析跟踪的分段),日活跃和月活跃用户、新用户和卸载数,自定义事件、购买和收入,按 external id、别名、braze_id、邮箱或电话查询的用户档案,以及订阅组状态。时间序列覆盖 1 到 100 天,Canvas 汇总覆盖 1 到 14 天。

先确认:braze_track_users 每次最多记录 75 条属性、自定义事件和购买,并可能把用户带入分段或启动 Canvas,因此 AI 会先给你看改动并等你确认。braze_send_campaign 和 braze_send_canvas 会触发向真实的人发送真实消息的 API 营销活动和 Canvas:AI 会给你看营销活动或 Canvas、渠道以及具体收件人;如果是广播或多个收件人,它会等你明确回复“是的,发送”。braze_delete_users 在安装时默认关闭。

限制:大多数端点每小时允许 250,000 次请求。读取用户档案:2024 年 8 月以后开通的工作区每分钟 250 次(之前开通的为 2,500 次);自定义事件列表和产品列表共享每小时 1,000 次;发送端点每分钟允许 250 次广播调用,每个受众每分钟 10 次。达到限制时 Braze 返回 429。

常见错误:401 "Invalid API key":密钥错误或属于另一个实例;请检查 REST endpoint 是否与你的仪表板对应。403 "Access Denied":密钥缺少该端点的权限,请新建一个具备该权限的密钥。400:缺少参数或参数无效,例如时长超出范围或营销活动 id 未知。429:达到速率限制;请稍等后重试一次。

该连接器不涉及内容块和模板、目录、邮件列表和硬退信、预定消息、偏好中心、SCIM、用户别名和 identify 端点、向云存储导出分段以及 Currents。

步骤 2 — 安装 adapter

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

步骤 3 — 在 Microsoft Copilot 中添加连接器

你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(https://cloud.anythingmcp.com/mcp/…)。本指南中出现 YOUR_SERVER_ID 的地方都用它替换。

Microsoft Copilot 通过在 Copilot Studio 中构建的智能体使用 MCP 服务器:把 AnythingMCP 作为工具添加到智能体,然后把智能体发布到 Microsoft 365 Copilot 和 Teams。Copilot Studio 从 Microsoft 的云端通过 Streamable HTTP 连接,AnythingMCP 支持这种方式。

  1. 在 Copilot Studio 中打开你的智能体(或新建一个),进入 Tools,选择 Add a tool → New tool → Model Context Protocol。
  2. 填写 Server name(例如 AnythingMCP)、说明连接器用途的 Server description,以及 Server URL https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。Copilot Studio 根据描述决定何时调用该服务器。
  3. 身份验证选择 API key,把 Type 设为 Header,请求头名称填 X-API-Key,然后选择 Create。
  4. 在 Add tool 中选择 Create a new connection,粘贴 AnythingMCP 的 MCP API 密钥(MCP Servers → 你的服务器 → API keys),然后选择 Add to agent。
  5. 在智能体的 Test 窗格中试一试:提出需要用到 Braze 的工具的请求。
  6. 选择 Publish,然后进入 Channels → Microsoft 365 and Microsoft Teams,保持勾选 Make agent available in Microsoft Copilot,再选择 Add channel。See agent in Teams 会为你安装该智能体;在 Microsoft 365 Copilot 中输入 @ 并选择该智能体。

希望每个用户各自登录?请选择 OAuth 2.0 → Dynamic discovery 代替 API 密钥:每个用户会在智能体首次调用时登录 AnythingMCP。

自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Copilot Studio 从 Microsoft 的云端连接,因此 localhost 无法使用。

可用工具

ToolWhat it does
braze_list_campaignsList the campaigns of the Braze workspace, 100 per page: id (campaign API identifier), name, whether it is an API campaign, tags and last…
braze_get_campaignGet the details of one Braze campaign: name, description, enabled, archived and draft flags, schedule type, channels, first and last sent…
braze_get_campaign_data_seriesGet a daily series of a Braze campaign's results: unique recipients, conversions, revenue and, per channel and variation, sends…
braze_get_send_data_seriesGet the daily results of one send of an API campaign (a send_id groups the messages of one trigger call): per channel and variation sends…
braze_list_canvasesList the Canvases (multi-step journeys) of the Braze workspace, 100 per page: id (Canvas API identifier), name, tags and last edit time
braze_get_canvasGet the details of one Braze Canvas: name, description, enabled, archived and draft flags, schedule type, first and last entry, channels…
braze_get_canvas_data_summaryGet the totals of a Braze Canvas for a period: entries, conversions, revenue and, on request, the same per variant and per step with…
braze_list_segmentsList the segments of the Braze workspace, 100 per page: id (segment API identifier), name, whether analytics tracking is enabled, and tags
braze_get_segmentGet the details of one Braze segment: name, description of its filters, created and updated time, and tags
braze_get_segment_size_seriesGet the estimated size of a Braze segment per day
braze_get_kpi_seriesGet a daily series of a Braze key metric for the workspace or one app: dau (daily active users), mau (monthly active users, rolling 30…
braze_list_custom_eventsList the names of the custom events recorded in the Braze workspace, 250 per page, in alphabetical order
braze_get_custom_event_seriesGet how often a Braze custom event occurred per day or per hour, for the workspace, one app or one analytics-enabled segment
braze_list_productsList the product ids of the purchases recorded in Braze, page by page
braze_get_purchase_quantity_seriesGet the number of items purchased per day or per hour in Braze, for all products or one, for the workspace or one app
braze_get_revenue_seriesGet the revenue per day or per hour recorded from purchases in Braze, for all products or one, for the workspace or one app
braze_get_subscription_group_statusGet whether a user is subscribed to one Braze subscription group (SMS, WhatsApp or email), identified by external_id, email or phone
braze_list_user_subscription_groupsList the subscription groups a Braze user belongs to and their state, identified by external_id, email or phone
braze_export_users_by_idsRead Braze user profiles by identifier: external_ids (up to 50), user aliases, braze_id, email_address or phone
braze_track_usersWrite to Braze user profiles: set or change attributes (standard and custom), record custom events and record purchases, up to 75 objects…
braze_send_campaignSend an API-triggered Braze campaign now: to listed recipients, to a connected audience, or with broadcast true to the campaign's whole…
braze_send_canvasStart an API-triggered Braze Canvas now: for listed recipients, a connected audience, or with broadcast true for the Canvas's whole target…
braze_delete_usersPermanently delete Braze user profiles, up to 50 per call, by external_ids, user_aliases, braze_ids, email_addresses or phone_numbers, only…

示例提示

  • “过去 30 天我们发送了哪些营销活动?哪一个的打开率和点击率最高?”
  • “上周有多少用户进入了我们的新手引导 Canvas?每一步各有多少人转化?”
  • “给我看过去 60 天的日活跃用户和新用户。”
  • “为 external_id 为 4821 的用户记录自定义事件 webinar_attended,写入前先给我看要写的内容。”

FAQ

这适用于哪个 Copilot? 适用于工作中的 Microsoft 365 Copilot,通过 Copilot Studio 的智能体实现。面向个人账户的 Microsoft Copilot 应用无法添加自己的 MCP 服务器。

我需要什么? 一个可以使用 Copilot Studio 的工作账户(许可证或试用版),用于构建智能体。在 Microsoft 365 Copilot 或 Teams 中使用它的人需要拥有该智能体的访问权限:把它共享给他们,或请管理员为整个组织发布。如果你的组织对 Power Platform 连接器设置了数据策略,这些策略同样适用于 MCP 服务器。

智能体不调用工具。 检查请求头名称是否正好是 X-API-Key,密钥是否属于与 URL 相同的 MCP 服务器,并把 Server description 写得具体:Copilot Studio 根据它决定何时调用服务器。每次修改后重新发布智能体;在已打开的对话中输入 "start over" 即可使用新版本。

下一步

这份指南对你有帮助吗?

2 分钟将 Braze 连接到 Microsoft Copilot

开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Braze,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。

相关指南