Setup guide · OpenAI Codex
Google Analytics Codex MCP
Install NotFair Ads in Codex and connect Google Analytics in your NotFair workspace. For terminal workflows, use the CLI add and login commands below to connect the same hosted MCP.
Free · No credit card · Plugin or CLI setup
How to install
Add NotFair Google Analytics to Codex in 3 steps
Install NotFair Ads
Open the NotFair Ads plugin page and select Install plugin. Follow the connection prompts in ChatGPT or Codex.
Open NotFair AdsUse Codex CLI instead
Install the Codex CLI
Open a terminal and install OpenAI Codex if you do not have it already. Follow the official install guide for your platform.
Add the NotFair MCP
Run both commands below. The first registers the server; the second starts OAuth. Sign in to NotFair and choose your workspace in the browser.
codex mcp add NotFair-GoogleAnalytics --url https://notfair.co/api/mcp/notfaircodex mcp login NotFair-GoogleAnalyticsAsk Codex about your connected platforms
Try a prompt like:
“Run a last-28-days report of sessions and conversions by sessionDefaultChannelGroup. Do not archive a custom dimension until I approve.”
Codex will call NotFair tools to read your account and respond with specific, data-backed insights.
Ready to connect Codex for Google Analytics?
NotFair hosts Google OAuth for GA4. You authorize properties without creating a Cloud project for the MCP client. Then install NotFair Ads in Codex or use the CLI add and login commands below.
FAQ — NotFair Google Analytics for Codex
Installing and using the NotFair Google Analytics MCP inside OpenAI's Codex CLI.
NotFair Ads connects ChatGPT and Codex to your NotFair workspace. Manual CLI MCP setup is also available. Once added, Codex can use NotFair's 12 Google Analytics tools against live GA4 data. Reporting is read-only. createKeyEvent and deleteKeyEvent are inverses. archiveCustomDimension is irreversible and cannot reuse parameterName. Writes wait for approval. runScript never wraps mutations.
Same backend, different client. The Codex CLI calls the NotFair MCP server using OpenAI's MCP support. Claude's connector and Claude Code call the same server from Anthropic's clients. Capabilities are identical.
For manual Codex CLI setup, run `codex mcp add NotFair-GoogleAnalytics --url https://notfair.co/api/mcp/notfair` in your terminal, then run `codex mcp login NotFair-GoogleAnalytics` to sign in to NotFair and choose your workspace.
No. Install the NotFair Ads plugin in Codex, or use the CLI add and login commands below. You do not need custom scripts or API credentials.
Reporting is read-only. createKeyEvent and deleteKeyEvent are inverses. archiveCustomDimension is irreversible and cannot reuse parameterName. Writes wait for approval. runScript never wraps mutations.
Related guides
Keep evaluating the same connection.
Google Analytics Codex landing
Product overview for Codex + Google Analytics, including the counted tool surface.
Google Analytics Claude landing
Same hosted MCP endpoint on Claude's first-class landing.
Google Analytics MCP
Reporting is read-only. createKeyEvent and deleteKeyEvent are inverses. archiveCustomDimension is irreversible and cannot reuse parameterName. Writes wait for approval. runScript never wraps mutations.