Download the template
Steps
Install the SEO skills in your project
Open the Codex project for the site you want to check. Clone our public repository or download and unzip the skills package. Copy the folders from its skills/ directory into .agents/skills/ in your project. Keep each folder intact, including its supporting files. For example, your onboarding file should be at .agents/skills/seo-tools-for-agents/SKILL.md. Start a new chat in that project, type $ in the message box and select seo-tools-for-agents. Check that the other skills from the package appear in the selector. The optional starter plugin offers a quick way to install the onboarding skill and public directory connection.
Add the public SEO Tools for Agents directory
The public directory gives Codex playbooks and workflows. It works without a Google account. Skip the add command if you already installed the starter plugin or configured the directory. After adding it, open a new chat in the same Codex client. Ask Codex to find and open the indexing triage playbook using the directory. A successful fetch confirms the connection. The server list only confirms that the entry is configured. If the fetch fails, give Codex the Markdown link and continue.
Add the directory and list configured serverscodex mcp add seo-tools-for-agents --url https://seotoolsforagents.com/mcp codex mcp listCheck for working Google connections before installing anything
In the same Codex project, ask Codex to use any existing read-only Google tools to find your exact Search Console property and read the name and time zone for your GA4 property. If both reads succeed, go straight to the first SEO check. If one succeeds, set up only the other. For a local install, run uvx --version in the terminal and gcloud --version if you need GA4. If either command is missing, install it from the links below and reopen the terminal. If the command works there but the Codex desktop app cannot start it, use the executable’s absolute path in your MCP configuration. You can use the replay pack or let Codex check the public page while you wait for Google access.
Explore hosted Google setup and the free review Install uv, which includes uvx Install the Google Cloud CLI Download the SEO and AEO replay packConnect Google Search Console with read-only access
Start by opening the intended property in Search Console using the Google account you want Codex to use. If a read-only connector is already available, reuse it and verify one property read. For a local install, enable the Search Console API in your Google Cloud project, create a Desktop OAuth client, and add yourself as a test user if the consent screen is in testing. Save the downloaded client JSON outside the project. The command uses the community mcp-gsc connector and the version documented in our server guide. Replace the path with your absolute file path. Leave GSC_ALLOW_DESTRUCTIVE unset and review the consent screen for read-only access. If uvx is missing from PATH, provide its absolute path. In a new Codex chat, ask it to inspect the connector capabilities and list the authorized properties. Check the exact key: a domain property uses sc-domain:example.com, and a URL-prefix property includes its scheme and exact prefix.
Add the local Search Console connectorcodex mcp add gsc --env "GSC_OAUTH_CLIENT_SECRETS_FILE=/absolute/path/client_secret.json" -- uvx mcp-search-console@0.4.2 codex mcp listConnect GA4 and match the property and reporting time zone
Use the GA4 property receiving visits from this website. Find its numeric ID under Admin → Property details. If the connection check already returned the right property, continue to the SEO check. For Google’s local Analytics MCP, enable the Analytics Admin and Data APIs in your Google Cloud project. Sign in with a Google identity that has GA4 property access and create Application Default Credentials (ADC) with the Analytics read-only scope. This login is separate from Search Console setup. Copy the absolute credentials path printed by gcloud and keep that file outside your project. If your account needs a custom OAuth client file or a quota project, follow Google’s linked instructions. Replace both placeholders in the connector command, open a new Codex chat, and ask it to read the property's name and time zone before running a report.
Enable GA4 APIs and sign in with ADCgcloud services enable analyticsadmin.googleapis.com analyticsdata.googleapis.com --project=YOUR_PROJECT_ID gcloud auth application-default login --scopes="https://www.googleapis.com/auth/analytics.readonly,https://www.googleapis.com/auth/cloud-platform"Add the GA4 connector in Codexcodex mcp add google-analytics --env "GOOGLE_APPLICATION_CREDENTIALS=/absolute/path/application_default_credentials.json" --env "GOOGLE_CLOUD_PROJECT=YOUR_PROJECT_ID" -- uvx --from analytics-mcp google-analytics-mcp codex mcp listRun your first SEO check on one page
Pick an exact URL you care about, such as the page that sells your main service. Ask Codex to inspect it in Search Console and log the recorded index status and Google-selected canonical when available. Then use the same property for a Web Search Performance report with an exact page filter and a completed date range ending several days ago. Compare one row or total in the Google interface using the same dates, URL scope, and filters. We ran both reads for the SEO Tools for Agents homepage. Google reported Submitted and indexed. Our November 1–30 Performance query for that exact URL returned two impressions and zero clicks. Indexing and search activity answer separate questions, so the next job was understanding what the page was appearing for. If no connected Google connector is available, run a public page check and use an authorized Performance export or an inspection from the site owner.

