Jasper John Cinatad
← All work

MCP servers

Narrow, typed tools for ad platforms and company memory.

Role
Senior Full-Stack Engineer
Where
PoliTech.ai and Promota.ai
When
2023 to now
Built with
TypeScript, Python, MCP, PostgreSQL, AWS Lambda
Access
Proprietary work. Source is private.
Diagram: agents connect to MCP servers for Meta, Google and LinkedIn Ads, X, Reddit and company memory; three ad servers feed one daily table.
Illustration Diagram I drew of the servers and how they connect.

Problem

Agents were asked to report on and manage ad campaigns across several platforms and to remember company context. Raw API access was too broad and too easy to get subtly wrong.

What I built

A set of small MCP servers, one per platform, each exposing only typed, scoped operations, plus an authenticated company memory server.

How it works

  • LinkedIn Ads: 100 analytics fields in 9 groups, batched at the API’s 20-field cap. Missing fields are left out, never reported as zero, and an account lock stops data crossing between ad accounts.
  • Google Ads only requests fields from a live registry, so retired fields are never queried.
  • Meta, Google and LinkedIn all feed one daily performance table.
  • A campaign engine exposes X ad metrics and LinkedIn actions, with Reddit OAuth ingestion of posts, comments and replies.
  • Company memory, built on an open-source memory engine, runs behind authenticated HTTP MCP with keyword plus vector search. Bad or missing tokens get a 401.
Simplified LinkedIn batching
// 100 fields, at most 20 per request
for (const batch of chunk(fields, 20)) {
  const rows = await linkedin.analytics({ account, fields: batch });
  merge(result, rows); // absent stays absent, never 0
}

Outcome

  • 97 operations live on the memory server.
  • 100 LinkedIn metric fields available to agents.
  • Memory survived a service restart and a full VM stop and start in testing.