Repository avatar
AI Tools
v0.1.0
active

eo-audit-mcp

io.github.FredAGVdd/eo-audit-mcp

Audits web pages for classic search (SEO), AI answer engines (GEO) and link previews, with fixes.

Documentation

eo-audit-mcp

CI License: MIT MCP eo-audit-mcp MCP server

EO stands for engine optimization: everywhere a page gets discovered, not just one channel. eo-audit-mcp is an MCP server that checks the basics that let classic search (SEO), AI answer engines (GEO) and social and chat link previews find, read and show a web page: can crawlers reach it, can they read it, is there enough on it, is the markup in order. Give your agent a URL; it gets back the problems it found, ranked by points on its own score, with a fix for each item.

What the score is, and isn't. It's a checklist of technical and content basics, not a prediction of how often AI engines cite you. In a first small test the score didn't tell cited pages from uncited ones; being reachable and having some substance did. See What a first test found.

In active development. New checks ship often and the scoring is being calibrated against real AI citations, so scores can shift between versions. Issues and pull requests are welcome (see CONTRIBUTING.md).

A real Claude Code session: Claude calls geo_score with whatIf on a demo page and reports 57 (D) now, about 83 (B) with the suggested patches, and what is left to do

A real Claude Code session, recorded with scripts/record-session.mjs against the demo site in examples/demo-site. Claude calls the geo_score tool with whatIf: true; the server only reads the page and changes nothing.

# GEO readiness: 8/100 (low confidence)

**URL:** https://example.com/
**Overall:** 30/100 (F) · **SEO:** 51/100 · 8/19 checks passed

> **Low confidence:** for this page, the GEO score checks only access and the layout of the page. It does not check facts, sources or freshness.

## Prioritized fixes (by points recovered)

1. **[GEO · +46 points]** The main content has 25 words, fewer than 300.
   → Add substantive answers to the questions that the page is about. The target of this check is 300 words of main content.
2. **[SEO · +3 points]** No canonical URL declared.
   → Add `<link rel="canonical" href="…">` so that engines combine the signals on one URL.
…

Contents

What it checks

