Brevo MCP(多通道平台)
Brevo API 的模型上下文协议 (MCP) 实现,旨在与 Claude 和其他 AI 助手无缝集成。
特征
- ✉️ 电子邮件管理
- 发送交易电子邮件
- 跟踪电子邮件传递和事件
- 漂亮的电子邮件模板
- 👥 联系人管理
与 Claude Desktop 一起使用
- 将其添加到您的 Claude Desktop 配置中(通常为
~/.config/claude-next/config.json
):{
"MCPServers": {
"brevo": {
"command": ["npx", "@apicolet/brevo-mcp"],
"config": {
"apiKey": "your-brevo-api-key-here"
}
}
}
}
- 重新启动 Claude Desktop 以加载配置
就是这样!现在您可以直接在 Claude 对话中使用 Brevo 功能了。
示例
以下是使用 Claude 中的 Brevo MCP 可以执行的操作的一些示例:
发送电子邮件
// Send a transactional email
const result = await mcp.brevo.send_email({
to: [{
email: "recipient@example.com",
name: "John Doe"
}],
subject: "Hello from Claude!",
htmlContent: "<h1>Welcome!</h1><p>This is a test email.</p>"
});
管理联系人
// Get contact details
const contact = await mcp.brevo.get_contact("john@example.com");
// Update contact attributes
await mcp.brevo.update_contact(contact.id, {
attributes: {
FIRSTNAME: "John",
LASTNAME: "Doe",
COMPANY: "Acme Inc"
}
});
可用工具
MCP 提供了几个可以在 Claude 中使用的工具:
get_contact
:通过电子邮件或 ID 检索联系人详细信息update_contact
:更新联系人属性create_attribute
:创建新的联系人属性send_email
:发送交易电子邮件get_email_events
:跟踪电子邮件传递和参与度
发展
设置
- 克隆存储库:
git clone https://github.com/apicolet/brevo-mcp.git
cd brevo-mcp
- 安装依赖项:
- 构建项目:
运行测试
贡献
欢迎贡献代码!欢迎提交 Pull 请求。
执照
麻省理工学院
安全
- 确保 API 密钥的安全,切勿将其提交到版本控制中
- 使用环境变量或 Claude Desktop 中的安全配置部分来处理敏感数据
- MCP 服务器仅处理 Claude 和 Brevo 之间的通信 - 没有数据存储在本地