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:
/mcplists 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.

Connect in the desktop app or IDE extension
- Open Settings in the desktop app, or the gear menu in the IDE extension, and select MCP servers.
- Select Add server.
- Name it
segwise, choose Streamable HTTP, and enterhttps://mcp.segwise.ai/mcp. - Save, then restart the app or the extension when prompted.
- 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.

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."

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:
- Name the date range ("last 7 days" beats an open question).
- Use your own custom tag names if your team has them.
- Say which network you mean, so a blended average doesn't hide the story.
- Start broad, then drill into the creatives worth a closer look.
- 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 web | Codex (desktop, CLI, IDE) | Cursor | |
|---|---|---|---|
| Where you add Segwise | Plugins, plus button, Add custom MCP server, then install the plugin | MCP servers in settings, codex mcp add, or config.toml | Add to Cursor link from the Segwise page, or mcp.json |
| How you sign in | OAuth when you install the plugin | Authenticate, or the CLI login command | OAuth from Cursor's MCP settings |
| How you use it | Select Segwise with @ in a conversation | Codex calls it when a question needs it; /mcp lists servers | Cursor's agent calls it; ask it to list organizations to verify |
| Where the setup lives | Your 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 suits | Marketers who want chat answers in the browser | Analysts who want answers saved as files, scripts or recurring reports | People 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:
- Someone on the team already uses Codex every week.
- You want answers saved as markdown, CSV or code in a project folder.
- You run the same creative review every week and want to script it.
- 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.

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_secfor thesegwiseentry inconfig.toml. - You control approvals. Codex lets you set
default_tools_approval_modeper server (auto,prompt,writesorapprove). Set it topromptif 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.
