Building a Full SEO Research Pipeline with Codex
Codex CLI stays in the terminal and focuses on code, but SEO-related development often requires actual search data to work with. AgentPatch gives Codex access to Google Search, Trends, and News so it can run a full keyword research pass without leaving the session.
Why This Matters
If you’re building content tools, a keyword tracker, or anything that needs to model search behavior, you need to work with real data. Mocked keyword results don’t reflect the actual distribution of competition levels, trend shapes, or news volume.
With AgentPatch connected, Codex can run the research itself. You describe what you need, it queries the relevant tools, and you get findings you can actually use in the code you’re writing.
Setup
Add AgentPatch to ~/.codex/config.toml:
[mcp_servers.agentpatch]
url = "https://agentpatch.ai/mcp"
bearer_token_env_var = "AGENTPATCH_API_KEY"
Then set your API key:
export AGENTPATCH_API_KEY=your_api_key
Replace your_api_key with your actual key from the AgentPatch dashboard. Codex discovers all AgentPatch tools automatically on next start.
Example
You’re building a keyword difficulty scorer and need to understand what “high competition” actually looks like in the data. You ask Codex:
“Research the keyword ‘project management software’ across search, trends, and news. I need to calibrate the difficulty metric.”
Codex runs the full pipeline:
Searching Google for "project management software"...
Checking Google Trends for "project management software"...
Searching Google News for "project management software"...
Search: Heavy commercial intent. First page is entirely branded results —
Asana, Monday.com, Jira, ClickUp, Notion. No informational content ranks
on page 1. Estimated domain authority of top results: 70+.
Trends: Flat trend over 24 months with slight seasonal dips in December.
Related queries: "project management software for small teams" (+45% trending),
"free project management software" (stable), "Jira alternative" (+28%).
News: Category announcement-heavy. Enterprise deals and funding rounds dominate.
No breakout editorial coverage in the last 30 days.
For calibration: this keyword should score near the top of your difficulty scale.
High DA competitors, zero informational ranking opportunities, flat trend.
Here's how I'd adjust the scoring weights in difficulty.ts...
Codex ran the research and connected it directly to the calibration problem. That’s the workflow: ask the question, get findings, continue coding.
Wrapping Up
Connecting AgentPatch to Codex gives it a full SEO research capability through Google Search, Trends, and News. Those are three tools on the marketplace — the same config also unlocks Maps, email, image generation, and more. See what’s available at agentpatch.ai.