Creative Analytics

How to Use Codex With the Segwise MCP to Analyze Ad Creatives

To use Codex with the Segwise MCP, add a Streamable HTTP server named segwise at https://mcp.segwise.ai/mcp (MCP servers in settings for the desktop app or IDE extension, or codex mcp add for the CLI), sign in with your Segwise login, and type /mcp to confirm it's connected. Then ask about your ads in plain English.

The catch is that Codex can only answer from data it can reach, and raw ad network exports don't say which hook or CTA sits in which ad. Segwise is an AI creative analytics and creative generation platform that tags the hooks, CTAs, characters, visual styles and audio in every ad and ties those tags to spend, installs and ROAS across your networks, so Codex answers from that tagged data instead of a CSV you pasted in.

TL;DR

  • Setting it up: one server entry, shared by the desktop app, CLI and IDE extension. Sign in once with Authenticate or codex mcp login segwise.
  • Checking it works:/mcp lists connected servers; then ask Codex to list your Segwise organizations.
  • Asking questions: top creatives by ROAS, tags in your winners and losers, fatigue, competitor angles and saved reports.
  • Why Codex rather than ChatGPT: same Segwise server and tools, but Codex can save answers as files and scripts in your project. ChatGPT in the browser is simpler if you only want a chat answer.

What do you need before you connect Codex to Segwise?

You need three things: a Segwise account, at least one ad network or MMP connected to it, and a Codex client. Those requirements come straight from the Segwise MCP setup page, which also says the MCP is available to all Segwise accounts and that each person connects with their own Segwise login.

On the Codex side, OpenAI's MCP docs for Codex say the desktop app, the Codex CLI and the IDE extension share one MCP configuration, stored in ~/.codex/config.toml by default. In practice that means you add Segwise once per machine and it shows up in all three. OpenAI's docs now list the desktop app under the ChatGPT desktop app, so look there if you're looking for Codex settings on your desktop.

Two notes before you start:

  • Workspace rules can apply. Segwise's page says workspace settings may require an administrator to add or allow the connection.
  • Everyone connects separately. There is no shared team login. Each analyst or marketer signs in with their own account, and Segwise checks every request against that person's organization access.

How do you connect the Segwise MCP to Codex?

You add one remote server entry and then sign in. The steps below follow the Codex section of the Segwise setup page and OpenAI's own Codex MCP guide, both read on 2026-11-28.

Diagram of two ways to connect Codex to the Segwise MCP: app or IDE settings, or the CLI

Connect in the desktop app or IDE extension

  1. Open Settings in the desktop app, or the gear menu in the IDE extension, and select MCP servers.
  2. Select Add server.
  3. Name it segwise, choose Streamable HTTP, and enter https://mcp.segwise.ai/mcp.
  4. Save, then restart the app or the extension when prompted.
  5. In the server list, select Authenticate and sign in with your Segwise account in the browser.

Connect from the Codex CLI

Add the server with its URL, then log in:

codex mcp add segwise --url https://mcp.segwise.ai/mcp
codex mcp login segwise
codex mcp list

codex mcp login segwise is the exact step the Segwise page gives for CLI users. If you're on a remote machine with no local browser, OpenAI's docs say to add --no-browser: Codex prints the sign-in link, you open it on any browser, and you paste the full redirect URL back into the terminal.

Or edit config.toml directly

If you prefer to manage the file yourself, this is the whole entry:

[mcp_servers.segwise]
url = "https://mcp.segwise.ai/mcp"

Put it in ~/.codex/config.toml for every project, or in a project's .codex/config.toml (trusted projects only). Then sign in from the CLI or with Authenticate in the app.

Check the connection with /mcp

Type /mcp in the desktop app's composer or in the codex terminal UI to see your active servers. Then ask Codex: "List the Segwise organizations I can access." If you work across several accounts, as agencies do, Codex shows the names and you pick one before any question runs.

We ran the CLI path ourselves on Codex CLI 0.169.0 with a clean config. codex mcp list showed segwise as enabled with the status "Not logged in", and codex mcp login segwise --no-browser found Segwise's sign-in on its own and printed a Segwise sign-in link asking for the segwise:analytics:query scope. No client ID or extra flags were needed.

Or let Codex walk you through it

The Segwise page also has a setup prompt for Codex that you can paste into a new thread:

Help me connect Segwise to Codex using the remote MCP server https://mcp.segwise.ai/mcp. First check whether Segwise is already connected. If it is missing, help me add a remote MCP server named segwise through MCP settings or my Codex configuration, preserving existing servers. Guide me through OAuth sign-in and any required restart. If setup or sign-in needs my action, guide me through it. Once connected, list the Segwise organizations I can access and ask which one I want to analyze. Verify the connection before saying setup is complete.

You still complete the sign-in yourself in the browser.

Connect your account in minutes: Segwise lets you bring every tagged creative and its results into Codex with one server entry and your own login. Book a demo.

What should you ask Codex about your ad creatives?

