Altaviz
Enables monitoring and managing multi-platform media buying accounts via natural language, detecting anomalies like creative fatigue and spend spikes, with AI-powered recommendations and a human-in-the-loop approval queue.
README
Altaviz — AI Media Buying Copilot
Live: altaviz.vercel.app · MCP: https://altaviz.vercel.app/api/mcp
Built by David Fernandez for the It's Today Media Build Challenge.
60-second tour: open the demo → expand the Google tracking-outage finding → ask the copilot "What should I kill today?" → approve its actions in the queue.
What it does
Watches a multi-platform ad account (Meta, Google, Taboola, TikTok) and closes the gap between when something breaks and when a human notices.
- Detect — a statistical engine (plain TypeScript, no LLM in the loop) finds the five failure modes that cost affiliate teams money: creative fatigue, CPA drift, spend spikes, conversion-tracking outages, underfunded winners. Every finding ships with evidence and a $/day impact.
- Decide — a Claude copilot (streaming tool-use agent,
claude-sonnet-5) grounded in the same tools. "What should I kill today?" gets dollars, evidence, and reasoning — it knows a tracking outage means "fix the pixel", not "cut spend". - Act, approved — the agent proposes typed actions with exact platform-API params. They queue for human approval. Nothing executes without a click.
- MCP — the identical tool registry is a Model Context Protocol server, so the team can drive the account from Claude Desktop, Claude Code, or Cursor.
claude mcp add --transport http altaviz https://altaviz.vercel.app/api/mcp
<details> <summary>Claude Desktop / Cursor config</summary>
{
"mcpServers": {
"altaviz": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://altaviz.vercel.app/api/mcp"]
}
}
}
</details>
Demo data: a deterministic seeded account — 6 campaigns, 90 days, realistic affiliate economics (CPA at 60–85% of payout), five injected anomalies. No database; every visitor sees the same story. Real platform adapters swap in behind the same Account → Campaign → AdSet → Ad → DailyMetric interface.
Why this tool
Your business buys media to build email/SMS lists; ROI is the metric. The expensive failures at that scale aren't strategy — they're detection lag. Dashboards show numbers, not what changed, what it costs per day, and what to do. I chose this over a creative generator or LP builder deliberately: those make more assets; this protects margin on every dollar already being spent — and it's the class of system I've built for five years (anomaly detection on streaming data, agentic tool-use).
Design decisions:
- Statistics, not prompts. z-scores, trend slopes, significance gates in
lib/detect. LLMs narrate and decide; they never invent numbers. Findings are reproducible and auditable. - List economics built in. Pause/scale calls are priced on payout plus a configurable backend $/lead — list-building campaigns often run at front-end breakeven on purpose, and the detectors know that.
- One tool registry, two consumers.
lib/toolsdefines each tool once (zod schema + executor); the chat agent and MCP server both consume it. - Hard approval boundary. The agent can propose
raise_budget; it cannot call it. Product decision, not a gap. - Public-demo hardening: per-IP rate limiting, capped agent turns/tokens/history.
What I'd build next
- Weeks 1–2: read-only Meta/Google Ads API adapters behind the existing interface; validate detector thresholds against incidents your buyers remember.
- Weeks 3–4: scheduled morning briefing to Slack with approve buttons; wire approved actions to platform APIs behind the same HITL boundary, with an audit log.
- Month 2: close the creative loop — fatigue finding → refresh brief → your video-gen pipeline → upload as paused drafts via your ads MCP server.
- Ongoing: eval suites — detector precision/recall on known incidents; copilot recommendations scored against what senior buyers actually did.
Architecture
Next.js 16 · TypeScript · Tailwind · @anthropic-ai/sdk · mcp-handler · zod · React Three Fiber (hero) · Vercel.
lib/data/ seeded account generator + types
lib/detect/ statistical anomaly engine (pure functions)
lib/tools/ ONE zod tool registry → consumed by both ↓
app/api/chat/ streaming Claude agent loop (NDJSON)
app/api/[transport]/ MCP server (Streamable HTTP)
app/app/ dashboard · app/ landing
npm install
ANTHROPIC_API_KEY=sk-ant-... npm run dev # everything but chat works without a key
npx tsx scripts/sanity.ts # prints KPIs + anomaly findings, no server
Known limits (deliberate for a demo): in-memory rate limiting (per serverless instance); chat history replays as text only; MCP is unauthenticated read-only demo data.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。