Token导航 LogoToken导航

MCP Server · AI代理

Ad Campaign Agent

一个使用Google ADK / Gemini 3 Pro作为协调器,基于FastAPI的微服务架构的广告活动AI代理系统,支持传统人类渠道和AI代理营销平台的双通道广告活动。

stdio官方级别未说明来源级核验工具 0
PythonAI代理工作流自动化

快速开始

作者 / 组织
xingbo778
提供方
xingbo778
运行时
Python

工具数量

0

来源目录标注

资源数量

0

来源目录标注

提示词数量

0

来源目录标注

GitHub Star

0

仓库热度

收录来源

1 个

MCP World

选型结论

Ad Campaign Agent 属于AI代理类 MCP Server,公开资料标注 0 个工具,通过stdio 本地进程接入,客户端适配情况以官方文档为准,有可以直接复制的安装命令;接入前先确认权限范围。

分类

AI代理

传输方式

stdio

认证方式

无需认证

部署方式

公开资料未说明

安装与配置

安装命令

python -m venv venv

公开命令不是通用的启动方式,拼不出可靠配置示例;请在客户端 MCP 配置里按官方文档填写 command 和 args。

上手步骤

  1. 1

    准备运行环境

    stdio 服务在本地起进程,需要先装好 Python,再按安装命令拉取依赖。

  2. 2

    安装服务

    复制下面的安装命令执行;命令里带占位符的位置换成自己的密钥或路径。

  3. 3

    写入客户端配置

    在客户端的 MCP 配置里填启动命令和参数,保存后完全退出客户端再打开,让新配置生效。

  4. 4

    验证是否可用

    连接成功后客户端会列出 0 个工具,随便调一个只读工具确认能返回结果。

接入前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

详细介绍

Ad Campaign AI Agent System

A production-ready scaffold for an ad-campaign AI agent system using Google ADK / Gemini 3 Pro as the orchestrator and multiple MCP-style microservices implemented as FastAPI apps.

Supports dual-channel campaigns: traditional human channels (Meta/Facebook/Instagram) and the Agent Marketing Platform (AMP) for reaching AI agents.

Architecture

  • Orchestrator Agent: Built with Google ADK / Gemini 3 Pro, coordinates all MCP services
  • MCP Microservices: FastAPI-based services for different campaign functions

- product_service: Product selection and grouping - creative_service: Ad creative generation (human + agent creatives) - strategy_service: Campaign strategy development (dual-channel: human + agent) - meta_service: Meta platform campaign creation (human channel) - amp_service: Agent Marketing Platform publishing (agent channel) - logs_service: Event logging and audit trails - schema_validator_service: Data validation - optimizer_service: Campaign optimization analysis (human + agent metrics)

Dual-Channel Concept

                    creative_service
                    ├── /generate_creatives        → Human creatives (text/image/video)
                    └── /generate_agent_creatives   → Agent creatives (structured schemas)
                              │
                    strategy_service (include_agent_channel=true)
                    ├── Human channels: 75% budget  → Facebook/Instagram/Meta
                    └── Agent channel: 25% budget   → AMP marketplace
                              │
               ┌──────────────┴──────────────┐
               ▼                             ▼
        meta_service                   amp_service
        (Meta Ads)                     (AMP marketplace)
               │                             │
               ▼                             ▼
          Human users                   AI Agents → Users

Project Structure

ad-campaign-agent/
├── app/
│   ├── common/
│   │   ├── config.py          # Configuration management
│   │   └── http_client.py     # HTTP client utilities
│   ├── orchestrator/
│   │   ├── agent_prompt.md    # Orchestrator agent prompt
│   │   ├── agent_config.yaml  # ADK agent configuration (9 tools)
│   │   └── clients/           # MCP service clients
│   └── services/
│       ├── product_service/
│       ├── creative_service/   # Extended: +agent creative generation
│       ├── strategy_service/   # Extended: +agent channel strategy
│       ├── meta_service/
│       ├── amp_service/        # NEW: Agent Marketing Platform
│       ├── logs_service/
│       ├── schema_validator_service/
│       └── optimizer_service/  # Extended: +agent channel metrics
├── requirements.txt
├── docker-compose.yml
├── Dockerfile
└── .env.example

