Agent setup

Connect DuckDive to OpenAI Codex and ask about traffic from your repo

Codex is a coding agent that supports MCP servers. Add DuckDive's MCP URL as a remote server, sign in with Google, and the agent can read your GA4 and Search Console data while it works on your code.

Continue with Google

Free for 2 sites · No credit card

Or have your agent set it up

Set up DuckDive for my website. Follow https://analytics.duckdive.ai/agents.md

Updated 8 min read

The short answer

Codex supports MCP servers, so you add DuckDive as a remote MCP server using the URL below and sign in with Google if it asks. This page does not give exact Codex config syntax, because it has not been checked against the current Codex docs. Use Codex's own MCP documentation for the exact form and the connector docs for the URL.

  • The remote MCP URL is https://api.duckdive.ai/mcp.
  • Follow Codex's own MCP docs for where and how to add a server.
  • If Codex asks you to sign in, continue with Google on the DuckDive page.

Set up DuckDive in OpenAI Codex

You do not need a DuckDive account first. Connecting opens a DuckDive page, and Continue with Google creates your account. DuckDive is free for 2 sites.

  1. Open the place where Codex adds MCP servers

    Check Codex's own documentation for how it adds an MCP server. This page does not guess at file names or flags.

  2. Add DuckDive as a remote MCP server

    Use the address below as the server URL. DuckDive is a remote server over HTTP, not a local program to install.

    https://api.duckdive.ai/mcp
  3. Sign in if asked

    If Codex starts a sign-in, a DuckDive page opens. Continue with Google. New users get an account from that one click.

  4. Check the connection

    Ask Codex which DuckDive websites it can see. If it lists your sites, you are connected.

  5. Compare with the connector docs

    The connector docs list the setup for every app, plus the "any app with remote MCP" route that applies to Codex.

Exact syntax not covered

DuckDive has not published a verified Codex command or config snippet. Rather than guess, this page only gives you the URL and the general route for apps that support remote MCP servers. Menu names and config formats change, so rely on the Codex docs for those.

Already have DuckDive and want your agent to do the rest? Paste the setup prompt into it and it adds your site and links your Google data. The walkthrough of agent self-setup shows each step.

Paste into your agent
Set up DuckDive for my website. Follow https://analytics.duckdive.ai/agents.md

Ask your agent: four first questions

Each prompt below names the DuckDive tools OpenAI Codex should call, so you can check it is reading your data and not guessing. Data tools use fixed windows of 7, 14, 30 and 90 days, 6 months and 12 months.

Ask your agent
Which websites can you see in DuckDive? For each one, tell me whether Google Analytics 4 and Search Console have finished importing.

Tools it calls list_websites get_sync_status

Ask your agent
How did organic traffic to my site change over the last 30 days compared with the 30 days before? Break it down by channel.

Tools it calls list_websites get_ga4_channels

Ask your agent
What are my top Google search queries over the last 90 days, and which pages earn the most clicks?

Tools it calls get_search_console_keywords get_search_console_pages

Ask your agent
Compare the landing pages DuckDive lists for my site over the last 90 days with the routes in this repo, and list routes that got no sessions.

Tools it calls list_websites get_ga4_landing_pages

Permissions: read-only or allow actions

DuckDive shows a permission page when you connect. The choice is yours.

  • Read-only. Leave actions off. The agent can list your websites, check import status and read GA4, Search Console, Google Ads, Local Services Ads, Yext and Local Falcon summaries. Anyone who is not an admin gets this by default.
  • Allow actions. Admin accounts can also let the agent add a website, connect its sources, queue a data refresh (at most once per website every 15 minutes) and create a scheduled report. Reports are always emailed to your own account address.
  • What it can never do. Delete data, connect or disconnect your Google account, or send email to anyone but you.

The agent sees only the websites your DuckDive account can already see, with your role's permissions. Sign-in uses OAuth, so OpenAI Codex receives a DuckDive access token and never your password. Disconnect any time in DuckDive under AI Connectors.

Troubleshooting

  • Codex does not list DuckDive tools: confirm the server URL is exactly the one above and that you finished the Google sign-in.
  • Sign-in loops or fails: sign in to DuckDive in the same browser first, then connect again.
  • No websites found: ask Codex to help you set up DuckDive, or add a website after signing in to DuckDive.
  • Unsure about syntax: see the connector docs and Codex's own MCP documentation.

Still stuck? See the connector docs for every app's steps.

What to expect: limits

  • History. DuckDive holds the last 12 months of data at most.
  • Fixed ranges. 7, 14, 30 and 90 days, 6 months and 12 months. No custom dates.
  • Imported data. Answers come from data DuckDive has imported. Ask for the data sync status if numbers look old or empty.
  • Row limits. Landing page results top out at 100 pages ranked by sessions, so a missing page had fewer sessions than the last one listed.
  • Read, not edit. DuckDive does not change GA4 settings, add tracking or edit your ads.

Questions about OpenAI Codex and DuckDive

How do I add DuckDive to Codex?

Add the MCP URL as a remote MCP server in Codex, then sign in with Google if it asks. The exact config syntax is in Codex's own docs; this page does not invent flags.

Does DuckDive see my code?

No. DuckDive only answers the tool calls the agent makes, such as a request for landing pages. Reading files in your repo happens in Codex.

Can Codex change anything in my DuckDive account?

Reading is always available. Actions need an admin account and your approval when you connect. It cannot delete data or email anyone but you.

What does it cost?

DuckDive is free for 2 sites. Check what your Codex plan includes separately.

Is there an install link?

Not for Codex. Use the MCP URL and the general route on the connector docs page.

Give your coding agent real traffic data

Sign in with Google, add your site, and add the MCP URL to Codex.

Continue with Google

Free for 2 sites · No credit card

Last reviewed . OpenAI and Codex are named to describe compatibility only; this page is not endorsed by OpenAI.

Give your coding agent real traffic data

Sign in with Google, add your site, and add the MCP URL to Codex.

Free for 2 sites · No credit card · Working in an agent? Let it set DuckDive up