Seonix SEO
FreeNot checkedLets any AI agent audit any website for SEO, GEO/AEO, and speed problems, reporting issues and recommendations without modifying the site.
About
Lets any AI agent audit any website for SEO, GEO/AEO, and speed problems, reporting issues and recommendations without modifying the site.
README
A free, open-source MCP server that lets any AI agent audit ANY website for SEO, GEO/AEO, and speed problems — and tell you how it should be.
Point Claude Desktop, Cursor, Cline, or any other MCP client at this server and ask it to "audit https://example.com and tell me the top SEO and speed problems with how to fix each." The agent crawls the site, runs the checks, and relays a plain-language report: what's wrong, why it matters, and the target state for each issue.
- Platform-agnostic — works on any site: WordPress, Shopify, custom, static, anything reachable over HTTP. No CMS assumptions.
- Read-only — it reports, it does not fix. The audit never modifies your site. It shows problems and gives CMS-neutral recommendations ("the page should have a unique
<title>of 30–60 chars that includes the primary keyword"). Whether and how to fix is your decision. - Safe-fix advisor — beyond reporting, it can propose a concrete minimal fix per issue and dry-run it against the page (a structural regression gate) so you see exactly what would change — still without writing anything.
- Three pillars in one pass — SEO, GEO/AEO (AI-search visibility), and speed (Core Web Vitals + performance).
- AI-agnostic — works with any MCP client. No vendor lock-in.
- Free & open-source — MIT licensed.
- Dependency-light — TypeScript, the official
@modelcontextprotocol/sdk, and Node's built-infetch. One runtime dependency.
The checks mirror the production Seonix scanner — same issue codes, severities, and thresholds — and every finding carries a recommendation ported from the Seonix remediation catalog, rewritten to be platform-neutral.
Note on writing fixes. This server is read-only: it audits, proposes fixes, and dry-runs them — it never writes to your site, and needs no credentials. Earlier versions shipped seven WordPress write tools (
wp_update_content,wp_set_media_alt, …); they are archived in src/extras/wordpress-fixers.ts (not part of the server) and are the basis for a future opt-in, per-platform applier — which will require a true visual-regression gate and explicit credentials before it touches anything.
What it does
The auditor discovers pages from sitemap.xml, fetches each page's HTML, and reports problems across three pillars. The AI client summarizes the structured result for you.
Tools
| Tool | Auth | What it does |
|---|---|---|
audit_site |
none (read-only) | Audit a whole site for SEO + GEO/AEO + speed. Discovers pages via sitemap.xml, fetches each page, runs all checks, and returns a per-pillar summary plus a flat issues[] where every item carries a recommendation. |
speed_audit |
none (read-only) | Speed-only audit of one page. Always runs the HTML speed heuristics; with a PageSpeed key it also returns Core Web Vitals + the top Lighthouse opportunities. |
propose_fixes |
none (read-only) | Safe-fix advisor for one page. Audits it, then proposes a concrete, minimal fix per issue — classified meta-inject / content-replace (deterministic edit), needs-value (alt text, dates), manual (content decision), or infra (server/robots/sitemap) — with a visible/invisible label, the codes it clears, and safety notes. |
preview_fix |
none (read-only) | Dry-run a single proposal against the page's current HTML. Returns a regression-gate verdict — pass (localized & safe), idempotent (already applied), blocked (ambiguous/missing target), manual (needs a value / lives in infra) — plus the before/after of the affected region. |
None of these tools modify anything. The audit reports; the advisor proposes and dry-runs. Writing a fix is a separate, opt-in applier layer (WordPress first) that is not part of this server (see src/extras/wordpress-fixers.ts).
What audit_site checks
Around 75 checks across four scopes. The codes, severities and thresholds mirror the production Seonix scanner.
SEO — per page
- Title — missing / > 60 / < 30 characters / undecoded HTML entities (
&,') / lowercase start (en, de, ru; brand names like iPhone excluded). - Meta description — missing / > 160 / < 50 characters.
- Headings — missing H1 / multiple H1 / heading starts with an emoji / heading > 100 chars (likely a paragraph) / a heading before the first H1 / broken hierarchy (a skipped level).
- Images — empty/missing
alt(with the offending<img>snippet as evidence). - Content & indexability — thin content (< 300 words) / no internal links /
noindexset / page over 3 MB / soft-404 (200 status but an error-page title + thin body). - Mixed content —
http://resources on anhttps://page. - Canonical — canonical URL mismatch.
- Viewport — missing
<meta name="viewport">. - Open Graph — missing OG tags / missing
og:image.
SEO — cross-page & crawl graph
- Duplicates — duplicate titles / duplicate meta descriptions (paginated archives excluded) / trailing-slash duplicate URLs.
- Boilerplate — the same H2-H6 heading repeated on > 50 % of pages (needs ≥ 10 pages).
- Links — broken internal links (pointing at a crawled 4xx/5xx URL) / orphaned pages (no incoming internal link) / crawl depth > 4 clicks from the homepage.
- Redirects — chain ends in an error / redirect loop / more than 2 hops.
- HTTP — 4xx / 5xx responses.
SEO — site level (robots.txt & sitemap)
- robots.txt — missing / blocks all crawling (Googlebot at root) / blocks the sitemap path.
- sitemap — unreachable / invalid XML / empty / index references unfetchable children / not declared in robots.txt.
GEO / AEO (AI-search visibility)
- JSON-LD —
Articleauthor not aPerson(resolves@idreferences so Yoast-style sites aren't false positives) / missingdatePublished/ duplicate schema type / conflicting data across blocks / unrecognized@type(validated against the full 1 466-type schema.org vocabulary) / incompletePerson(name only) /FAQPageorHowToschema whose questions/steps aren't visible on the page / malformed or missing structured data. - Social meta — incomplete Open Graph (2+ of
og:title/og:description/og:image/og:url/twitter:cardmissing). - AI-restrictive meta — page opts out of AI engines via
nosnippet/noai/noimageai(meta robots orX-Robots-Tag). /llms.txt— missing, or invalid (needs a#title + ≥ 1 Markdown link + ≥ 100 chars).robots.txt— blocks AI crawlers (GPTBot, ClaudeBot, Google-Extended, PerplexityBot, OAI-SearchBot, anthropic-ai, ChatGPT-User, CCBot, Bytespider, Amazonbot, Applebot-Extended, meta-externalagent).- Sitemap freshness — fewer than 80 % of sitemap URLs carry a
<lastmod>. - Pagination — indexable paginated archive subpages that should be
noindex.
Speed
Always on (every fetched page, no key needed) — HTML heuristics:
- Render-blocking
<script>(noasync/defer) and<link rel=stylesheet>in<head>. <img>withoutwidth/height(layout-shift / CLS risk).- Below-the-fold
<img>withoutloading="lazy". - Very large inline
<style>/<script>blocks. - Heavy HTML document weight.
- Excessive DOM node count.
When PAGESPEED_API_KEY is set — Google PageSpeed Insights (Lighthouse), on a small sample of pages:
- Performance score + Core Web Vitals (LCP, CLS, INP, TBT, TTFB, FCP).
- Top Lighthouse opportunities mapped to issue codes: render-blocking resources, unused CSS, unused JavaScript, properly-size / efficiently-encode / next-gen images, offscreen images, text compression, slow server response (TTFB), excessive main-thread work, large DOM, short cache lifetime. Severity is banded by estimated time savings, mirroring the Seonix scanner.
Output shape
audit_site returns:
{
"site_url": "https://example.com",
"pages_scanned": 25,
"sitemap_source": "https://example.com/sitemap.xml",
"speed": {
"enabled_pagespeed": true, // false when no PAGESPEED_API_KEY
"pages_measured": 3,
"measurements": [ // one per PSI-sampled page
{ "url": "...", "strategy": "mobile", "performanceScore": 74,
"lcpSeconds": 2.9, "cls": 0.04, "inpMs": 180, "tbtMs": 320, "ttfbMs": 410, "fcpSeconds": 1.8 }
]
},
"summary": {
"seo": { "score": 68, "health_label": "needs work", "issue_count": 8 },
"aeo": { "score": 94, "health_label": "good", "issue_count": 3 },
"speed": { "score": 82, "health_label": "good", "issue_count": 7 }
},
"issue_count": 18,
"issues_by_severity": { "error": 1, "warning": 9, "notice": 8 },
"issues": [
{
"code": "title_too_long",
"category": "seo", // "seo" | "aeo" | "speed"
"severity": "warning",
"url": "https://example.com/pricing",
"evidence": { "length": 78, "title": "..." },
"why": "Search engines typically display only about 60 characters of a title...",
"target_state": "The <title> is 60 characters or fewer and leads with the important keywords.",
"recommendation": "Shorten the <title> to 60 characters or fewer while keeping the primary keyword near the beginning..."
}
// ... every issue carries why / target_state / recommendation
]
}
health_labelisgood(score ≥ 80),needs work(≥ 50), orpoor(< 50).- The speed pillar score is the median Lighthouse performance score across measured pages when PSI ran, otherwise a heuristic over the always-on speed checks.
- Page discovery reads
sitemap.xml(polite, ~1 request/second, default 25 pages, max 100) and fetches each URL. PSI is slow, so by default it only samples a few pages (homepage + up to 3 representative pages); the always-on HTML heuristics run on every fetched page.
Install
Requires Node 18+ (uses global fetch).
git clone https://github.com/seonix-ai/seonix-mcp.git
cd seonix-mcp
npm install
npm run build
This produces dist/index.js — the executable MCP server.
Configuration
The auditor needs no configuration — it works on any public site out of the box.
| Variable | Required | Purpose |
|---|---|---|
PAGESPEED_API_KEY |
optional | A Google PageSpeed Insights API key. When set, audit_site and speed_audit add Core Web Vitals + Lighthouse opportunities (sampled). Without it, the speed pillar runs on always-on HTML heuristics only. |
Getting a key takes a minute (enable the PageSpeed Insights API in a Google Cloud project and create an API key). It is free for typical audit volumes. PSI calls are slow (10–30s each), which is why the audit samples only a few pages by default — tune the sample with the
speed_sampleargument.
Add it to your AI client
Both clients launch the server with node dist/index.js. Use the absolute path to dist/index.js.
Claude Desktop
Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"seonix-seo": {
"command": "node",
"args": ["/absolute/path/to/seonix-seo-mcp/dist/index.js"],
"env": {
"PAGESPEED_API_KEY": "your-google-pagespeed-key"
}
}
}
}
The env block is optional — omit it entirely to run with HTML speed heuristics only. Restart Claude Desktop after editing.
Cursor
Edit ~/.cursor/mcp.json (or Cursor Settings → MCP → Add new server):
{
"mcpServers": {
"seonix-seo": {
"command": "node",
"args": ["/absolute/path/to/seonix-seo-mcp/dist/index.js"],
"env": {
"PAGESPEED_API_KEY": "your-google-pagespeed-key"
}
}
}
}
The same mcpServers shape works for Cline, Continue, and most other MCP clients.
Example prompts
Once connected, just talk to your agent:
- "Audit https://example.com and tell me the top SEO and speed problems with how to fix each."
- "Run a full audit of my site and give me the per-pillar health (SEO, AEO, speed) plus the 10 most severe issues."
- "Check https://example.com for AI-search visibility — is anything blocking ChatGPT/Claude/Perplexity, and is the structured data in good shape?"
- "Speed-audit my pricing page and explain the Core Web Vitals and what's hurting them."
- "Crawl up to 50 pages of my site and list every page missing a meta description, with the recommended length."
- "Propose fixes for https://example.com/, then dry-run each one and tell me which are safe to apply and which need a manual decision."
A typical flow the agent runs on its own:
audit_site→ gets the per-pillar summary + a flat list of issues, each withwhy/target_state/recommendation.- It groups the issues (by pillar, by severity, or by page) and explains the highest-impact ones in plain language.
- You decide what to change — the MCP never touches your site.
Safe-fix advisor (propose_fixes + preview_fix)
The auditor tells you what's wrong. The advisor goes one step further — here's the exact change, and here's proof it stays in its lane — while still writing nothing.
propose_fixes({ url }) audits the page and returns one proposal per issue:
{
"fixId": "fix_missing_og_tags_5",
"code": "missing_og_tags",
"url": "https://example.com/",
"family": "meta-inject", // meta-inject | content-replace | needs-value | manual | infra
"visibility": "invisible", // visible | invisible | unknown
"whatChanges": "Adds the missing Open Graph / Twitter card tags to <head>…",
"clears": ["missing_og_tags"],
"edit": { "type": "insert-head", "marker": "property=\"og:title\"", "snippet": "<meta property=\"og:title\" content=\"…\">" },
"safetyNotes": ["Inserted into <head> only; the page body is untouched.", "Idempotent — applying it again is a no-op."]
}
- Deterministic fixes carry an exact
edit: inject viewport / Open Graph tags, decode double-encoded<title>entities, strip a leading heading emoji, rewritehttp://→https://, retag a heading that skips a level (preserving its class). needs-valuefixes are mechanical but require a value only a human or image-aware model can supply (alt text, publish dates,og:image).manualissues (thin content, duplicate titles, a missing H1) are a content/structure decision — guidance only.infraissues (robots.txt, sitemap, redirects, speed) live in the server/CDN, not the page markup.
preview_fix({ fix }) takes a proposal back and dry-runs it against the page's current HTML, returning a regression-gate verdict:
| Verdict | Meaning |
|---|---|
pass |
The edit is localized — it touches only its intended region (e.g. one <head> insert, one unique heading). Safe to apply. |
idempotent |
Already applied — applying again is a no-op. |
blocked |
The target is ambiguous (e.g. two identical headings) or missing. An automatic edit is unsafe — do it manually. |
manual |
Needs a value, or lives in infrastructure — not auto-previewable. |
The gate is structural (does the edit stay in its region?), not pixel-level. A true visual-regression gate (computed-style / screenshot diff) and the actual write step require rendering and credentials, and belong to the opt-in per-platform applier — they are deliberately not in this read-only server.
How scoring works
- SEO and AEO pillar scores start at 100 and subtract weighted demerits per issue (error > warning > notice), floored at 0. This is a transparent heuristic so an AI client can relay a single number to a human — it is not the exact dashboard algorithm.
- Speed pillar score is the median Lighthouse performance score across the PSI-measured pages (the same basis Seonix uses for its speed pillar). When no PageSpeed key is configured, it falls back to the issue-based heuristic over the always-on speed checks.
- Every issue still carries its own
severity, so you can rank by severity regardless of the rolled-up scores.
Recommendations are platform-neutral
Recommendations live in src/recommendations.ts, ported from the Seonix remediation catalog but deliberately rewritten to be CMS-agnostic. You will never see "edit the Yoast field" or "change the WordPress block" — instead you get target states like "the page should have a unique <title> of 30–60 chars that includes the primary keyword" and imperative, vendor-neutral guidance that applies to any stack.
Development
npm run build # compile TypeScript → dist/
npm start # run the built server on stdio
npm test # build, then run the unit tests (node:test, no extra deps)
src/audit.ts— all audit checks as pure, dependency-free functions over fetched HTML (SEO + AEO + cross-page + crawl-graph + speed heuristics) plus the PageSpeed-Insights parsing/mapping. Easy to unit test.src/schema-types.ts— the generated set of valid schema.org@typevalues (1 466 identifiers) used by the unrecognized-type check.src/recommendations.ts— the platform-neutral recommendation catalog (issue code →why/target_state/recommendation).src/fixes.ts— the read-only safe-fix advisor:proposeFixes(issue → concrete edit + classification) andpreviewFix(static dry-run + structural regression gate). Pure and platform-agnostic.src/index.ts— the MCP server:ListTools+CallTool, site discovery + robots/sitemap crawlability checks, page fetching (manual redirect following for the redirect-chain checks), cross-page / crawl-graph aggregation, PSI sampling, thepropose_fixes/preview_fixadvisor tools, and result assembly.src/extras/wordpress-fixers.ts— the archived WordPress write tools. Not imported by the server; kept for the record (the future opt-in applier layer).test/audit.test.mjs,test/fixes.test.mjs— unit tests for the checks and the fix advisor (run withnpm test).
Smoke test (JSON-RPC over stdio)
You can drive the server directly:
npm run build
# initialize → tools/list → tools/call audit_site, piped over stdin
(see the round-trip example in the project history — audit_site returns issues with recommendations and a speed section even without a PageSpeed key).
License
MIT. Free to use, modify, and distribute.
Installing Seonix SEO
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/seonix-ai/seonix-mcpFAQ
Is Seonix SEO MCP free?
Yes, Seonix SEO MCP is free — one-click install via Unyly at no cost.
Does Seonix SEO need an API key?
No, Seonix SEO runs without API keys or environment variables.
Is Seonix SEO hosted or self-hosted?
A hosted option is available: Unyly runs the server in the cloud, no local setup required.
How do I install Seonix SEO in Claude Desktop, Claude Code or Cursor?
Open Seonix SEO on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Fetch
Web content fetching and conversion for efficient LLM usage.
AWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzCompare Seonix SEO with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