Ask the questions you'd otherwise answer by exporting data and building a pivot table: which creatives win, what the winners share, what's fading and what competitors run that you don't. Codex sends each question to Segwise, which works out which data it needs, so you never name tables or tools.

Segwise MCP answer in an AI assistant comparing hook tags by ROAS on Meta, from the Segwise website

This is the answer style Segwise shows on its MCP feature page: a ranked view of creative tags, labelled as sample data, with a follow-up suggestion underneath.

Prompts for a weekly creative review

These come from the Segwise setup page and work the same in Codex:

  • "Which creatives had the best ROAS in the last 30 days? Include their spend and the tags they have in common."
  • "Which creatives spent more than $5,000 last month with below-average ROAS?"
  • "Which of my top creatives are starting to decline on ROAS?"
  • "Which tags show up in my low performers and almost never in my winners?"
  • "Which creative elements have the best CTR on TikTok compared with Meta?"
  • "What creative angles appear in my tracked competitors' stored ads that are missing from my own creative mix?"
  • "Give me the five creatives I should talk about in this week's review, and why."

Prompts that use Codex's own workspace

What Codex adds is the workspace around the answer. OpenAI describes the CLI as a way to "inspect code, make changes, run commands, and automate repeatable work without leaving your terminal." So you can ask Codex to put a Segwise answer to work in your project:

  • "Compare my strongest creatives this month with my weakest. What do the winners have in common? Save the answer to reports/creative-review.md."
  • "Pull my top 10 creatives by ROAS last month with their hook and CTA tags, and write them to a CSV in data/."
  • "Summarise my saved Q3 creative report for a leadership update and draft it as a markdown file."
  • "How is my spend split across networks? Turn the answer into a short table I can paste into Slack."

Segwise answer inside Codex comparing Echo creatives by shared tags and saving the result to a file

In this example, the question asks Segwise which Echo ads lead and what they share. Segwise answers from its tags (time promise and streak hooks, the app on screen, the free week CTA), and Codex saves the result to a markdown file in the project. The offer-led static with no app screen is the weakest, which gives the next brief a clear direction. Panels like this are example data.

Tips that make answers sharper

The Segwise page lists five habits that matter just as much in Codex:

  1. Name the date range ("last 7 days" beats an open question).
  2. Use your own custom tag names if your team has them.
  3. Say which network you mean, so a blended average doesn't hide the story.
  4. Start broad, then drill into the creatives worth a closer look.
  5. Ask it to show its working: the creatives or tags behind each claim, so you can check them in Segwise.

Turn answers into next week's brief: Segwise lets you go from "what do my winners share" to new statics and videos built from those patterns with the Creative Generation Agent. Book a demo.

How does Codex differ from using ChatGPT with the Segwise plugin?

Both use the same Segwise server, the same three tools and the same sign-in; the difference is where you set it up and what you can do with the answer. In the ChatGPT web app, Segwise is a custom plugin you create under Plugins and pick with @ in a conversation. In Codex, Segwise is a server entry in your local config, and the answer can feed files and scripts in your project.

OpenAI's docs draw the line clearly: ChatGPT web "doesn't read local Codex configuration files," so a server you add in Codex won't appear in the ChatGPT web app, and the other way round. If your team uses both, set Segwise up in each.

Here is how the three clients with documented setup steps compare for creative data questions. Cursor is in the table because analysts often choose between it and Codex.

ChatGPT on the webCodex (desktop, CLI, IDE)Cursor
Where you add SegwisePlugins, plus button, Add custom MCP server, then install the pluginMCP servers in settings, codex mcp add, or config.tomlAdd to Cursor link from the Segwise page, or mcp.json
How you sign inOAuth when you install the pluginAuthenticate, or the CLI login commandOAuth from Cursor's MCP settings
How you use itSelect Segwise with @ in a conversationCodex calls it when a question needs it; /mcp lists serversCursor's agent calls it; ask it to list organizations to verify
Where the setup livesYour ChatGPT account, as a personal or workspace plugin~/.codex/config.toml, shared across the three Codex clients~/.cursor/mcp.json or a project's .cursor/mcp.json
Who it suitsMarketers who want chat answers in the browserAnalysts who want answers saved as files, scripts or recurring reportsPeople who already work in the Cursor editor

Two more details from OpenAI's ChatGPT guide: custom MCP servers in ChatGPT are added on the web, and ChatGPT treats any tool without a read-only marker as a write action that needs your confirmation. Codex has its own approval settings, covered below.

For the Claude and ChatGPT side of the Segwise MCP, including example questions by role, see the Segwise MCP guide for Claude and ChatGPT. If you're choosing between those two assistants for ad work more generally, read ChatGPT vs Claude for Meta ads.

Is Codex a good AI assistant for ad performance questions?

Codex is a good AI assistant for ad performance questions when it's connected to tagged creative data and you want the answer to end up in a file, a script or a repeatable report. Without that connection it only sees what you paste in, which is why AI tools often give weak ad advice.

A rule of thumb for picking a client

