codex-seo
Provides SEO audits, crawling, performance analysis, and deployment management for web projects via a stdio MCP server.
README
Codex SEO
Codex SEO also ships a local project ecosystem: an idempotent initializer, stdio MCP server, local Git safety workflow, managed previews, controlled deployment adapters, and the generic seo-maintainer Codex plugin skill.
Ecosystem Quick Start
cd my-project
npx codex-seo init --yes
Then ask Codex: "Audit this project and fix the most important SEO issues." See Local ecosystem, MCP, Git, preview, deployment, and security for the complete installation and operations guide.
Native Codex SEO CLI and Agent Skills for technical SEO audits, sitewide crawling, performance, Google Search Console, baselines, diffs, historical trends, and CI quality gates.
Features
- Page and sitewide SEO audits with JSON, HTML, and PDF reports.
- Baselines, diffs, quality gates, and historical trend analysis.
- Lighthouse, Playwright fallback, PageSpeed Insights, CrUX, GSC, and URL Inspection support.
- CI exports: JSON, Markdown, GitHub annotations, and JUnit.
- Codex Agent Skills for setup, audits, CI, migrations, and release checks.
Installation
npm install -D codex-seo
npx codex-seo --version
Global install:
npm install -g codex-seo
codex-seo doctor
Quick Start
npx codex-seo init --minimal
npx codex-seo audit https://example.com --crawl
npx codex-seo doctor
For performance/PDF support:
npx playwright install chromium
Examples
npx codex-seo audit https://example.com --crawl --performance
npx codex-seo audit https://example.com --crawl --gsc --gsc-property sc-domain:example.com
npx codex-seo diff previous.json current.json --fail-on-regression
npx codex-seo history trend --last 12
npx codex-seo history export-ci --format junit
npm run audit -- https://example.com --crawl remains supported for repository development. For normal use, prefer npx codex-seo ...; npm 11 may print its own Unknown env config warnings for flags passed after npm run.
Configuration
Create codex-seo.config.json with codex-seo init. Validate with:
npx codex-seo validate --config codex-seo.config.json
npx codex-seo validate --fix
See docs/configuration.md and examples/config/.
Local/private network audits are blocked by default as SSRF protection. To audit an explicit development target, opt in deliberately:
node dist/cli/index.js audit http://127.0.0.1:3000 --allow-private-network --crawl
--allow-localhost is an alias. The opt-in keeps protocol, credential, and redirect validation active while allowing localhost, loopback, and private network addresses for the audited run.
Crawler
The crawler respects robots by default, normalizes URLs, limits depth/pages/concurrency, expands sitemaps, and avoids common crawl traps.
Performance
Local Lighthouse is preferred; Playwright fallback is clearly labeled. PageSpeed and CrUX are optional remote adapters. See docs/performance.md.
Google Search Console
GSC is optional and never serializes credentials. Store secrets in environment variables or GitHub Secrets. See docs/gsc.md.
Baseline And Diff
Use named baselines for release comparisons and diff for report-to-report gates. See docs/baselines-and-diff.md.
History And Trends
History uses schema 1.0.0 with checksummed HistoryEntry files. Trend reports include deterministic statistics, confidence, recurrent regressions, release comparisons, and environment comparisons.
Quality Gates
Exit codes: 0 success, 1 runtime/config/file error, 2 quality gate failure, 3 strict compatibility failure.
GitHub Actions
Use .github/workflows/codex-seo.yml, examples/github-actions/, or .github/actions/codex-seo/action.yml. See docs/github-actions.md.
Privacy And Security
No automatic telemetry. Redaction covers bearer tokens, API keys, private keys, client secrets, URL credentials, and sensitive query parameters. See SECURITY.md and docs/privacy-and-security.md.
Report Formats
Reports are deterministic JSON plus autonomous HTML/PDF. CI exports support JSON, Markdown, GitHub workflow commands, and JUnit XML.
Troubleshooting
Run npx codex-seo doctor --json. Missing Chromium is fixed with npx playwright install chromium.
Limitations
Release impact remains observational without deployment metadata. Optional remote adapters depend on provider availability and quotas.
Architecture
See docs/architecture.md.
Contribution
See CONTRIBUTING.md.
License
MIT.
Codex project workflow (1.1.1)
Install and initialize once:
npm install --save-dev codex-seo
npx codex-seo init --yes
The project-scoped MCP then provides configured quick/standard/full audits, controlled Git edits, validation, preview, Lighthouse/GSC integration, persistent workflow state, release staging, SSH/SFTP deployment, health checks, production regression evaluation, and rollback. Production activation requires explicit confirmation by default.
Configure a generic remote target without storing secrets:
npx codex-seo configure deployment --provider ssh --host-env DEPLOY_HOST --user-env DEPLOY_USER --path-env DEPLOY_PATH --artifact-path dist --auth agent
Strict host verification requires a SHA256 fingerprint or ignored known_hosts file. See docs/ssh-sftp.md and docs/hostinger.md. Diagnose with npx codex-seo plugin doctor and update managed project plugin files non-destructively with npx codex-seo plugin update.
In Codex, ask: "Analyze this project, correct important SEO problems, validate the changes, and prepare deployment."
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。