moengage-mcp
MCP server for MoEngage marketing platform, exposing campaign and email-template tools with full campaign targeting filter tree via API-key auth.
README
moengage-mcp
A Model Context Protocol (MCP) server for the MoEngage marketing platform. Exposes campaign and email-template tools over stdio, built on FastMCP.
Unlike MoEngage's official MCP (analytics-oriented, interactive OAuth), this server
uses the documented Campaign/Content API
with plain API-key auth — it runs headless, and it reads campaign targeting
(the full segmentation_details filter tree via search_campaigns), which the
official server does not expose.
Tools
Campaigns (9)
| Tool | Mutates | Purpose |
|---|---|---|
search_campaigns |
no | Search/filter campaigns; returns config including the full targeting filter tree (segmentation_details) |
get_campaign_meta |
no | Thin identity view: status, channel, delivery type, team, tags, dates (no targeting) |
get_child_executions |
no | Individual runs of a recurring (periodic) campaign |
get_personalized_preview |
no | Render campaign content with placeholders resolved for sample attributes |
get_campaign_stats |
no | ⚠ Disabled upstream — MoEngage turned this endpoint off; kept for when it returns |
create_campaign |
yes | Create a campaign |
update_campaign |
yes | Update campaign config |
change_campaign_status |
yes | Activate / pause / stop a campaign |
test_campaign |
yes | Send a real test push/email to named recipients |
Email templates (9)
| Tool | Mutates | Purpose |
|---|---|---|
search_templates |
no | Search templates with filters and pagination |
analyze_template |
no | Parse template HTML into structured content nodes |
compare_templates |
no | Structured diff of two templates |
build_email_template |
no | Build + validate a template, return a structured preview (no publish) |
get_server_info |
no | Data center + dashboard base URL |
publish_template |
yes | Build + validate + publish to MoEngage |
update_template |
yes | Update an existing template |
localize_template |
yes | Publish a translated market variant |
patch_template_text |
yes | Modify specific text nodes without a rebuild |
Tools return structured previews, never raw HTML — large payloads would overflow an agent's context window.
Gating writes: the server ships all tools; restrict the mutating ones in
your MCP client (e.g. Claude Code permissions.allow listing only the read
tools). Read and write tools share MoEngage's campaign-API rate limits
(5/min, 25/hr, 100/day) — avoid fanning out calls.
Install & run
pip install git+https://github.com/poddubnyoleg/moengage_mcp.git
moengage-mcp # stdio
Claude Code / Claude Desktop config:
{
"mcpServers": {
"moengage": {
"type": "stdio",
"command": "moengage-mcp"
}
}
}
Configuration
Environment variables (or a local .env, see .env.example):
| Variable | Required | Description |
|---|---|---|
MOENGAGE_API_KEY |
yes | Campaign/Content API key (dashboard → Settings → APIs) |
MOENGAGE_WORKSPACE_ID |
yes | Workspace (app) ID |
MOENGAGE_DATA_CENTER |
yes | Regional DC, e.g. 02 for dashboard-02.moengage.com |
MOENGAGE_FOOTER_CONFIG |
no | Brand links for the email footer component — inline JSON or a file path (schema in footer.py); without it the footer carries only an Unsubscribe link |
API errors (including 401 on rotated keys) come back as structured error dicts, so a consuming agent can report them instead of failing opaquely.
Notes
content/email/TEMPLATE_GUIDELINES.mddocuments an example house style the template validator enforces (component order, CTA compliance, Jinja rules) — adapt to your brand.- Audience reachability counts are only returned by MoEngage for one-time scheduled campaigns, not periodic ones.
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器