Use Codex if at least 2 of these 4 are true; otherwise start with ChatGPT on the web:

  1. Someone on the team already uses Codex every week.
  2. You want answers saved as markdown, CSV or code in a project folder.
  3. You run the same creative review every week and want to script it.
  4. You work in a terminal or an IDE more than in a browser.

This is a rule of thumb, not a benchmark. Both clients reach the same Segwise data, so the choice is about where the answer needs to go next. For a wider look at assistants and agents in this space, see AI agents for ad creative and performance marketing.

See your own creatives in Codex: Segwise lets you ask which hooks, CTAs and formats drive installs and ROAS across 15+ ad networks, then keep that answer in your own files. Book a demo.

What are the limits of the Segwise MCP in Codex?

The Segwise MCP reads your Segwise data and answers questions, but it can't change your campaigns or ad data. It exposes three tools: list_segwise_organizations and get_segwise_query read data, while start_segwise_query creates a background job and may save conversation history for follow-up questions.

Checklist of what Codex can ask the Segwise MCP and what stays in Segwise or the ad network

What it won't do

According to the Segwise setup page, the MCP can't:

  • create or edit reports and dashboards
  • change campaigns, budgets, tags, custom tags or account settings
  • generate ads, change your ad networks or push anything live (ad generation through the MCP is coming soon; today you make ads inside Segwise, where your team reviews them)
  • search the public web; competitor questions use the competitor ads already stored in Segwise, and it doesn't provide competitors' private spend or ROAS

What to expect in a session

  • Some answers take minutes. Deeper questions can take several minutes. Codex keeps checking the same job with get_segwise_query, so repeated "still running" checks are normal.
  • Tool timeouts are adjustable. Codex gives each tool call 60 seconds by default. If you see a Segwise tool call time out, raise tool_timeout_sec for the segwise entry in config.toml.
  • You control approvals. Codex lets you set default_tools_approval_mode per server (auto, prompt, writes or approve). Set it to prompt if you want Codex to ask before every Segwise call.
  • Files Codex writes are yours to protect. A CSV or report Codex saves from your ad data is ordinary project content. Keep it out of public repositories.
  • Disconnect any time. Segwise says disconnecting from your AI tool's settings revokes access immediately.

Your first Codex session with Segwise data

Connect Segwise to Codex once, in settings or with codex mcp add segwise --url https://mcp.segwise.ai/mcp, sign in with your own login, and confirm it with /mcp. Then start with the question the Segwise page suggests: your best creatives by ROAS over the last 30 days, with spend and shared tags. Once that answer looks right, ask Codex to save it as a file and rerun it each week.

Ask Codex about your own creatives
See how Segwise tags every ad and answers your performance questions inside Codex

Frequently Asked Questions

How do I connect the Segwise MCP to Codex?
Add a Streamable HTTP server named segwise with the URL https://mcp.segwise.ai/mcp. In the desktop app or IDE extension, open MCP servers in settings, choose Add server, save and restart, then select Authenticate. In the CLI, run codex mcp add segwise --url https://mcp.segwise.ai/mcp and then codex mcp login segwise. Type /mcp to check that it's connected.
Does a Segwise server added in Codex also work in ChatGPT on the web?
No. OpenAI's docs say ChatGPT on the web doesn't read local Codex configuration files. In the ChatGPT web app you add Segwise as a custom MCP plugin under Plugins, install it, sign in, and select it with @ in a conversation.
Do I need to set up Segwise separately in the Codex CLI, desktop app and IDE extension?
No. OpenAI's Codex docs say the desktop app, CLI and IDE extension share one MCP configuration, stored in ~/.codex/config.toml by default, so adding Segwise once on a machine makes it available in all three.
Can I use the Segwise MCP in Codex on a machine without a browser?
Yes. Run codex mcp login segwise --no-browser. Codex prints a sign-in link that you open in any browser, and you paste the full redirect URL back into the terminal to finish signing in with your Segwise account.
Can Codex change my campaigns or create ads through the Segwise MCP?
No. The Segwise MCP reads your Segwise data and answers questions, but it can't change campaigns, budgets, tags or settings, create or edit reports, or push anything live. Ad generation through the MCP is coming soon; today you make ads inside Segwise. Codex can still save an answer as a file in your own project.
Why does a Segwise question in Codex take a few minutes?
Each question starts a background job in Segwise, and deeper questions can take several minutes. Codex keeps checking the same job until the answer is ready. If a single tool call times out, you can raise tool_timeout_sec for the segwise server in config.toml; Codex's default is 60 seconds.
Does every person on my team need their own Segwise connection in Codex?
Yes. The MCP is available to all Segwise accounts, and each person connects their own AI tool and signs in with their own Segwise login. Segwise checks every request against that person's organization access.

Turn your creative data into your next winning ads.

Built for every kind of performance marketing and creative team.

Angad Singh

Angad Singh
Marketing and Growth

Segwise

Segwise's AI creative analytics tags and analyzes every creative you run, finds your winning creative patterns and helps you turn them into on-brand statics, videos and playables.

ESC
Type to search...
↑↓ Navigate↵ Openesc Close