Skip to main content
Adspirer sits between your AI assistant and your ad platforms. You talk to your AI in natural language. Adspirer translates that into authenticated API calls to Google Ads, Meta Ads, LinkedIn Ads, and TikTok Ads — and returns results back to your conversation.

The Full Pipeline

Every interaction follows this path. Whether you’re pulling a performance report or creating a campaign, the pipeline is the same.

Layer 1: Your AI Client

Your AI assistant — Claude, ChatGPT, Cursor, Codex, or any MCP-compatible client — is the interface. You describe what you want in plain English:
  • “How are my Google Ads performing this month?”
  • “Create a LinkedIn campaign targeting IT Directors”
  • “Find wasted spend across all platforms”
The AI determines which Adspirer tools to call and in what order. With skills installed, it follows proven workflows. Without skills, it makes its best guess.

What the AI Client Provides

CapabilityDescription
Natural language understandingTranslates your request into tool calls
Multi-step reasoningChains multiple tools in sequence
Context from filesReads brand context, strategy, and memory files
User confirmationAsks before spend-affecting actions
Result formattingPresents data as tables, charts, and recommendations

Layer 2: MCP (Model Context Protocol)

is the protocol that connects your AI client to Adspirer. It’s an open standard — any AI client that supports MCP can use Adspirer.

What MCP Does

  • Tool discovery: Your AI client discovers Adspirer’s 100+ tools with descriptions and parameters
  • Tool invocation: When the AI decides to use a tool, it sends a structured request via MCP
  • Response delivery: Adspirer returns structured results that the AI formats for you
  • Authentication: OAuth flows are triggered transparently through MCP

One URL, All Platforms

Every AI client connects to the same MCP endpoint:
https://mcp.adspirer.com/mcp
This single URL gives access to all 100+ tools across all 4 ad platforms. Your AI client doesn’t need to know about Google Ads APIs, Meta APIs, or LinkedIn APIs — Adspirer handles all of that behind the MCP layer.

Tool Categories

Adspirer exposes tools in two categories:
  • Read tools pull data and analyze performance. Safe to run anytime. No spending impact. Examples: get_campaign_performance, research_keywords, analyze_wasted_spend.
  • Write tools create or modify campaigns. Require user confirmation. Affect spend. Examples: create_search_campaign, update_campaign, add_keywords.

Layer 3: Authentication (OAuth 2.1 with PKCE)

When you first connect an ad platform, Adspirer uses OAuth 2.1 with PKCE — the same standard used by banking apps.

The OAuth Flow

1

You trigger a connection

Either through your AI client’s MCP settings or by running setup (/adspirer:setup).
2

Browser opens

You’re redirected to Google/Meta/LinkedIn/TikTok’s login page. You sign in with your existing credentials.
3

You authorize permissions

You see exactly what Adspirer is requesting (read campaigns, create ads, manage budgets). You approve.
4

Tokens are issued

The ad platform issues an access token (1-hour lifetime) and refresh token (30-day lifetime). Adspirer stores these encrypted at rest.
5

Automatic refresh

When the access token expires, Adspirer automatically uses the refresh token to get a new one — no re-login needed until the refresh token expires (30 days).

What Adspirer Never Sees

  • Your ad platform password
  • Your billing/payment information
  • Data from accounts you haven’t connected
  • Personal data beyond what’s in your ad account settings

Layer 4: Ad Platform APIs

Adspirer translates MCP tool calls into native API calls for each platform:
Adspirer ToolPlatform API CalledWhat It Does
get_campaign_performanceGoogle Ads APIPulls campaign metrics (spend, CTR, CPA, ROAS)
research_keywordsGoogle Keyword Planner APIReturns keyword ideas with real CPC data
create_search_campaignGoogle Ads APICreates a Search campaign (PAUSED)
get_meta_campaign_performanceMeta Marketing APIPulls Meta campaign metrics
create_meta_image_campaignMeta Marketing APICreates an image ad campaign
get_linkedin_campaign_performanceLinkedIn Marketing APIPulls LinkedIn campaign metrics
create_linkedin_image_campaignLinkedIn Marketing APICreates a sponsored content campaign
Each API call uses the OAuth token from your authenticated session. Adspirer handles rate limiting, pagination, error handling, and response formatting.

Layer 5: Skills & Agent (Optional)

Without skills, your AI calls tools individually and guesses the workflow. With skills and the agent, you get structured workflows, brand awareness, and strategy persistence.

What the Agent Adds

Without AgentWith Agent
Raw tool accessBrand-aware tool usage
AI guesses workflowProven step-by-step workflows
No memory between sessionsPast decisions persist in MEMORY.md
No strategy persistenceDirectives saved in STRATEGY.md
No safety enforcementSkills enforce read-before-write, confirmation gates
See Performance Marketing Agent for the full architecture.

Safety Model

Adspirer’s safety model operates at multiple layers:
LayerProtectionWho Enforces It
OAuth scopingYou authorize exactly what Adspirer can doAd platform (Google, Meta, etc.)
Tool typesRead tools are safe; Write tools require confirmationAdspirer MCP server
PAUSED creationAll campaigns start pausedAdspirer create_* tools
Skill workflowsResearch → validate → confirm → createSKILL.md files
Agent rulesRead-before-write, budget guardrails, no auto-retryAgent prompt + rules files
User confirmationAI asks before any spend-affecting actionAI client + skill
Post-creation verificationAgent verifies ads, keywords, extensions existAgent prompt
No single layer is sufficient on its own. The safety model works because each layer reinforces the others.

Data Flow Summary

WhatWhere It LivesWho Can Access It
Your ad platform credentialsGoogle/Meta/LinkedIn/TikTok serversOnly the ad platform
OAuth tokensAdspirer servers (encrypted)Adspirer (for API calls)
Campaign performance dataAd platform APIs (real-time)Your AI client (via Adspirer)
Brand context (CLAUDE.md)Your local machineYour AI client
Strategy directivesYour local machine (STRATEGY.md)Your AI client
MemoryYour local machine (MEMORY.md)Your AI client
Adspirer reads your campaign data in real-time and passes it to your AI client. It does not permanently store campaign data, ad copy, or targeting settings.
Last modified on March 4, 2026