All workFILE 26 / 44

Marketing services

Competitor social analytics, from hourly scrape to dashboard and agent

Shipped for A marketing agency

6

MCP tools the agency's agents queryMARKETING AGENCY

01

The problem

The agency tracked competitors' social pages by hand and could not see growth or engagement over time.

02

The constraint

Competitor pages expose only public data: followers, posts and reactions. Reach and impressions are admin-only, so the system computes the standard public engagement proxy instead of pretending to have them.

THE MACHINE

03

The system

Scheduled scraping (company details hourly, posts every four hours) into a PostgreSQL time series; a FastAPI API with an AI layer that turns questions into a single guarded read-only SELECT over allow-listed views under a read-only role, and tags each post's topics and sentiment; an MCP server for agents; a Next.js dashboard; a daily sync to the warehouse.

FIG. 01 · SYSTEM FLOW · 7 NODES · 7 FLOWS

System diagram: 7 nodes and 7 directed flows.

  • SOURCE

    • scheduled scraping · public data
  • MODEL

    • topic + sentiment tagging
    • question → guarded read-only SQL
  • ACTION

    • dashboard
    • MCP server · 6 tools
  • STORE

    • time-series database
    • daily warehouse sync

FLOWS

  1. scheduled scraping · public data to time-series database
  2. time-series database to topic + sentiment tagging
  3. time-series database to question → guarded read-only SQL
  4. topic + sentiment tagging to dashboard
  5. question → guarded read-only SQL to dashboard
  6. question → guarded read-only SQL to MCP server · 6 tools
  7. time-series database to daily warehouse sync
Available when animations are enabled.

MEASURED, NOT CLAIMED

04

The outcome

Competitor growth and engagement tracked continuously, answerable in plain English from the dashboard or by the agency's agents over 6 MCP tools.

FIG. 02 · WHAT IT PRODUCED The dashboard over the scraped time series: posts tagged by topic and sentiment, and questions answered by one guarded read-only query. Illustration with placeholder values; no client data.