Answer engines (ChatGPT search, Claude, Perplexity, Google's AI Overviews) fetch a handful of pages, pull passages out of them and cite a few. A page loses before content even matters if the engine can't fetch it, can't render it, or isn't allowed to quote it. So the tool looks at access first, then at the content and markup.

ToolWhat you get
geo_scoreStart here. Runs everything below and returns a GEO score, an SEO score, an overall grade and a ranked list of fixes.
geo_score_siteThe same audit for a sample of pages of one site (10 by default, as many as you like), picked from its sitemap (or the links on the start page if there's no sitemap). You get average scores, the fixes that keep coming back across pages, and the site-wide fixes (robots.txt, llms.txt) once instead of on every page. It also spots titles, descriptions and share images that several pages copy, orphan pages and "click here" links within the sample, and hreflang pairs that don't link back.
geo_compareYour page next to 1–3 competitor pages, ideally of the same kind (two blog posts, two pricing pages). It shows the scores side by side, the checks a competitor passes and you don't (ranked by points, with your fix and patch), where you're ahead, and which answer crawlers each site blocks. It compares checks, not actual citations.
check_ai_crawlersrobots.txt rules for search, AI-answer and AI-training crawlers, Content-Signal declarations, and a live request with each AI crawler's user agent to spot firewall/CDN blocking. Ask for firewallControls and it adds two control requests to tell a real block from a false alarm.
verify_crawler_accessWhat the real crawlers got: your access logs (local files, piped logs or Cloudflare), with every crawler request checked against the vendor's published IP list, plus optional fetches from Anthropic's network and Google Search Console. See Real crawler access.
check_pageThe page type (article, discussion, recipe, event, podcast, changelog, docs, product, index, home or other), indexability, snippet controls (nosnippet, max-snippet, data-nosnippet, and Bing's noarchive and nocache), content that only appears with JavaScript, bot challenges and consent walls served instead of the page, outline and word count. On articles it also looks for cited sources, statistics and quotations (in English, the main European languages, Chinese, Japanese and Korean), and on articles and threads for a date and a byline. It spots paywalled articles, so the free teaser isn't scored as thin content. It also checks hreflang links (valid codes, absolute URLs, a link to the page itself) and alt text on the images in the main content.
check_structured_dataJSON-LD and microdata: types, parse errors, property rules per type, and which types fit the page (Article, Product, Event, PodcastEpisode, LocalBusiness and so on).
check_meta_ogTitle, meta description, Open Graph and X card tags. It flags leftover placeholder text ("Lorem ipsum", "TODO", "Untitled", {{title}}, "React App") and actually fetches the share image to check that it loads and is 1200 × 630 or close.
check_web_vitalsCore Web Vitals (LCP, INP, CLS) from real Chrome users, via Google's CrUX API, if you give it your own free API key. Reported, not scored: they matter for search rankings, but nothing shows they change AI citations.
check_llms_txt/llms.txt and /llms-full.txt, and the page's llms.txt v2 links. Reported, not scored (see below).
eo_auditThe whole site in one go: a technical SEO crawl in the style of the desktop SEO spiders, plus the GEO checks on a sample of the crawled pages. See EO audit of a whole site.

Every tool takes a url (geo_score_site and eo_audit also take an optional maxPages plus deny and priority lists, and geo_compare takes the competitor URLs), is read-only, declares an output schema, and returns problems as structured tool errors instead of crashing. The tool reference has real output for each one.

EO audit of a whole site

The page audit looks at one page at a time. eo_audit looks at the whole site, for both kinds of engine.

SEO. It's inspired by the desktop SEO spiders: it starts at your URL, follows the internal links (and then the sitemap URLs the links didn't reach), obeys robots.txt, and checks what it finds against 67 rules. They cover broken pages and redirect chains, titles and descriptions, headings, duplicate and near-duplicate content, canonicals, hreflang, orphan pages, sitemap mistakes, images, mixed content and security headers. Each issue comes with a fix and the affected URLs, and the crawl gets its own health score.

GEO. Then it picks 20 of the crawled pages by default (indexable HTML, spread across the sections of the site; geoPages or --geo-pages changes the number) and runs the same audit as geo_score_site on them: a GEO site score, a what-if estimate with the patches pasted in, and a fix plan with ready-to-paste patches. Pass seoOnly (or --seo-only) if you only want the crawl.

npx eo-audit-mcp crawl https://example.com/ --max-pages 500 --csv out/ --html out/
npx eo-audit-mcp crawl https://example.com/ --max-pages 20000 --yes \
  --deny '/changelog/**' --deny '/tag/*' --priority '/docs/**'

There's no hard page cap. The crawl defaults to an upper limit of 50,000 pages. If you set a limit above 1,000 yourself, it asks first: the command line prompts (--yes skips the prompt, and it's required when there's no terminal), and in an agent the tool comes back asking you to confirm before it fetches anything. --deny keeps whole sections out of the crawl (those URLs are never fetched, not even through a redirect), and --priority crawls the parts you care about first, so they make it in even with a small limit. Patterns are path globs (* stops at a slash, ** doesn't), full-URL globs, or /regex/ (see URL patterns). The agent tools take the same lists as deny and priority.

The HTML report (example.com-eo-audit.html) opens on an overview with the crawl health, the GEO score and the top items of each, then has an SEO section (issue tree and a sortable URL table) and a GEO section (scores, fix plan, pages, crawlers, site health and share previews). In an agent you get a compact summary instead (a maximum of 20 URLs per issue and the top 10 GEO fixes), the crawl stops after two minutes and the GEO checks after one. On the command line the crawl has no time limit (the GEO checks get three minutes), and everything goes to CSV, JSON and the report. The HTTP transport keeps a hard cap of 25 crawled pages and a GEO sample of 10, because it's a shared server and a remote client shouldn't be able to point it at a big site.

What it doesn't do: it reads the HTML the server sends and runs no JavaScript, so a client-rendered site shows up as nearly empty. It doesn't check spelling or readability. It has no Google Search Console data, so you won't see clicks, impressions or the index status Google really assigns. The health score counts affected URLs. It isn't a ranking prediction. See the reference for every rule and limit, and CI for the command.

See it work

npm run demo serves a small made-up coffee site on 127.0.0.1 and audits it in what-if mode: before anything changes, the tool tells you the score you'd get with its patches. Then the demo script pastes those patches into a temporary copy (playing the part of you or your agent) and audits again, to see whether the estimate holds. To be clear: eo-audit-mcp never changes your site. It only reads pages and hands back suggested patches. No network needed; the script prints which TODO placeholders it filled with demo values, so you can see exactly what it changed. The numbers for the article page, from a real run:

GEOSEOOverallAI-crawler access
Before456957 (D)0.71
What-if estimate (nothing changed yet)709683 (B)
After really pasting the patches709583 (B)1.00

You get the same estimate on your own site: eo-audit-mcp check https://your-site.example --what-if, or whatIf: true in geo_score / geo_score_site. It pastes the patches into a copy in memory, fills each TODO with a stand-in, and scores the copy, so you can see what the fixes are worth on this checklist before anyone touches the site.

The patches fix access and markup. What's left is the writing: the article still doesn't cite sources or quote anyone, and no patch can do that for you. The training crawler (GPTBot) stays blocked throughout.

The HTML report

Add --html reports/ to the check command (or htmlReport: true in the MCP tools, or html-report: true in the GitHub Action). You get one file that you can mail around or attach to a PR. It has the scores, a fix plan you can filter and tick off as you go, every patch with copy and download buttons, a sortable page table, and the crawler picture, in light or dark. It needs no network and makes no outside requests, so it's safe to open anywhere.

The HTML report of a made-up site: score ring, sub-scores, access gates and the fix plan

Try it on Glama

Want to look before you install? eo-audit-mcp is listed on Glama. There you can browse its tools and their inputs, check its quality score, and try it in the browser with MCP Inspector.

eo-audit-mcp MCP server

Quick start

You need Node.js 20.18 or later.

Claude Code

claude mcp add eo-audit -- npx -y github:FredAGVdd/eo-audit-mcp

Claude Desktop, or a project's .mcp.json

{
  "mcpServers": {
    "eo-audit": { "command": "npx", "args": ["-y", "github:FredAGVdd/eo-audit-mcp"] }
  }
}

From a clone

git clone https://github.com/FredAGVdd/eo-audit-mcp.git
cd eo-audit-mcp && npm install          # also builds dist/
node examples/client.mjs https://example.com                         # geo_score report
node examples/client.mjs https://www.wikipedia.org --tool check_ai_crawlers --json
npx @modelcontextprotocol/inspector node dist/index.js               # poke at the tools

The repo's own .mcp.json points at dist/, so Claude Code picks the server up once you've run npm install.

Over HTTP: node dist/index.js --http serves Streamable HTTP on http://127.0.0.1:3333/mcp. In that mode audits can't reach private or loopback addresses. Set EO_AUDIT_TOKEN to require a bearer token; the server won't start on a non-loopback address without one. Read HTTP transport and security before you expose it to anyone.

Ready-to-paste fixes

Where it can, a fix comes with a patch: the exact text to paste, so an agent can apply it straight away.

  • robots.txt: groups that let blocked answer or search crawlers in (training crawlers stay blocked, and the site's other rules are copied over), a corrected Content-Signal line, or a minimal robots.txt with a Sitemap line when the file is missing.
  • HTML head: canonical, Open Graph and X card tags, filled from the page's own title, description and URL.
  • JSON-LD: the markup the tool recommends for the page type (Article, Product, Event, Organization, BreadcrumbList and so on), or just the missing properties of existing markup.
  • llms.txt: when the site has none, a draft built from the pages' titles and descriptions. The site audit groups all audited pages into sections.

Patches only use facts found on the page. Anything the tool can't know, like a logo URL or a price, is a TODO: … placeholder, listed in placeholders, so nothing invented ends up on your site.

In CI

eo-audit-mcp check runs geo_score from the command line and fails when a score drops below a threshold:

node dist/index.js check https://preview.example.com/pricing --min-geo 60 --min-seo 80

It exits 0 when every URL passes, 1 when one is below a threshold (or can't be scored), and 2 on errors. Add --crawl 20 to audit up to 20 pages of each site instead of one URL; then every page has to pass. There's also a GitHub Action for preview deployments, with a matching crawl input; see CI.

Real crawler access

The firewall probe can only pretend to be GPTBot or ClaudeBot. Bot protection (Cloudflare, Vercel, Akamai and friends) usually recognises real crawlers by their IP address, so a fake request can be blocked while the real one gets in, or the other way round. There are three ways to get closer to the truth, from cheapest to best:

  1. Control requests (firewallControls: true, or check --firewall-controls). Two extra requests, one as a normal browser and one with a made-up bot name, turn "blocked" into likely blocked, possibly blocked (behind a service that verifies bots), likely a false alarm (the site blocks anything that calls itself a bot) or inconclusive. It's still a guess, so it's off unless you ask.
  2. Your access logs. verify_crawler_access reads them, finds the crawler requests and checks each IP against the vendor's published list (OpenAI, Anthropic, Perplexity, Google, Bing, Apple, DuckDuckGo) or reverse DNS. You get what the real crawler actually received, and which "crawlers" were impostors.
  3. A fetch from the vendor's own network. With your own Anthropic API key, Anthropic fetches the page from its servers (a few cents at most). With a Search Console service account, you get Googlebot's last crawl result.

Once 2 or 3 is set up, the control requests are skipped. The report says why: you've got real data.

Where the logs come from depends on your host, so there are a few ways in:

# Logs on this machine, or the tool runs on the web server itself
EO_AUDIT_LOG_FILES=/var/log/nginx

# Logs somewhere else: pipe them in
ssh web1 'cat /var/log/nginx/access.log' | eo-audit-mcp verify https://example.com --stdin
vercel logs --json | eo-audit-mcp verify https://example.com --stdin

# Cloudflare in front of the site (API token with Analytics Read)
EO_AUDIT_CLOUDFLARE_API_TOKEN=...

# Vendor fetches
EO_AUDIT_ANTHROPIC_API_KEY=...            # your key; it's never read from ANTHROPIC_API_KEY
EO_AUDIT_GOOGLE_CREDENTIALS=./sa.json EO_AUDIT_GSC_PROPERTY=sc-domain:example.com

It reads nginx, Apache, Caddy, IIS, CloudFront and Cloudflare Logpush logs, Vercel log drains and most JSON-lines logs, gzipped or not. Exports from S3 or a log drain work too: download them and point EO_AUDIT_LOG_FILES at the folder.

About trust. You set these as environment variables in your own MCP client config, and they stay on your machine. Only the stdio server and the verify command read them; the HTTP server doesn't, so nobody can read your logs remotely. Log files never leave the machine. The tool only talks to the services you configured, with your credentials, and to the vendors' public IP lists. Reports contain counts, status codes and paths, never IP addresses, user agent strings or any of your settings, and secrets are stripped from every error message. There's no telemetry. Nobody else can see your setup, the maintainers included.

Prompts

The server also ships four MCP prompts. They show up in your client's prompt or slash-command menu and walk the agent through a whole job:

  • audit-and-fix (url, optional scope page or site): audit, explain the score, then your agent applies the patches with you (in your repo, after you say yes), re-audits and shows before → after.
  • beat-competitor (url, 1–3 competitor URLs): run geo_compare and work through the top three gaps.
  • robots-ai-access (url): explain which search, answer, training and user crawlers your robots.txt lets in, and what each block costs.
  • llms-txt (url): draft an llms.txt from a site audit and fill in the blanks with you.

The prompts tell the agent never to invent a TODO value, to ask before it touches a deliberate block (a training crawler, a noindex), and never to copy a competitor's content. The server itself stays read-only; the agent makes the edits. Details in Prompts.

How the score works

The weights are expert judgement, not fitted to citation data, and the first test below didn't support the content and markup weights. Read the score as a checklist that puts the basics in order.

Most sites pass the access checks, so as points they would make almost every page look good. They work as gates instead.

  • Access gates: the page is indexable, robots.txt is reachable, search and AI answer crawlers are allowed, snippets are allowed, and the content is rendered on the server. Only a strong sign of client rendering (an empty app root, or a <noscript> asking for JavaScript) fails the rendering gate; lots of scripts on a short page just get a note. The worst gate multiplies the GEO score. A Content-Signal ai-input=no halves it rather than zeroing it, since no answer engine has said it honours that signal. Bing's noarchive keeps a page out of Copilot answers, so it costs the snippet gate Bing's share of the crawler weight (2 of 17); nocache costs half that. If robots.txt refuses the tool (401, 403 or 418), even with a browser user agent, the crawler gates get 0.75: the real crawlers' rules are unknown, which isn't the same as blocked.
  • Answer crawlers are weighted: Googlebot 3 (AI Overviews and AI Mode), OAI-SearchBot 3, Bingbot 2 (Copilot), PerplexityBot, Claude-SearchBot and Applebot 2, Meta-WebIndexer, DuckAssistBot and Amzn-SearchBot 1. The weights reflect the estimated reach of each answer surface in 2026, not measured data.
  • Page types: each page is classified as an article, discussion (forum thread, Q&A), recipe, event, podcast, changelog, docs, product, index, home or other page, from its JSON-LD or microdata, its URL and its content. That decides which content checks apply and which structured data the tool asks for (Product markup on product pages, BlogPosting on a blog post, Event on an event page, LocalBusiness on a bakery's home page, for example).
  • GEO score: the weighted content checks, times the access multiplier. Depth applies to every page, sections and structure to most (not to link lists, threads or event pages, and structure not to news stories or home pages). Cited sources, statistics and quotations apply to articles only; a date applies to articles, threads, recipes and changelogs (not podcasts: an old episode isn't stale), and a byline to articles and threads. A paywalled article gets full credit for depth and skips the checks that need the full text. The evidence trio comes from Aggarwal et al., GEO, KDD 2024: in their benchmark an LLM rewrote source texts, and rewrites that added quotations, statistics or cited sources made the source more visible in generated answers (fluency rewrites helped about as much as citations; keyword stuffing didn't help). The benchmark measured visibility among sources already retrieved, not retrieval or ranking, and didn't test HTML markup or links. The same methods also lowered visibility for sources the search engine already ranked first. So they count as heuristics with medium weight. If only the layout checks (length, sections, lists) apply, with nothing that looks at facts, sources, freshness or markup properties, the report marks the GEO score as low confidence. And a single small check can't swing a page to 0 or 100 on its own any more: below a minimum weight, the missing part counts as neutral, so a page with nothing to measure gets 50, not a free 100. The site average leaves low-confidence pages out when there are enough other pages.
  • SEO score: the weighted SEO checks (canonical, title, description, Open Graph, structured data).
  • Overall: the mean of the two. Grades: A ≥ 90, B ≥ 75, C ≥ 60, D ≥ 40, F below.

Fixes are sorted by how many points the overall score would gain if you fixed them, and each fix shows that number. Those are points on this checklist, not extra citations. Since the worst gate sets the multiplier, a gate's gain is what it adds once the worse gates are fixed, so the worst one usually comes first. Gates that are equally bad only pay off together, so they share one gain and name each other. The same goes for client rendering, which also makes the content look thin: its gain includes the depth fix. Fixes worth less than a point go in a separate "Also worth fixing" list, with a line that says why they're worth so little. Check weights: high 10, medium 5, low 2. A check that doesn't apply to the page (Article markup on a home page, say) is left out.

Two things are reported but don't count:

  • llms.txt: a reasonable proposal that coding agents use, but there's no evidence yet that any answer engine reads it.
  • The firewall probe: it only changes the user agent, and real crawlers are often verified by IP, so it can be wrong in either direction. The control requests and verify_crawler_access help with that (see Real crawler access).

If a page refuses the tool's own user agent (401/403), the page tools try once more with a browser user agent and say so. robots.txt gets the same retry. If the page still returns an error or isn't HTML, geo_score checks the site (crawlers, llms.txt) but doesn't score the page. It does the same when the server sends a bot challenge or a cookie-consent wall instead of the page, and for internal search results marked noindex, which sites keep out of the index on purpose. When a site blocks the tool, the report tells you to check what Googlebot and Bingbot get with URL Inspection in Search Console and Bing Webmaster Tools, since bot protection often lets verified crawlers through anyway. If they get the page, run the audit from a network the site allows.

What a first test found

A small first calibration ran in November 2026: 50 questions from one topic area (online strategy games), asked to Claude with Anthropic's web search. For each question, the run recorded every page the search retrieved (1,807 question–page pairs) and which of them the answer cited (23%), then scored every page with eo-audit-mcp.

  • The scores didn't separate cited from uncited pages. The chance that a cited page scored higher than an uncited one was about 50%, the same as a coin flip (AUC 0.49–0.54, also when comparing only pages for the same question). The search rank did better (0.66).
  • Reachability mattered. Pages the tool couldn't fetch (errors, timeouts, bot walls) were cited 10% of the time, against 28% for pages it could. Pages that failed the access gates (noindex, nosnippet, client-only rendering, blocked crawlers) were cited 3–6× less often, though those groups were small.
  • Thin pages were cited less: about half as often below 300 words.
  • The evidence checks (sources, quotes, a byline) and llms.txt showed no benefit, and the official site of the topic dominated the citations, which muddies the per-check numbers.

It's one engine, one topic and mostly brand questions, so the weights haven't changed yet. The next round adds topics, generic questions, the site as a control and a second engine. The scripts are in scripts/calibration/.

Limitations and next steps

  • Not calibrated, and a first test didn't back the score. The weights are expert judgement. A first test (see What a first test found) found no link between the score and AI citations, only for reachability and length. A larger round with more topics and engines is next.
  • No JavaScript rendering. The tool sees the HTML the server sends, which is also what most AI crawlers see. It detects pages that look client-rendered, but it doesn't render them.
  • Real crawler checks need your data. Without logs or an API key, the firewall probe can only fake the crawlers' user agents, so it's reported but not scored. The Cloudflare and Google sources are built from their API docs and tested with mocks, not yet against a live account. Amazon and Meta publish no IP lists, so their requests can't be verified.
  • No browser clients over HTTP. The server sends no CORS headers, so a script on a web page can't call it. Native clients, browser extensions and the MCP Inspector's default proxy mode work fine. See HTTP transport and security.

Docs and development

npm install
npm test             # no network: fixtures, a stubbed fetch, and the real server over in-memory, stdio and HTTP
npm run coverage
npm run typecheck

CI runs on Node 20, 22 and 24.

MIT © Frederik Vandendriessche

NPM
eo-audit-mcp
Install Command
npm install eo-audit-mcp