Codex MCP Servers for SEO: What to Add When You Run More Than One Site
Codex can read and change a site's code, but it can't see a ranking, a click or a crawl error until an MCP server gives it one. This guide covers how Codex loads MCP servers, which ones are worth adding for SEO, and how to run the same checks across every site you manage (a Search Console read is 1¢ per 100 rows).
On this page· 8 sections
Codex is good at the part of SEO that lives in a repository: templates, metadata, redirects, structured data, a thousand pages changed in one reviewed commit. What it can't do on its own is measure. It doesn't know which pages lost clicks, what Google has indexed or what a crawl would find. An MCP server gives it tools for that, and for anyone who looks after more than one site, the useful part is that a single prompt can run the same check on all of them.
This guide covers how Codex loads MCP servers, which ones are worth adding for SEO work, and how to set things up so the work scales past one site. We make AuditAE, one of the servers below, so weigh that as you read; the setup steps are the same for any server.
How Codex loads MCP servers
Codex keeps its MCP servers in ~/.codex/config.toml. The CLI, the IDE extension and the desktop app read the same file, so you set a server up once.
From the terminal. A remote server takes a URL:
codex mcp add auditae --url "https://auditae.app/api/mcp"
A server that runs on your machine takes the command that starts it, after --:
codex mcp add my-server -- npx -y some-mcp-package
In the file. Each server is one block. The key is mcp_servers, with an underscore:
[mcp_servers.auditae]
url = "https://auditae.app/api/mcp"
tool_timeout_sec = 300
A local server uses command and args in place of url, and env for any variables it needs.
Three details save time:
- Sign-in. A server that uses OAuth opens your browser the first time. If it doesn't,
codex mcp login <name>starts it. A server that takes an API key reads it from the environment variable you name inbearer_token_env_var, so the key never sits in the file. - Timeouts. Codex stops a tool call after 60 seconds by default. SEO tools often run longer: a crawl, a check across four AI engines, a large report. Set
tool_timeout_sec = 300on those servers. - Per-project servers. A repository can carry its own
.codex/config.toml. Codex loads it only for projects you've marked as trusted.
The servers worth adding for SEO
No single server does everything. Most setups end up with one from each row that matters to them.
| Job | Servers | Runs where | Cost to start |
|---|---|---|---|
| Your own search and traffic data | Community Search Console servers, Google's Analytics server, AuditAE | Your machine, or hosted (AuditAE) | Free, or 1¢ per 100 rows |
| Keywords, search results, backlinks | DataForSEO, SE Ranking, Semrush, Ahrefs, AuditAE | Hosted | From a $50 top-up or a monthly plan; AuditAE per call |
| Crawling | Screaming Frog, AuditAE | Your computer, or hosted (AuditAE) | A licence, or 1¢ per 10 pages |
| Editing the site | Codex itself for sites in a repository; a WordPress MCP server for WordPress | Your machine or hosted | Free, or per write |
| Whether AI answers cite the site | AuditAE | Hosted | First audit free |
The best MCP servers for SEO covers each vendor's server and pricing in detail. Two notes for Codex users:
- A vendor that publishes a remote URL can usually be added to Codex with the same
--urlline, even when its setup guide only shows Claude or ChatGPT. - Self-hosted Google servers need a Google Cloud project and credentials on every machine that runs Codex. That is fine on one laptop and a chore across a team.
Setting up for more than one site
With one site, almost any setup works. With ten or thirty, three things start to matter.
One sign-in for every site. If each client needs its own server block, its own credentials and its own restart, nobody keeps it up. Look for a server that holds all your sites behind one connection. On AuditAE a workspace holds as many sites as you add. You sign in with Google once, and each site you add is linked to its matching Search Console property. Adding a site is free:
Add these sites to AuditAE: clientone.com, clienttwo.com, clientthree.com.
Codex calls add_site for each. list_sites then returns every site with its id, its Search Console and Analytics status, and its latest audit.
Tools that take a site, not a setup. Every site tool accepts a site_id or a domain. That is what lets one prompt walk the whole list.
Costs that follow the work. Per-seat and per-site plans charge for the quiet clients too. Paying per call means a site you check once a month costs pennies that month.
Prompts that work across every site
Each of these names the tool Codex calls, so you can check what it did.
Find the sites that need attention this week
For every site in my AuditAE workspace, compare clicks for the last 28 days with the 28 days before. List the five sites that lost the most, with the pages behind each loss.
Codex calls list_sites, then query_search_console with a comparison period once per site (1¢ per 100 rows (1¢ minimum per call)). Across 30 sites that is about 30¢. Follow up on the losers only.
Triage one site
What should I work on first for clientone.com?
find_search_opportunities (15¢) reads the site's Search Console data once and returns a ranked list: pages losing clicks, queries just off page one, pages that rank with few clicks, and queries split between two pages.
Check that new pages are indexed
Inspect these URLs on clienttwo.com and tell me which are not indexed, and why.
inspect_url takes a list of URLs and costs 1¢ each. It returns Google's index status, the canonical Google chose and any rich-result problems.
Crawl on a schedule
Crawl clientthree.com now, then schedule the same crawl weekly.
crawl_site (1¢ per 10 pages) returns every failing check with the pages behind it, and compare_crawls shows what changed since the last one. schedule_crawl repeats it weekly or monthly and emails you what changed. For a single page, run_technical_audit is free for 3 pages a day, then 2¢ a page.
See whether AI answers name the client
For clientone.com, check these five buyer questions on ChatGPT, Perplexity, Gemini and Google AI Overviews. Who gets cited instead?
get_share_of_voice runs each question on each engine: 33¢ a question across the four, plus the fix-it playbook for the answers that left the client out. Pass dry_run: true first to see the price before anything is billed.
Fix what the data found
This is where Codex is ahead of a chat window. For a site in a repository, it can make the change itself: add the missing canonical tags, rewrite the titles the report flagged, write the redirect map. For a WordPress site paired with the free AuditAE plugin, the wp_* tools apply edits at 5¢ each, and every change is logged with the previous version.
Keeping an agent's spending in check
An agent in a loop can make a lot of calls. Four habits keep that safe:
- Ask for the price first. Each AuditAE tool states its price, and paid results return what was charged. Tell Codex to quote the total for a loop before it starts.
- Use the free reads.
list_sites,get_audit,get_latest_crawlandget_changescost nothing. Errors are never billed, and the same Search Console report again within ten minutes is free. - Cap rows. Search Console reports bill by rows returned. Ask for the top 25 unless you need more.
- Work from a prepaid balance. Unless you turn on auto-refill, paid calls stop when the balance runs out and start again when you top up.
A note on team workspaces
Signing in from Codex connects your personal AuditAE workspace. If your sites live in a team workspace, create an API key in that workspace and use key mode: codex mcp add auditae --url "https://auditae.app/api/mcp" --bearer-token-env-var AUDITAE_API_KEY. MCP setup has the full steps for every client.
Where to go next
The SEO MCP page lists every tool with its price. AuditAE MCP server covers citation audits in more depth. AuditAE for agencies covers client reports and the client portal. If you use Claude as well, Claude for SEO covers the same ground for Claude and Claude Code. A new account needs no card, and the first audit is free.
FAQ
Two ways. Run codex mcp add <name> --url "<server url>" for a remote server, or codex mcp add <name> -- <command> for one that runs on your machine. Or open ~/.codex/config.toml and add a [mcp_servers.<name>] block with url (remote) or command and args (local). Both write the same file.
Yes. A server block with a url key connects over streamable HTTP. Servers that use OAuth open a browser sign-in (codex mcp login <name> starts it by hand), and servers that take a key read it from an environment variable named in bearer_token_env_var.
Codex stops a tool call after 60 seconds unless the server's block sets tool_timeout_sec. Site crawls, multi-engine citation checks and large reports run longer than that. Set tool_timeout_sec = 300 on SEO servers.
It depends on the server. Self-hosted Search Console servers reach every property the Google account or service account can see. On AuditAE, one workspace holds every site you add, one Google sign-in links each site's Search Console property, and every tool takes a site_id or domain, so a prompt can loop over the whole list.
Your Codex plan is separate. On AuditAE, adding sites is free, a Search Console or Analytics report is 1¢ per 100 rows (1¢ minimum per call), URL inspection is 1¢ a URL, and a full crawl is 1¢ per 10 pages. One click-comparison report per site across 30 sites is about 30¢. There is no subscription and no per-site or per-seat fee.
Yes. The CLI, the IDE extension and the desktop app all read ~/.codex/config.toml, so a server added in one shows up in the others. A project can also carry its own .codex/config.toml, which Codex loads only for projects you have marked as trusted.
Run the citation report on your own brand.
See which prompts cite you on ChatGPT, Perplexity, Gemini and Google AI Overviews. The first audit is free, no card.
Aaron is the founder of AuditAE. He has run AI-visibility audits for SEO agencies and in-house brand teams, and writes about how generative answer engines are reshaping the practice of search marketing.
Related reading
- 7 min readSemrush MCP vs Ahrefs MCP vs AuditAE: What Each Does and Costs When You Run Many SitesSemrush and Ahrefs put their keyword and backlink databases inside Claude, ChatGPT or Codex, paid for with a monthly plan and a pool of units. AuditAE works on your own sites' data and bills per call (a Search Console report is 1¢ per 100 rows). This guide compares what each server can see, how each one charges, and which to connect if you look after ten or thirty sites.
- 8 min readClaude for SEO: What It Does Well, Where It Guesses, and How to Give It Your Real DataClaude is good at the writing and reasoning half of SEO and blind to the measuring half: on its own it can't see your rankings, your clicks or your crawl errors. This guide covers what to hand it as-is, where its answers are guesses, the three ways to give it real data, and five jobs worth running once it has Search Console (1¢ per 100 rows).
- 15 min readHow to Optimize Images for the Web and WordPressTo optimize images for the web, resize each image to the size it's shown at, compress it without visible loss and pick the right format. This guide has real before/after numbers from our own blog, the best image size for each slot on a page, what PageSpeed's image warnings mean, and how to compress a WordPress Media Library in place, by hand or with an AI agent.