Search Console on our own site. Recreated from the live connector responses. Verify an organic landing-page report in GA4
Run a GA4 report with landingPage and sessions, filtered to Organic Search on sessionDefaultChannelGroup. Sort by sessions and return up to three rows. Use a completed period when GA4 was already collecting data. Use the Search Console dates when both properties have data for that period. Compare a returned row or total in Analytics with the same dates, dimension and filter. Search Console clicks measure activity in Google search. GA4 sessions use the property’s time zone and depend on tag coverage, consent and channel rules. In our clean-project test, GA4 answered successfully with zero November rows because the property was created on December 2. An empty report can confirm access. Check the property start date and try an unfiltered report for a completed period before drawing traffic conclusions. The worked example shows what a populated report looks like.

GA4 practice report. The sample shows three returned rows and 21 matching rows. Run your first AEO check on one customer question
Pick one discovery question a real customer asks without naming your business. A roofer might try “Which roofers repair leaking flat roofs in Austin?” Run just that question in a separate new chat on an answer surface you can use, such as ChatGPT Search or Codex with live web search. Keep the brand, domain and project instructions out of the sampling chat. Copy the answer and its source links back into the project chat. Ask Codex to record the question, surface, date, market, brand mention, and any clickable citation to your site. Compare one cited page with a relevant page on your site, then save one improvement and the exact question to rerun. In our clean-project test, one unbranded Codex live-search answer named and cited other options. We recorded the result for that question and surface.
Fix setup problems and repeat the checks that matter
If a skill is missing, check its full path and open a new chat in the same project folder. Restart Codex if the list still shows an older install. If a configured server has no tools, check the executable path and open a new chat in the client that owns that connection. If a Google read fails, verify the signed-in account, API enablement, property access and credential file for that connector. For an empty report, check when the property began collecting data and test the date range and filter separately. Use the replay pack or an authorized export while you resolve the connection. Save one verified result before scheduling recurring checks.
Check your setup with a three-part evidence handoff
Use the replay pack to practice without connecting accounts. The included results distinguish data Google actually returns from a fictional AI answer used to practice recording mentions and sources.
| Check | What to capture | Next action |
|---|---|---|
| Search Console | Exact URL, index status, date range, clicks and impressions | Match the exact URL and verify one row or total in the Google interface |
| GA4 | Property, time zone, filter, sessions and returned row count | Match one Organic Search landing page in GA4 |
| AEO | Exact question, surface, date, brand mention and cited URL | Inspect one cited page and save the unchanged question for a repeat run |
Prompt for your agent
Set up SEO Tools for Agents in my current Codex project for [site]. Check which skills from the SEO Tools for Agents package are available in this project. Help me install the downloadable skills if needed. Discover existing SEO Tools for Agents, Search Console and Analytics connections and reuse authorized read-only tools. Verify the exact Search Console property and GA4 property before querying. Check my priority URL in Search Console, report finalized Web clicks and impressions for a completed window, and run an Organic Search landing-page report only if GA4 access is verified. For AEO, give me one unbranded customer question to run in a separate chat and use the dated answer and source URLs I bring back. Return separate evidence for each check, one next step, and any missing access. Ask before editing, buying data, or scheduling anything.
