brevo-api-mcp
A Model Context Protocol (MCP) server for seamless Brevo email marketing platform integration with AI assistants like Claude
GitHubスター
2
ユーザー評価
未評価
お気に入り
0
閲覧数
7
フォーク
1
イシュー
1
README
Brevo MCP Server
MCP (Model Context Protocol) server for Brevo email marketing platform with comprehensive analytics support.
Installation
Quick Start
Install via npm:
npm install -g @richardbaxterseo/brevo-mcp-server
Configure Claude Desktop:
Add this to yourclaude_desktop_config.json
:{ "mcpServers": { "brevo": { "command": "npx", "args": ["-y", "@richardbaxterseo/brevo-mcp-server"], "env": { "BREVO_API_KEY": "your-brevo-api-key-here" } } } }
Restart Claude Desktop
Manual Installation
Clone this repository:
git clone https://github.com/richardbaxterseo/brevo-mcp-server.git cd brevo-mcp-server npm install npm run build
Add to Claude Desktop config:
{ "mcpServers": { "brevo": { "command": "node", "args": ["C:/path/to/brevo-mcp-server/dist/index.js"], "env": { "BREVO_API_KEY": "your-brevo-api-key-here" } } } }
Configuration
Environment Variables
BREVO_API_KEY
- Your Brevo API key (required for API operations)BREVO_BASE_URL
- Custom API base URL (optional, defaults to https://api.brevo.com/v3)
Getting Your API Key
- Log in to your Brevo account
- Go to Settings → API Keys
- Create a new API key or copy an existing one
- Important: You may need to whitelist your IP address in Brevo's security settings
Available Tools
Account Management
get_account_info
- Get account information and plan details
Contact Management
get_contacts
- List and search contactsget_contact_analytics
- Analyze contact engagement
Email Operations
send_email
- Send transactional emailsget_email_campaigns
- List email campaigns
Analytics Tools
get_campaign_analytics
- Detailed campaign performance metricsget_campaigns_performance
- Bulk campaign analysisget_analytics_summary
- Dashboard overview with insightsget_campaign_recipients
- Recipient-level campaign data
Usage Examples
Without API Key
The server will start successfully even without an API key. You'll receive a helpful error message when trying to use API operations:
User: "Get my Brevo account info"
Assistant: "I need a Brevo API key to access your account. Please add your API key to the Claude Desktop configuration."
With API Key
Once configured, you can use natural language:
User: "Show me my email campaign performance for last month"
Assistant: [Displays campaign metrics, open rates, click rates, and insights]
Troubleshooting
Server Won't Start
- Ensure Node.js 18+ is installed
- Check the logs at:
%APPDATA%\Claude\logs\mcp-server-brevo.log
API Key Issues
- The server starts without an API key but will prompt you when needed
- Add the key to your Claude config and restart Claude Desktop
- Ensure your IP is whitelisted in Brevo if you get authentication errors
Common Errors
- 401 Unauthorized: Check API key and IP whitelist in Brevo
- 429 Rate Limited: You've exceeded Brevo's API rate limits
- 404 Not Found: The resource doesn't exist or endpoint is incorrect
Development
Building from Source
npm install
npm run build
npm test
Running Tests
# Test without API key
npm test
# Test with API key
BREVO_API_KEY=your-key npm test
License
MIT © Richard Baxter
Support
- Issues: GitHub Issues
- Email: richard@richardbaxter.co
- Documentation: Brevo API Docs