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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.