- Home
- MCP servers
- Marketing Automation
Marketing Automation
- python
0
GitHub Stars
python
Language
6 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"mohit4022-cloud-marketing-automation-mcp-server": {
"command": "python",
"args": [
"-m",
"src.server"
],
"env": {
"SMTP_HOST": "smtp.gmail.com",
"SMTP_PORT": "587",
"DATABASE_URL": "sqlite:///./marketing_automation.db",
"SMTP_PASSWORD": "your-app-password",
"SMTP_USERNAME": "your-email@gmail.com",
"MCP_SERVER_NAME": "marketing-automation",
"SENDGRID_API_KEY": "your-sendgrid-key",
"MAILCHIMP_API_KEY": "your-mailchimp-key",
"MCP_SERVER_VERSION": "1.0.0"
}
}
}
}The Marketing Automation MCP Server provides AI-powered collaboration for managing multi-platform campaigns, optimizing budgets, generating ad copy, and analyzing audience segments. It combines real-time analytics, secure access, and scalable microservices to help you automate marketing workflows across Google Ads, Facebook Ads, and Google Analytics, while delivering measurable ROI improvements.
How to use
You connect to the MCP server from an MCP client to perform campaign analysis, optimization, and content generation. Use the provided command to start the server locally for development, then access a single interface to manage campaigns, view real-time performance, and trigger AI-powered optimizations across platforms.
From your MCP client, call the available tools to generate reports, optimize budgets, create ad copy, and analyze audience segments. Each tool returns actionable insights and can export results in multiple formats for sharing with stakeholders.
How to install
Prerequisites you need before installation: Python 3.8 or newer, Docker and Docker Compose for easy deployment, and API credentials for at least one advertising or analytics platform.
Step 1 — Production installation with Docker Compose:
git clone https://github.com/Mohit4022-cloud/Marketing-Automation-MCP-Server.git
cd Marketing-Automation-MCP-Server
docker-compose up -d
Step 2 — Configure credentials and environment:
cp .env.example .env
# Add your API keys and credentials to .env
Step 3 — Start locally for development using the MCP server entry point:
python -m src.server
Configuration notes
Create a .env file with the following variables to configure data sources, email service, and MCP server metadata.
# Database
DATABASE_URL=sqlite:///./marketing_automation.db
# Email Service
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USERNAME=your-email@gmail.com
SMTP_PASSWORD=your-app-password
# API Keys (optional)
SENDGRID_API_KEY=your-sendgrid-key
MAILCHIMP_API_KEY=your-mailchimp-key
# MCP Server
MCP_SERVER_NAME=marketing-automation
MCP_SERVER_VERSION=1.0.0
Usage with an MCP client
You can run the MCP server as a standard Python module and connect from an MCP client such as Claude Desktop. A sample client configuration is shown here to integrate the local server.
{
"mcpServers": {
"marketing-automation": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "/path/to/marketing-automation-mcp"
}
}
}
CLI interface and quick actions
From the command line, you can generate performance reports, optimize budgets, create AI-powered ad copy, analyze audience segments, and view automation metrics. The following commands illustrate typical usage with the MCP server installed and running.
# Generate a performance report
marketing-automation report --campaign-ids camp_001 camp_002 --days 30 --format pdf
# Optimize budgets with AI
marketing-automation optimize --campaign-ids camp_001 camp_002 --budget 50000 --apply
# Create AI-powered ad copy
marketing-automation copy --product "DoorDash" --audience "hungry professionals" --count 5
# Analyze audience segments
marketing-automation segment --min-size 1000 --max-segments 5
# View automation metrics
marketing-automation metrics --days 30
Real-world results
In practical deployments, you see substantial time savings, ROI improvements, and cost reductions due to automated optimization and continuous performance monitoring.
Security and reliability
The server uses encrypted API storage, audit logging, and JWT-based session management to secure access and maintain traceability of actions performed by AI assistants and human operators.
Notes and troubleshooting
If you encounter connection issues, verify that environment variables are correctly loaded from .env, ensure the MCP server is running, and confirm that API credentials for each platform are valid and have the necessary permissions.
Available tools
generate_campaign_report
Performs comprehensive campaign performance analysis with visualizations, exports in JSON/HTML/PDF/CSV, AI-generated insights, and historical trend analysis.
optimize_campaign_budget
AI-driven budget reallocation across campaigns with predictive ROI modeling, constraints, and real-time projections.
create_campaign_copy
GPT-4 powered ad copy generation with platform-specific optimization, A/B testing variants, and tone customization.
analyze_audience_segments
Intelligent segmentation with value and engagement scoring, cross-segment overlap analysis, and personalized recommendations.