Campaign Intelligence Toolkit MCP
An MCP server that orchestrates deterministic analytics, benchmarks, recommendations, and forecasting to provide AI-driven campaign analysis and executive reports.
README
Campaign Intelligence Toolkit
An AI Operations Copilot for Campaign Optimization
An AI-powered Campaign Operations toolkit that combines deterministic analytics, industry benchmarks, business knowledge, forecasting, and AI orchestration to analyze digital marketing campaigns.
Instead of relying on an LLM to perform calculations, the system uses deterministic Python services for business logic and exposes a single AI capability through MCP for OpenClaw to consume.
Architecture
User
│
▼
OpenClaw Agent
│
analyze_campaign()
│
▼
Campaign Toolkit MCP
│
AnalysisService
│
┌──────────┬──────────┬──────────┬──────────┐
▼ ▼ ▼ ▼ ▼
Analytics Benchmarks Knowledge Recommendations Forecast
│
▼
ReportBuilder
│
▼
Structured Business Report
│
▼
OpenClaw LLM
│
▼
Executive Summary
Project Objectives
This project explores how modern AI systems should be architected for business operations.
Instead of asking an LLM to "analyze a campaign", the application separates responsibilities into independent services:
- Campaign Analytics
- Industry Benchmark Comparison
- AdTech Knowledge Retrieval
- Recommendation Engine
- Budget Forecasting
- Report Generation
The AI agent orchestrates these capabilities rather than replacing them.
Features
Campaign Analytics
- Campaign KPI retrieval
- CPA
- CTR
- CPC
- ROAS
- Revenue
- Spend
- Conversion metrics
Benchmark Engine
Compares campaign performance against industry benchmarks.
Supported metrics:
- CPA
- CTR
- ROAS
Recommendation Engine
Generates deterministic recommendations based on business rules.
Examples:
- CPA above benchmark
- CTR below benchmark
- ROAS below benchmark
Knowledge Retrieval
Searches an internal AdTech knowledge base for optimization guidance.
Example topics:
- Target CPA
- Creative Fatigue
- Landing Page Optimization
Forecasting
Projects future campaign performance using current campaign metrics.
Forecast includes:
- Spend
- Revenue
- ROAS
- CPA
- Conversions
Analysis Orchestrator
Coordinates every capability into a single business workflow.
Campaign
│
▼
Analytics
▼
Benchmarks
▼
Knowledge
▼
Recommendations
▼
Forecast
▼
Executive Report
MCP Integration
The toolkit is exposed as a FastMCP server and can be used directly from OpenClaw.
Available tool:
analyze_campaign(campaign_name)
Folder Structure
campaign-intelligence-toolkit/
analytics/
benchmarks/
campaign_mcp/
data/
decisions/
forecasting/
knowledge/
models/
orchestrator/
tests/
README.md
requirements.txt
Example
Prompt:
Analyze Campaign Alpha
Example Output:
Performance
CPA : 412
Industry : 320
CTR : 1.79%
Industry : 2.1%
ROAS : 2.58
Industry : 3.2
Recommendations
• Review bidding strategy
• Improve audience targeting
• Test new creatives
• Optimize landing page
• Maintain learning period
• Avoid drastic budget changes
Forecast
Projected Spend : 270000
Projected Revenue : 696600
Projected Conversions : 655
Technologies Used
- Python
- Pandas
- FastMCP
- OpenClaw
- Ollama
- Gemma 4
- VS Code
Key Learning
The biggest takeaway from this project:
AI products shouldn't rely on the LLM to do everything.
Instead,
- deterministic code performs calculations
- business services own domain logic
- AI orchestrates capabilities
- the LLM communicates results
This separation makes AI systems faster, more reliable, easier to test, and easier to extend.
Future Improvements
- Multi-campaign analysis
- Budget optimization
- Root cause analysis
- Multi-agent orchestration
- Real-time campaign monitoring
- Live Google Ads / DV360 connectors
Learning Roadmap
This project is part of my journey to become an AI-native Product Leader by building one AI product every weekend.
- Publisher Revenue Intelligence Engine
- Revenue Knowledge Copilot (RAG)
- AdTech Market Intelligence Agent
- Interactive AI Revenue Copilot
- AdTech Knowledge Intelligence Platform
- Campaign Intelligence Toolkit ← You are here
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。