NotFairNotFair
Start now

Setup guide · OpenAI Codex CLI

Google Analytics Codex MCP

Add NotFair's Google AnalyticsMCP to OpenAI's Codex CLI in under a minute. One terminal command wires up GA4 access.

Free · No credit card · 1-minute setup

How to install

Add NotFair Google Analytics to Codex in 3 steps

1

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.

2

Add the NotFair MCP

Run this one-liner. Codex will walk you through the OAuth flow and register the NotFair MCP server automatically.

codex mcp add NotFair-GoogleAnalytics --url https://notfair.co/api/mcp/notfair
3

Ask Codex about your ads

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 wire up Codex for Google Analytics?

NotFair hosts Google OAuth for GA4. You authorize properties without creating a Cloud project for the MCP client. Then run the one-liner in your terminal.

FAQ — NotFair Google Analytics for Codex

Installing and using the NotFair Google Analytics MCP inside OpenAI's Codex CLI.

It's an MCP integration for OpenAI's Codex CLI. 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.

Under a minute. Run a single `codex mcp add NotFair-GoogleAnalytics --url https://notfair.co/api/mcp/notfair` command in your terminal — Codex walks you through the OAuth flow and registers the MCP automatically.

No. One terminal command sets everything up. There are no JSON config edits, no environment variables, and no scripts to run.

Reporting is read-only. createKeyEvent and deleteKeyEvent are inverses. archiveCustomDimension is irreversible and cannot reuse parameterName. Writes wait for approval. runScript never wraps mutations.