Setup

Prerequisites

  • Python 3.11+
  • Docker and Docker Compose (optional)

Installation

  1. Clone the repository and navigate to the project directory:
cd ad-campaign-agent
  1. Create a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Install dependencies:
pip install -r requirements.txt
  1. Copy .env.example to .env and configure:
cp .env.example .env
# Edit .env with your settings

Running Services

Option 1: Docker Compose (Recommended)

Start all services:

docker-compose up -d

Stop all services:

docker-compose down

Option 2: Individual Services

Run each service individually:

# Product Service
uvicorn app.services.product_service.main:app --host 0.0.0.0 --port 8001

# Creative Service
uvicorn app.services.creative_service.main:app --host 0.0.0.0 --port 8002

# Strategy Service
uvicorn app.services.strategy_service.main:app --host 0.0.0.0 --port 8003

# Meta Service
uvicorn app.services.meta_service.main:app --host 0.0.0.0 --port 8004

# Logs Service
uvicorn app.services.logs_service.main:app --host 0.0.0.0 --port 8005

# Schema Validator Service
uvicorn app.services.schema_validator_service.main:app --host 0.0.0.0 --port 8006

# Optimizer Service
uvicorn app.services.optimizer_service.main:app --host 0.0.0.0 --port 8007

# AMP Service (Agent Marketing Platform)
uvicorn app.services.amp_service.main:app --host 0.0.0.0 --port 8008

Service Endpoints

All services expose:

  • Main endpoint: POST /{service_endpoint}
  • Health check: GET /health
  • API docs: GET /docs (FastAPI auto-generated)

Example API Calls

Product Service:

curl -X POST http://localhost:8001/select_products \
  -H "Content-Type: application/json" \
  -d '{
    "campaign_objective": "conversions",
    "target_audience": {
      "demographics": {"age": [25, 45]},
      "interests": ["technology", "gadgets"]
    }
  }'

Creative Service (Human):

curl -X POST http://localhost:8002/generate_creatives \
  -H "Content-Type: application/json" \
  -d '{
    "products": [{"product_id": "prod_001", "name": "Widget", "category": "Electronics", "price": 99.99}],
    "campaign_objective": "awareness",
    "platform": "facebook"
  }'

Creative Service (Agent):

curl -X POST http://localhost:8002/generate_agent_creatives \
  -H "Content-Type: application/json" \
  -d '{
    "products": [{"product_id": "prod_001", "name": "Widget", "category": "Electronics", "price": 99.99}],
    "campaign_objective": "conversions",
    "target_agent_categories": ["shopping_assistant", "price_comparison"]
  }'

AMP Service:

curl -X POST http://localhost:8008/publish_to_amp \
  -H "Content-Type: application/json" \
  -d '{
    "agent_creatives": [{"creative_id": "ac_1", "product_id": "prod_001", "product_schema": {"name": "Widget", "category": "Electronics", "price": {"amount": 99.99, "currency": "USD"}}, "tags": ["electronics"]}],
    "budget": 2500.0,
    "bidding_strategy": "cost_per_recommendation"
  }'

Current Status

⚠️ All services currently return MOCK data.

Each service includes TODO comments indicating where real implementations should be added:

  • Database connections
  • External API integrations
  • ML model inference
  • Business logic

Next Steps

  1. Replace Mock Implementations:

- Add database connections (PostgreSQL, MongoDB, etc.) - Integrate with Meta Marketing API - Add Gemini API calls for creative generation - Implement real validation logic - Build AMP marketplace API integration - Implement real product schema generation from raw product data - Integrate third-party verification APIs (Vanta, UptimeRobot, G2)

  1. Orchestrator Integration:

- Configure Google ADK with agent_config.yaml - Wire up orchestrator to use MCP clients - Test end-to-end dual-channel campaign creation flow

  1. AMP Channel Development:

- Build real AMP marketplace backend - Implement product schema validation against AMP standards - Build sandbox API provisioning system - Implement agent bidding engine (CPR/CPQ/CPA) - Build agent query and recommendation tracking

  1. Production Readiness:

- Add authentication/authorization - Implement rate limiting - Add monitoring and observability - Set up CI/CD pipelines

Development

Code Structure

Each service follows the same pattern:

  • main.py: FastAPI application with endpoints
  • schemas.py: Pydantic models for request/response
  • mock_data.py: Mock data generators

Adding New Services

  1. Create service directory under app/services/
  2. Add main.py, schemas.py, mock_data.py
  3. Add service client in app/orchestrator/clients/
  4. Update docker-compose.yml and .env.example
  5. Add service URL to app/common/config.py

License

[Add your license here]

工具与能力

工具数量

0

资源数量

0

提示词数量

0

能力标签

广告活动管理Python本地部署AI代理微服务架构双通道广告营销自动化

数量来自来源目录的标注,具体工具清单以官方文档为准。

典型使用场景

多步任务编排

把拆解、检索、执行串成一条链,模型按步骤调用工具。

长期上下文

把会话、笔记和知识放到外部存储,换个会话还能接着做。

接自有流程

把内部系统和模型连起来,让助手调用已有的工作流。

选择建议

值得选的地方

  • 只提供 0 个工具,职责集中,接入后不容易误操作。
  • 有现成的安装命令,不用自己找入口,照着跑就能起服务。
  • 公开说明写得比较完整,接入前能看清能力边界。

先想清楚的地方

  • stdio 方式要求本地装好 Python,换机器要重新装一遍。
  • 第三方目录整理,版本更新和行为细节以官方仓库为准。

更适合

  • 需要在AI代理场景里让模型直接调用外部能力的人。
  • 想先快速试一下、能接受在本地跑服务的人。

不太适合

  • 完全不想在本地装环境的人。
  • 需要厂商级 SLA 和技术支持的生产环境。

同类对比

5 个同类
MCP Server工具数传输方式安装命令收录来源最后核验
Ad Campaign Agent

MCP World · 本页

0stdio有1 个2026-05-17
Everything Claude Code

MCP World

0stdio有1 个2026-05-17
Filesystem 560c4363

MCP World

13未说明未标注2 个2026-05-17
Time 7365cb6d

MCP.so

2SSE有2 个2026-05-17
Server Everything (everything)

MCP World

11stdio有1 个2026-05-17

按同分类和工具数量挑出最接近的几条,字段以各自详情页为准。

常见问题

5 条

Ad Campaign Agent 怎么安装?

公开资料给出的安装命令是 python -m venv venv,运行环境为 Python。装完后按客户端要求写进 MCP 配置,重启客户端生效。

Ad Campaign Agent 怎么在 Claude Desktop、Cursor 里配置?

它是stdio 本地进程,客户端配置里要写启动命令和参数,运行环境是 Python;保存后完全退出客户端再打开,配置才会生效。

Ad Campaign Agent 收费吗?

本站只整理公开资料,不代收费用,也没有标注具体价格。是否收费取决于服务本身和背后的接口额度,正式使用前按官方说明确认。

Ad Campaign Agent 需要 API Key 吗?

公开资料标注为无需认证,装好就能连;如果实际调用时报鉴权错误,按官方文档补上凭据。

Ad Campaign Agent 支持哪些客户端?

公开资料没有标注具体客户端;能配置本地 MCP 命令的客户端都能接,配置方式参照官方文档。

来源信息

继续浏览同类 MCP