MCP Braze
Production-ready MCP server enabling AI assistants to interact with Braze's customer engagement platform, offering 92 tools for user management, messaging, campaigns, analytics, email/SMS, catalogs, and SCIM provisioning.
README
<div align="center">
<br>
MCP Braze
<br>
Production-ready MCP server for Braze customer engagement
<br>
<br>
Built with the MCP SDK — Works with Claude Desktop & Claude.ai
<br>
<br>
</div>
Overview
A comprehensive MCP server enabling AI assistants to interact with Braze's customer engagement platform. Features 92 tools covering user management, messaging, campaigns, analytics, email/SMS operations, catalogs, and SCIM provisioning—built for production reliability.
<br>
Δ Capabilities
<table> <tr> <td width="50%" valign="top">
Core
92 Tools — Users, messaging, campaigns, analytics Multi-Channel — Push, email, SMS, in-app, webhooks Header Auth — Multi-tenant ready architecture
</td> <td width="50%" valign="top">
Reliability
Circuit Breaker — Cascading failure prevention Auto-Retry — Exponential backoff with jitter Health Checks — K8s liveness & readiness probes
</td> </tr> <tr> <td width="50%" valign="top">
Security
Input Validation — Zod schemas everywhere Injection Prevention — XSS & path attacks blocked Rate Limiting — Token bucket algorithm
</td> <td width="50%" valign="top">
Performance
Request Queue — Concurrency control (10 max) Request Deduplication — Shares concurrent results Response Caching — TTL-based with LRU eviction
</td> </tr> </table>
<br>
Quick Start
npm install && npm run build
node dist/index.js
<br>
Configuration
<details> <summary><b>Claude Desktop (stdio)</b></summary> <br>
{
"mcpServers": {
"braze": {
"command": "node",
"args": ["/path/to/mcp-braze/dist/index.js"],
"env": {
"BRAZE_API_KEY": "your-api-key",
"BRAZE_REST_ENDPOINT": "https://rest.iad-01.braze.com"
}
}
}
}
</details>
<details> <summary><b>Remote HTTP (mcp-remote)</b></summary> <br>
{
"mcpServers": {
"braze": {
"command": "npx",
"args": [
"-y", "mcp-remote",
"https://your-server.com/mcp",
"--header", "x-braze-api-key:your-api-key",
"--header", "x-braze-rest-endpoint:https://rest.iad-01.braze.com"
]
}
}
}
</details>
<details> <summary><b>Claude.ai Web</b></summary> <br>
- Deploy server with HTTP transport
- Claude.ai → Settings → Connectors
- Add URL:
https://your-server.com/mcp - Add headers:
x-braze-api-key,x-braze-rest-endpoint
</details>
<br>
| Platform | Config Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
<br>
β Tools
| Category | Tools |
|---|---|
| Users | users_track · users_identify · users_alias_new · users_alias_update · users_delete · users_merge · users_external_id_rename · users_external_id_remove |
| Messaging | messages_send · campaigns_trigger_send · canvas_trigger_send · transactional_email_send · send_id_create · live_activity_update |
| Scheduling | scheduled_broadcasts_list · messages_schedule_create · messages_schedule_update · messages_schedule_delete · campaigns_schedule_create · campaigns_schedule_update · campaigns_schedule_delete · canvas_schedule_create · canvas_schedule_update · canvas_schedule_delete |
| Exports | campaigns_list · campaigns_details · campaigns_analytics · sends_analytics · canvas_list · canvas_details · canvas_analytics · canvas_summary · segments_list · segments_details · segments_analytics · users_export · users_export_segment · users_export_control_group · kpi_dau · kpi_mau · kpi_new_users · kpi_uninstalls · events_list · events_analytics · purchases_products · purchases_quantity · purchases_revenue · sessions_analytics |
email_hard_bounces · email_unsubscribes · email_subscription_status · email_bounce_remove · email_spam_remove · email_blocklist · email_blacklist° |
|
| SMS | sms_invalid_phones · sms_invalid_phones_remove |
| Subscriptions | subscription_status_get · subscription_user_status · subscription_status_set · subscription_status_set_v2 |
| Templates | email_templates_list · email_templates_info · email_templates_create · email_templates_update · content_blocks_list · content_blocks_info · content_blocks_create · content_blocks_update |
| Catalogs | catalogs_list · catalogs_create · catalogs_delete · catalog_items_list · catalog_items_create · catalog_items_update · catalog_items_edit · catalog_items_delete · catalog_item_get · catalog_item_create · catalog_item_update · catalog_item_edit · catalog_item_delete |
| Preferences | preference_centers_list · preference_center_get · preference_center_url · preference_center_create · preference_center_update |
| SCIM | scim_users_search · scim_users_get · scim_users_create · scim_users_update · scim_users_delete |
° Deprecated — use email_blocklist instead
<br>
Usage
"Track a purchase event for user123 with amount $99.99"
"Send the welcome campaign to users who signed up today"
"Get campaign analytics for the last 30 days"
"List all users in the Premium segment"
"Create a new email template for order confirmations"
<br>
Authentication
| Priority | API Key | REST Endpoint |
|---|---|---|
| 1 | x-braze-api-key header |
x-braze-rest-endpoint header |
| 2 | Authorization: Bearer header |
restEndpoint parameter |
| 3 | brazeApiKey parameter |
BRAZE_REST_ENDPOINT env |
| 4 | BRAZE_API_KEY env |
— |
<br>
Braze REST Endpoints
<details> <summary><b>Available Regions</b></summary> <br>
| Region | Endpoint |
|---|---|
| US-01 | https://rest.iad-01.braze.com |
| US-02 | https://rest.iad-02.braze.com |
| US-03 | https://rest.iad-03.braze.com |
| US-04 | https://rest.iad-04.braze.com |
| US-05 | https://rest.iad-05.braze.com |
| US-06 | https://rest.iad-06.braze.com |
| US-07 | https://rest.iad-07.braze.com |
| US-08 | https://rest.iad-08.braze.com |
| EU-01 | https://rest.fra-01.braze.eu |
| EU-02 | https://rest.fra-02.braze.eu |
Find your endpoint in Braze Dashboard → Settings → APIs and Identifiers
</details>
<br>
Stability & Resilience
<details> <summary><b>Retry with Exponential Backoff</b></summary> <br>
- Auto-retries on HTTP 429, 500, 502, 503, 504
- Handles network errors (ECONNRESET, ETIMEDOUT, ECONNREFUSED)
- Respects
Retry-Afterheaders - Configurable max retries, delays, jitter
</details>
<details> <summary><b>Circuit Breaker Pattern</b></summary> <br>
Prevents cascading failures:
- CLOSED — Normal operation
- OPEN — Fast-fail mode (5 failures trigger)
- HALF_OPEN — Recovery testing
</details>
<details> <summary><b>Request Management</b></summary> <br>
- Timeout: 30s default (AbortController)
- Deduplication: Shares identical concurrent requests
- Queue: Limits to 10 concurrent requests
- Rate Limiting: Token bucket algorithm
</details>
<details> <summary><b>Health Checks</b></summary> <br>
Kubernetes-ready probes:
health— Full status reportliveness— Alive checkreadiness— Traffic ready
</details>
<br>
Deployment
FROM node:20-alpine
WORKDIR /app
COPY package*.json ./
RUN npm ci --production
COPY dist ./dist
EXPOSE 3000
CMD ["node", "dist/index.js"]
docker build -t mcp-braze .
docker run -p 3000:3000 \
-e BRAZE_API_KEY=your-key \
-e BRAZE_REST_ENDPOINT=https://rest.iad-01.braze.com \
mcp-braze
<details> <summary><b>Environment Variables</b></summary> <br>
# Server
PORT=3000
NODE_ENV=production
# Auth (prefer headers in production)
BRAZE_API_KEY=
BRAZE_REST_ENDPOINT=
BRAZE_APP_ID=
# Rate Limiting
RATE_LIMIT_ENABLED=true
RATE_LIMIT_REQUESTS_PER_SECOND=10
# Caching
CACHE_ENABLED=true
CACHE_TTL_SECONDS=300
CACHE_MAX_SIZE=1000
# Circuit Breaker
CIRCUIT_BREAKER_ENABLED=true
CIRCUIT_BREAKER_THRESHOLD=5
CIRCUIT_BREAKER_RESET_TIMEOUT=60000
# Logging
LOG_LEVEL=info
# Sentry (Optional)
SENTRY_DSN=
SENTRY_ENVIRONMENT=production
</details>
<br>
Architecture
src/
├── index.ts # Entry point
├── server.ts # MCP server init
├── tools/ # 92 tools
│ ├── users.ts
│ ├── messaging.ts
│ ├── scheduling.ts
│ ├── exports.ts
│ ├── email.ts
│ ├── sms.ts
│ ├── subscriptions.ts
│ ├── templates.ts
│ ├── catalogs.ts
│ ├── preference-center.ts
│ └── scim.ts
└── lib/ # Core utilities
├── auth.ts # API key extraction
├── client.ts # Braze HTTP client
├── validation.ts # Zod schemas
├── errors.ts # Error handling
├── retry.ts # Backoff
├── circuit-breaker.ts # Failure prevention
├── rate-limiter.ts # Token bucket
├── cache.ts # TTL cache
├── request-queue.ts # Concurrency
├── deduplication.ts # Request dedup
├── idempotency.ts # Safe retries
├── health.ts # K8s probes
├── logger.ts # Structured logging
└── sentry.ts # Error tracking
~3,500 lines · 154 unit tests · 126 e2e tests
<br>
References
| MCP Specification | modelcontextprotocol.io |
| MCP SDK | github.com/modelcontextprotocol/typescript-sdk |
| mcp-remote | npmjs.com/package/mcp-remote |
| Braze API | braze.com/docs/api |
<br>
<div align="center">
<br>
MIT License
<br>
DELTΔ & βETΑ
From Change to What's Next
<br>
</div>
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。