Sprites MCP · Agents · Codex

Connect OpenAI Codex to Your Marketing Accounts

Codex reads MCP servers from ~/.codex/config.toml, supports streamable HTTP with OAuth, and can add one from the command line. Sprites is the server that carries marketing data into it, which makes Codex useful for the engineering half of growth work rather than only the writing half.

MCP server URLhttps://mcp.sprites.ai/mcp

15 channels · 4 steps

CodexSprites connected

Where is Google Ads wasting money this month?

Spritesoptimizerunning
SpritesGoogle AdsNeeds your approval
  • Generic — Broad$1,240 · 0 convPause−$1,240
  • "free crm software"search termNegate−$380
  • Brand — ExactIS lost to budget 41%Raise+$25/day
3 changes proposed · nothing appliedReview

Add Sprites to Codex

Available on Anywhere Codex CLI runs — a ChatGPT plan that includes Codex, or an API key. You need a Sprites account with your channels already connected — the connector acts on that connection, so Codex never handles a platform credential.

  1. Add the server

    One command writes the entry into ~/.codex/config.toml for you.

    Terminal
    codex mcp add sprites --url https://mcp.sprites.ai/mcp
  2. Or write the config by hand

    The same entry in ~/.codex/config.toml, or in .codex/config.toml inside a trusted project when you want the connector scoped to one repo.

    ~/.codex/config.toml
    [mcp_servers.sprites]
    url = "https://mcp.sprites.ai/mcp"
    auth = "oauth"
  3. Sign in

    Codex opens a browser for the Sprites consent screen and stores the token locally. Sprites supports dynamic client registration and client ID metadata documents, so there is nothing to pre-register.

    Terminal
    codex mcp login sprites
  4. Approve changes by name

    Codex renders results as text, so a pending change comes back written out rather than as a card you can click. Nothing is applied until you approve it, and the approval waits for you in Sprites — open it there and the same run continues.

    Pending change
    ChangeDaily budget $40 → $65Gategate_7f2c…

Which Codex surface you are on

Only the surfaces below are documented here. Where we have not verified a path, the page says so rather than implying the setup is the same everywhere.

Codex CLIVerified

codex mcp add, or an [mcp_servers.sprites] block in ~/.codex/config.toml, then codex mcp login.

Project-scoped configVerified

.codex/config.toml inside a trusted project, for a connector that belongs to one repo.

What Codex can reach

All 15 channels run through the one connector. Rows with a guide go deeper on that pairing; the rest are covered on the channel's own page.

ChannelWhat Codex does with itGuide
Google AdsAccount structure and performance available to a script you are writing rather than exported to a CSV first.Set up →
MetaCreative fatigue per ad, learning-phase checks, new hooks previewed in the real placement.Set up →
LinkedInCost per lead by job function, ABM account lists, sponsored content that converts.Set up →
TikTokCPA and CTR for every ad, the next creative batch, and spend moved before the CPA drifts.Set up →
RedditCommunity targeting, subreddit-native copy, and the ad groups spending without converting.Set up →
GA4Read the events back immediately after firing them, which is what makes instrumentation work verifiable.Set up →
PostHogFunnels, retention and trends by campaign, read-only, beside the spend that bought them.Set up →
SEOQuery Search Console from the terminal the fix is being written in.Set up →
AEOWho gets cited by ChatGPT and Perplexity for your prompts, and the pages that change it.Set up →
ShopifySEO titles across the whole catalogue, collection pages, and product copy that ships on approval.Set up →
GBPPerformance per location, the listings missing fields, and posts that keep the map pack.Set up →
WordPressResearched posts, page edits and metadata written into WordPress as drafts you approve.Set up →
WebflowResearched CMS posts, page metadata and copy edits, each an approval before it applies.Set up →
FramerResearched posts and SEO fields written into your Framer CMS, added after you approve.Set up →
Zoho CRMPipeline and lead-source reporting beside ad spend, with approved lead, deal and note writes.Set up →

Marketing workflows worth doing in Codex

Marketing work that belongs in a commit: Codex can read the landing page it is about to ship and brief Sprites on the campaign pointing at it, in one session.

Build reporting scripts against live data

Develop a script with the real account answering, so the shape it handles is the shape it will meet.

Validate analytics instrumentation

Fire an event, read what GA4 recorded, and close the loop in one session instead of across a deploy.

Create campaign QA utilities

A check that fails when a campaign breaks a naming rule or ships without a conversion action attached.

Investigate SEO templates from evidence

Start from the Search Console losses, end at the template change that explains them.

Permissions, approvals and authentication

You sign in with OAuth and the connector acts on your workspace. No API keys in a config file, no shared service account, and revoking the grant kills the very next call.

ActionWhen it happensWhat that covers
Read an accountOn requestSpend, performance, search terms, rankings, catalogue
Draft a changeOn requestCampaigns, creative, budgets, pages and posts
Apply a changeOnly on your approvalCodex returns the change as text; the approval waits for you in Sprites
Spend moneyOnly on your approvalNew campaigns start paused unless you say otherwise
Revoke accessInstantlyThe next call after a revoke fails, not the one after that

Codex MCP questions

Command line or config file?

Either. codex mcp add writes the entry for you; an [mcp_servers.sprites] block in ~/.codex/config.toml is the same thing written by hand.

How does authentication work?

codex mcp login opens a browser and stores the token locally. Codex supports dynamic client registration and client ID metadata documents, so there is nothing to pre-register.

Can it change my ad accounts on its own?

No. Reads happen on request; every write comes back as a change you approve first, and new campaigns start paused. Nothing is applied because a model decided it should be.

Config changes are not taking effect.

Codex reads config.toml at startup. Restart it after editing.

Is this the same as ChatGPT?

Same company, different client. ChatGPT takes a connector through developer mode in the web app; Codex takes one through a config file and a CLI command.

Background worth having first

What the protocol is, how the servers differ, and what separates an agent from an assistant with tools attached.

Point Codex at your ad accounts

One URL, one sign-in, and the next question you ask Codex about your marketing gets answered from the live account.