Marketing Automation MCP Server
Enables Facebook Ads campaign management and audience insights, allowing creation and optimization of ad campaigns with intelligent audience segmentation.
Provides full API integration with OAuth2 authentication for Google Ads campaign management, enabling AI-powered budget optimization, performance tracking, and automated campaign operations.
Integrates with Google Analytics for performance tracking, attribution analysis, and real-time campaign monitoring with automated ROI calculation.
Enables contact management, email campaign creation, and audience segmentation through Mailchimp's marketing automation platform.
Leverages GPT-4 for AI-powered ad copy generation, intelligent budget allocation recommendations, campaign insights, and predictive ROI modeling.
Provides email service integration for marketing campaign delivery and communication automation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Marketing Automation MCP Server generate a performance report for my Q4 Google Ads campaign"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Marketing Automation MCP Server
marketing-automation-mcp is a Python MCP server for deterministic campaign reporting, provider-backed budget optimization, copy generation, and demo-only audience segmentation.
This repo now favors reproducibility over ad hoc setup:
Supported Python:
3.12and3.13Local bootstrap:
uvPrimary MCP transport:
stdioLocal Python
3.14.xis treated as compatibility work, not the supported baseline
Current Scope
The public MCP contract in this repo is intentionally narrow:
generate_campaign_reportoptimize_campaign_budgetcreate_campaign_copyanalyze_audience_segments
Only these four tools are part of the supported server surface today. Other modules under src/tools/ exist as internal or aspirational code paths and should not be treated as production MCP features.
Related MCP server: AdKit
Execution Modes
DEMO_MODE=trueReturns deterministic sample data for demos and contract testing.DEMO_MODE=falseUses real platform credentials and the selected AI provider. Missing live dependencies return structuredblockedresponses instead of fabricated output.
Clean Machine Setup
uv sync --python 3.13 --extra dev
cp .env.example .env
uv run python -m compileall src tests dashboard
uv run pytestIf you need a pip fallback:
python3.13 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"Run The Server
Start the MCP server in its supported transport mode:
uv run python -m src.serverThe server currently documents and supports stdio transport only.
Claude Desktop configuration:
{
"mcpServers": {
"marketing-automation": {
"command": "uv",
"args": ["run", "python", "-m", "src.server"],
"cwd": "/absolute/path/to/Marketing-Automation-MCP-Server"
}
}
}Configure
cp .env.example .envMinimum useful configurations:
Demo mode only:
DEMO_MODE=true
Live reporting and optimization:
DEMO_MODE=falseone or more platform credential sets
Live copy generation:
DEMO_MODE=falseAI_PROVIDER=openaiOPENAI_API_KEY=...AI_OPENAI_MODEL=gpt-5.4
Optional provider env vars:
ANTHROPIC_API_KEY,ANTHROPIC_MODELGEMINI_API_KEY,GEMINI_MODEL
For stable live behavior, set:
SECRET_KEYENCRYPTION_KEY
If ENCRYPTION_KEY is missing, API-key encryption is disabled for that process and the server logs a warning.
Tool Contract
Every tool response includes these top-level fields:
{
"status": "ok | blocked",
"mode": "demo | live",
"blocked_reason": "optional string",
"warnings": []
}See the full contract in docs/api/README.md.
Internal Write Side Effects
Live report and optimization flows may persist internal audit records to the configured database:
report flows can persist normalized campaign snapshots
optimization flows can persist AI decision history
These writes are internal side effects for observability and replay safety. They are not part of the public MCP response contract.
Validation Commands
uv run python -m compileall src tests dashboard
uv run pytest
uv run python -c "import src.server, src.cli, src.ai_engine, src.performance; print('imports ok')"
docker build -t marketing-automation-mcp:latest .Documentation
Available Tools
4 toolsanalyze_audience_segmentsC
Analyze audience segments in deterministic demo mode or return a structured live-mode block.
Inputs: contact_list_id (required), criteria (required), min_segment_size, max_segments, +2 more. Returns: Output schema for analyze_audience_segments.
create_campaign_copyB
Generate campaign copy variants through the configured AI provider or deterministic demo mode.
Inputs: product_name (required), product_description (required), target_audience (required), tone (required), +5 more. Returns: Output schema for create_campaign_copy.
generate_campaign_reportB
Generate campaign performance reports using live platform data or deterministic demo mode.
Inputs: campaign_ids (required), date_range (required), metrics (required), format, +2 more. Returns: Output schema for generate_campaign_report.
optimize_campaign_budgetC
Reallocate campaign budget using live platform metrics and provider-backed optimization logic.
Inputs: campaign_ids (required), total_budget (required), optimization_goal, constraints, +2 more. Returns: Output schema for optimize_campaign_budget.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct marketing function: audience analysis, copy creation, reporting, and budget optimization. There is no overlap in purpose.
All tool names follow a consistent verb_noun pattern (analyze_*, create_*, generate_*, optimize_*), making them predictable and easy to distinguish.
With 4 tools, the set is slightly lean but covers core marketing automation tasks. It does not feel overly sparse or bloated for a focused server.
The tools cover analysis, copy, reporting, and optimization, but lack common features like campaign lifecycle management (create, schedule, pause) or list/segment management, leaving notable gaps.
Maintenance
Related MCP Connectors
AI marketing agent for Google Ads, Meta, GA4, TikTok, LinkedIn, Shopify, HubSpot and more.
AI marketing agent for paid ads: run campaigns on 11 ad networks and read your web analytics.
Google Ads, Meta, TikTok, LinkedIn, GA4 and Search Console in your AI assistant, with analyses.
Manage Google, Meta, TikTok, Microsoft, Pinterest, Amazon, LinkedIn & Reddit ads from your AI
Related MCP Servers
- AlicenseAqualityNot gradedmaintenanceEnables AI-powered analysis, management, and optimization of Meta advertising campaigns across Facebook and Instagram, including performance insights, budget optimization, and creative testing.33Business Source 1.1
- AlicenseAqualityBmaintenanceManage ad campaigns across Meta, Google, and TikTok, create campaigns, analyze performance, spy on competitors, and generate AI creatives.520MIT
- FlicenseNot gradedqualityDmaintenanceAutomates marketing workflows across Google Ads, Meta Ads, and GA4, enabling content generation, scheduling, and analytics via a multi-agent pipeline.-
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to create, analyze, and optimize ad campaigns across Google Ads, Meta Ads, TikTok Ads, LinkedIn Ads, Amazon Ads, and ChatGPT Ads through natural language using 400+ tools.108MIT