Skip to main content
Glama
Search Visibility

Search Visibility

by shaul1991

Search Visibility

English · 한국어 · 日本語 · Español · 简体中文 · Try the Free Live Web Checklist ↗

Search Visibility is an open-source CLI and MCP server for AI search visibility audits (GEO, AEO) and technical SEO. Check robots.txt rules for AI crawlers, audit optional llms.txt files, indexing directives and JSON-LD, and review Google Search Console data alongside citations from AI answers you record.

Try in 10 seconds with zero install: Visit https://search-visibility.js.org/?lang=en to audit any public URL, toggle Search/AI/Social crawlers On/Off to customize robots.txt, and copy a tailored AI fix prompt for Claude Code, Cursor, or Codex.

Search Visibility HTML report preview

Quickstart

Requires Node.js 18 or later. npx runs the CLI from npm. Replace the example URL with the page you want to audit.

npx search-visibility https://example.org/ --lang en

To give Claude Code access to the same audit tools, register the local MCP server.

claude mcp add search-visibility -- npx -y search-visibility mcp --lang en

Codex and Cursor setup

Open index.html from the printed output directory and review the highest-priority FAIL and WARN findings. For repeatable runs, create a starter in a fresh working directory and edit targets.

npx search-visibility init --lang en
npx search-visibility ./visibility.config.json --out before --lang en

Deploy your changes, repeat the measurement under the same conditions, and compare the results. Use new directories for --out.

npx search-visibility ./visibility.config.json --out after --lang en
npx search-visibility compare before/report.json after/report.json --out comparison --lang en

For a single-page technical audit in JSON, run the following command. Use --expect-indexable on pages intended for indexing. A FAIL produces exit code 1.

npx --package=search-visibility seo-check https://example.org/ --expect-indexable --json --lang en

To see the output without auditing your site, download and open the sample HTML report with synthetic data.

Related MCP server: seosiri-content-schema-mcp

Analyze AI referrals

Add Session source / medium as a secondary dimension to the GA4 Landing page report and export it as CSV. Include Sessions, Views, or both. A landing page column adds the per-engine landing page breakdown. GA4 landing page report

search-visibility site.config.json --ai-referrals ./ga4.csv --lang en
search-visibility https://example.org/ --ai-referrals ./access.log --lang en
search-visibility --ai-referrals ./examples/ai-referrals/ga4.csv --lang en
  • Use "aiReferrals": "./ga4.csv" in a config to resolve the path relative to that file. The CLI option overrides it and resolves paths from the working directory.

  • The parser accepts UTF-8 BOM, comma or semicolon delimiters, and Korean, English, or Japanese headers. It groups both ChatGPT hosts and counts Perplexity, Gemini, Claude, Copilot, You.com, and Phind separately.

  • For access CSV, supply Referrer,Path. Optional Method,Status columns filter for GET and 2xx respectively. Apache/Nginx Combined Log counts successful GETs. Raw referral request counts can include bots and resource requests. Supply CSV metrics for measured sessions and views.

  • HTML shows referrals alongside the owned-source citation rate for matching engine names. Align the measurement windows before comparing them. The data cannot attribute individual visits to specific answers. Reports retain landing paths and query strings.

Features

Feature

What you can check

Technical audit

HTTP redirects, robots.txt, indexing directives, canonicals, sitemaps, hreflang, sharing tags, and JSON-LD

llms.txt diagnostics

HTTP status, media type, Markdown structure, and sampled internal links for /llms.txt and /llms-full.txt. Both files are optional. Google Search ignores llms.txt, including in its AI features. Google Search guidance

Internal link crawl (--crawl)

Same-origin BFS crawl for broken links (4xx/5xx), redirect chains/loops, and sitemap orphan pages

AI crawler robots.txt checks

Rules for search crawlers (including Kimi-SearchBot), user requests (Kimi-User) and training (GPTBot, KimiBot) on the final URL

Social & messenger previews

Crawler access & card checks for Telegram, Discord (theme-color), Threads/Meta, X, Slack, LinkedIn, and Kakao (HTTPS og:image)

Google Search & AI referrals

Search Console CSV (clicks, impressions, CTR) + GA4/access-log AI referral traffic

AI observations & competitors

Brand mentions, owned citations, competitor Share of Voice (SoV), Citation Gaps, and Wilson 95% intervals

Webhook alerts & local MCP

Zero-dependency Discord/Telegram/Slack webhook alerts (--notify-*), before/after compare, and stdio MCP server (mcp)

Chrome Extension (MV3)

1-click audit for the active tab (including localhost) or any dragged/selected URL & right-click link in extension/ with crawler On/Off toggles & AI fix prompt

Import & compare in the browser and MCP

The CLI's measured-data inputs and compare on the web import page, the extension's import page and the MCP build_report tool. Browser files are not uploaded

Send audit alerts to Discord, Telegram, or Slack

search-visibility https://example.org/ --crawl --notify-discord "$DISCORD_WEBHOOK_URL" --notify-on warn --lang en
search-visibility https://example.org/ --crawl --notify-telegram "$TG_BOT_TOKEN:$TG_CHAT_ID" --notify-on fail --lang en
search-visibility https://example.org/ --crawl --notify-slack "$SLACK_WEBHOOK_URL" --notify-on always --lang en

How to prompt your AI agent

After installing the Agent Skills (npx skills add shaul1991/search-visibility ...) or registering the local MCP server (search-visibility mcp) in Claude Code, Codex, Cursor, or Antigravity, you can copy and adapt these prompts to run audits and fix issues end to end.

1. Full site audit and prioritized code fixes

Audit https://example.com with search-visibility and list all FAIL and WARN findings by priority.
For any meta tags, canonicals, robots.txt, or JSON-LD issues we can fix in this repo, apply the edits and re-run the audit to confirm they pass.
Run `search-visibility https://example.com --crawl --max-pages 40 --lang en` and report broken internal links (4xx/5xx),
redirect chains of 2+ hops, sitemap orphan pages, and llms.txt diagnostics.
Locate the broken references in our codebase and propose fixes.

3. Competitor Share of Voice and Citation Gap analysis

Analyze observations.json with our brand and competitors in visibility.config.json.
Summarize Share of Voice, Wilson 95% confidence intervals, and prompts where competitors were cited while our sources were missed (Citation Gaps),
then draft a concrete content and structured-data plan for those gaps.

4. Before-and-after comparison (compare) with AI referrals

Run `search-visibility compare before/report.json after/report.json --lang en` and combine it with AI referral metrics from ga4.csv.
Give me a concise summary of what improved after deployment and what still needs work.

5. Add a CI gate for pull requests

Add a GitHub Actions job to this repo that builds the site, serves it locally, and runs
`npx search-visibility http://127.0.0.1:4321 --crawl --fail-on-findings`
so broken links or indexing regressions fail the PR.

Tip: Tell your agent three things up front—target URL (or local build path), target channels (Google, Naver, ChatGPT/Perplexity, etc.), and whether to stop at a report or edit code directly—to get the most actionable output.

Measurement Toolbox

Find the affected URL and evidence in the report, then verify the public URL with the tools below. Save the results and repeat the check after deployment.

Official search consoles, crawling, and submission

Official tool

What to do after the audit

Google Search Console

Use URL Inspection to check indexing and Google's selected canonical. Set the date range and filters in Performance and export CSV.

Naver Search Advisor

Check page optimization with the quick site check. Verify ownership before requesting a crawl in Webmaster Tools.

Daum Search Registration

Register a site or blog and look up its registration status.

Bing Webmaster Tools

Verify ownership, then inspect URLs and submit sitemaps.

IndexNow

Notify participating engines of added, updated, or deleted URLs. Check index status with each engine after submission.

Structured data, sharing previews, and performance

Official tool

What to do after the audit

Google Rich Results Test

Check which Google rich result types are eligible and identify missing or invalid required properties.

Schema Markup Validator

Validate Schema.org types and properties.

Meta Sharing Debugger

Inspect the link preview and scrape details, then use Scrape Again after an update.

Kakao Sharing Debugger

Sign in to Kakao, review the sharing preview, and clear the cache after changing Open Graph tags.

PageSpeed Insights / Lighthouse

Use PSI for lab metrics and any available field data on public URLs. Use Lighthouse in Chrome DevTools for local URLs.

Measure citations in AI answers

  1. Run search-visibility init as shown in Quickstart and fill in targets, brand, and domains. Set ownedUrlPrefixes to count citations to your own profiles on shared platforms.

  2. Run your queries in ChatGPT Search, Perplexity, Google AI Overviews or AI Mode, Naver AI Briefing, and Gemini. Record each engine, query, locale, timestamp, answer, and source URLs in observations or a JSON file relative to the config. From the first run, put mode, locale, region (actual access region) and run (repetition number) on every observation; comparisons need all four.

  3. To include Google Search performance, set searchConsole to an object with file, property, reportType, searchType, aggregation, timeZone, filters and period (start, end, complete: true) before the baseline (fields). Run search-visibility to generate a baseline. Review the sample size, brand mention rate, and owned-source citation rate by engine.

  4. After deployment, repeat the same queries under the same conditions. Export a later, non-overlapping Search Console period of equal length with matching settings. Generate a new report and run search-visibility compare. Changes appear only for matching conditions; read them alongside sample sizes because answer variation can have several causes.

How results are judged

  • robots.txt rules apply to the final URL's path and query. When robots.txt cannot be read (429, 5xx, timeout, network error), crawler access is unverified, never "allowed": the web checklist and extension remove the toggle and the AI prompt asks for no robots.txt changes. JSON reports "decision": "unknown" and "allowed": null (the web API lists these bots in crawlerUnverified, apart from crawlerMatrix). A 404 shows the documented "no restriction rules" basis.

  • Kimi and DeepSeek. A robots.txt block for Kimi-SearchBot (search) or Kimi-User (user requests) produces a WARN. Kimi says robots.txt may not apply directly to user requests. Blocking KimiBot (training) is informational. DeepSeek’s search documentation does not specify a crawler name or robots.txt behavior, so the audit cannot determine its access.

  • Indexing blocks (noindex, none or an unavailable_after date that has passed, from robots meta or X-Robots-Tag; unparseable dates are not judged) appear above the score with the target bot, source and value. Mark intentionally excluded pages with intentionallyExcluded, --expect-excluded or the web/extension checkbox. The extension's current-tab audit shows HTTP status and headers as unobserved. Very long results are shortened to 50 blocking sources and 200 JSON-LD block details, with the omitted count shown.

  • JSON-LD is judged per block: syntax error, no @type, missing required property, checked properties present, or detailed check unsupported. A pass covers only the listed properties.

  • hreflang accepts declarations in HTML, the HTTP Link header or XML sitemaps, checks codes, self and return references and conflicts, and marks targets outside the sample as unverified. A missing x-default is optional information.

  • compare labels Search Console and AI results comparable, different or unverified, and leaves delta: null with reasons when conditions differ or are missing. Search Console needs the property, report, search type, aggregation, time zone, filters and completed, non-overlapping periods of equal length. AI answers are paired by exact prompt, engine, mode, locale, region and run. Site FAIL/WARN changes require the same pages, intent and rule version with readable robots.txt.

  • One judgement in every channel. The CLI, MCP, web checklist and extension check the same crawler list at the same levels (for example, blocking Googlebot is a FAIL), read the first 500 KiB of robots.txt (Google's documented limit) and quote the URL in copied verification commands. Where a channel cannot observe something, it says so (channel parity and platform limits). Inputs that compare does not compare are listed in notCompared.

Judgement rules · Search Console conditions · AI comparison · Localized URLs

Import measured data from search consoles

Each input is a local file you provide; nothing signs in to an account. Any one of them is enough to publish a report.

Config key

Input

Shows

urlInspection

Saved Google URL Inspection API responses

Current canonical (HTML and header) against Google's last observation. Guide

googleAiPerformance

Generative AI performance CSV

AI impressions, kept apart from Web totals; clicks and CTR as not provided. Guide

bingAiPerformance

AI Performance JSON record

Total Citations and per-query Citation Share with their denominators. Guide

naverSearchAdvisor

Search Advisor JSON record

Crawl errors and trends, index metrics, web search impressions and clicks, next checks. Guide

git clone https://github.com/shaul1991/search-visibility && cd search-visibility
npm run visibility -- examples/url-inspection/config.json --lang en
npm run visibility -- examples/google-ai/performance.config.json --lang en
npm run visibility -- examples/bing-ai/performance.config.json --lang en
npm run visibility -- examples/korea-search/advisor-blocked.config.json --lang en

Without the command line: open the web import page or the import page from the extension popup. Add a config file together with the files it names, or choose a type for each file, to get the same report; add two report.json files to compare them. Files are read in your browser and are not uploaded. Pages in targets and sitemap are not audited there, so run page audits and current-URL comparisons in the CLI or MCP. AI assistants can pass the same config and file contents to the MCP build_report tool.

Platform and workflow guides

Topic

Guide

CLI setup and real data

한국어

Import Search Console CSV

한국어 · English

Localized URLs, canonical, and hreflang

한국어 · English

robots.txt, indexing, and JSON-LD judgement rules

한국어 · English

Google URL Inspection against the current page

한국어 · English

Naver and Daum Search, plus Naver AI Briefing

한국어 · English

ChatGPT Search citations and referrals

한국어 · English

Perplexity observations by search mode

한국어 · English

Google AI Overviews and AI Mode

한국어 · English

Gemini web app source observations

한국어 · English

Bing and Copilot citations and console metrics

한국어 · English

AI observation conditions and before-and-after comparison

한국어 · English

Open-source project comparison

한국어 · English

Install individual Agent Skills

The project supports the Agent Skills format. This command installs just seo-orchestrator for Claude Code and Codex. Replace or add names after -s to select other skills.

npx skills add shaul1991/search-visibility -s seo-orchestrator -a claude-code -a codex -y
node .agents/skills/seo-orchestrator/scripts/visibility.mjs https://example.org/ --lang en

For a manual install, copy the entire skill folder into .agents/skills/ (Codex) or .claude/skills/ (Claude Code). Start with seo-orchestrator when auditing multiple channels.

Skill

Scope

seo-orchestrator

Coordinates audits across channels and includes the CLI.

google-search

Crawling, JavaScript, canonical URLs, sitemaps, snippets, and Search Console.

naver-search

Search Advisor, site verification, Yeti, sitemaps, and snippets.

daum-search

Daum Search Registration, webmaster tools, and previews.

other-search-engines

Bing, Brave Search, DuckDuckGo, and Apple search.

ai-crawlers

Crawler access and directives for AI search and training.

ai-observations

Brand mentions and citations to owned sites and profiles.

structured-data

JSON-LD examples and platform support.

social-preview

Open Graph, X cards, KakaoTalk, and Meta previews.

indexnow

Changed-URL notifications for participating engines.

scaled-pages

Indexing and canonical rules for large sets of generated pages.

browser-compat

Brave Shields, favicons, manifests, and analytics behavior.

You can also install the complete set as a Claude Code plugin.

/plugin marketplace add shaul1991/search-visibility
/plugin install seo-skills@seo-skills

FAQ

Does a crawlable page automatically get indexed?

The audit interprets responses and crawler directives at the time of the check. Use each engine's console for its index status and selected canonical. Submissions and valid markup can help discovery or eligibility, while actual appearance depends on the platform.

Does the CLI collect AI answers or search performance automatically?

The CLI summarizes performance exports and answer observations you provide. The CLI itself needs no external dependencies or API keys. Official console features that require ownership use your account on that service.

How many pages does it check, and how do I switch languages?

The CLI audits up to 25 pages by default, with up to four concurrent checks. It uses the configured sitemap when supplied, or discovers same-origin sitemaps from the final URL's robots.txt. Korean is the default, and --lang en|ko overrides the config's locale.

Can I audit local pages?

The CLI accepts local HTTP URLs. Use an accessible deployed URL for tools that need to fetch it from the web.

Sources and license

Official sources and references · MIT license. Search Visibility is an independent open-source project. Check the latest official documentation when applying platform policies.

Compare AI answer visibility with competitors

Set brand and your domains or ownedUrlPrefixes in the config alongside the collected observations. Add a competitors array to track rivals on those same answers.

{
  "brand": "Acme",
  "domains": ["acme.example"],
  "observations": "observations.json",
  "competitors": [
    {
      "brand": "Nova",
      "aliases": ["Nova Labs"],
      "domains": ["nova.example"],
      "ownedUrlPrefixes": ["https://profiles.example/nova"]
    }
  ]
}

Mention rate and citation rate use the number of recorded answers as their denominator. Each brand contributes at most one mention and one citation per answer. SoV divides its mention count by the sum of mention counts across all tracked brands. A citation gap records a prompt execution that cited a tracked competitor while skipping your configured sources. Citation rates are unavailable for brands without configured sources.

HTML and JSON include Wilson 95% intervals for mention and citation rates overall, by engine and by tracked brand. JSON fields mentionInterval and citationInterval contain lower and upper bounds on a 0–1 scale. Intervals are null for empty samples or citations without ownership tracking. The answer-count badge (sampleConfidence) is low below 30, medium at 30–99, and high at 100 or more. The intervals assume independent answers. Prompt selection bias and repeated answers can affect coverage.

Run search-visibility visibility.config.json --lang en --out before and repeat with updated observations and --out after. Run search-visibility compare before/report.json after/report.json --lang en --out comparison for both gap lists and metric changes. Rate and SoV changes appear when the tracking definitions match and every answer pairs on its collection conditions.

Audit llms.txt and llms-full.txt

npx search-visibility https://example.com/docs --lang en --out docs-audit
npx --package=search-visibility seo-check https://example.com/docs --lang en --json

Auditing a URL automatically checks both files at the root of its final origin. llms.txt diagnostics in HTML and the llms array in JSON show HTTP status, media type, download size, Markdown title and summary checks, and sampled internal links. Site reports audit each origin once. HTTP diagnostics are skipped for local HTML files.

Both files are optional. Ordinary 404 and 410 responses are informational. A missing index alongside a published full file, an incorrect media type, an HTML error page, or broken Markdown links generates a warning. Each file is sampled for its first five distinct same-origin links. Recommended sizes are 64 KiB and 1 MiB respectively, with a 2 MiB read limit per file. llms.txt proposal

search-visibility https://example.org/ --crawl --max-pages 40 --lang en
seo-check https://example.org/ --crawl --json --lang en

With --crawl, the CLI follows server-rendered <a href> links in breadth-first order from the start URL. It makes sequential, same-origin requests and applies robots.txt to the start URL and each redirect destination. --max-pages limits link traversal including the start URL, defaults to 40, and accepts 1–100. The crawler follows up to five redirect hops per link.

The report lists 4xx and 5xx links with their referring pages, redirect chains of two or more hops and loops, and sitemap URLs unreachable from the start URL. The crawler uses the configured sitemap, same-origin declarations in robots.txt, or the root /sitemap.xml, in that order. It withholds orphan findings if sitemap collection or traversal is incomplete. With a config file, supply one start URL in targets.

The HTML and JSON reports combine start-page technical checks with crawl findings. Broken links cause exit code 1 in seo-check and in search-visibility when run with --fail-on-findings.

Use the local MCP server

Run search-visibility mcp --lang en with Node.js 18+. The server accepts newline-delimited JSON-RPC over stdio and returns tool data as JSON in a text content block. Supported MCP revisions are 2025-06-18 and 2025-11-25.

Tool

Input

audit_url

url (HTTP or HTTPS), optional expectIndexable or expectExcluded

audit_site

targets (HTTP or HTTPS URL array) and/or sitemap (HTTP or HTTPS URL), optional limit (1–100, default 25), expectIndexable and intentionallyExcluded (URL array)

build_report

config (the CLI config settings) and files (each file named in the config, as text). Returns the same report.json; targets and sitemap must be HTTP(S) URLs

compare_reports

before and after, the contents of two report.json files passed as objects

analyze_observations

observations array, with brand for nonempty samples and optional aliases, domains, ownedUrlPrefixes and competitors

For Claude Desktop, merge this entry into claude_desktop_config.json. For Cursor, use the same entry in .cursor/mcp.json and add "type": "stdio" to the server object. No local clone required — npx runs the published npm package directly.

{
  "mcpServers": {
    "search-visibility": {
      "command": "npx",
      "args": ["-y", "search-visibility", "mcp", "--lang", "en"]
    }
  }
}

Register the same server in Codex.

codex mcp add search-visibility -- npx -y search-visibility mcp --lang en

Available Tools

5 tools
analyze_observations
Read-only

Analyze recorded AI answers for brand mentions, citations and competitor gaps.

Inputs: observations (required), brand, aliases, domains, +2 more.

audit_site
Read-only

Audit HTTP(S) targets and discover pages from their sitemap or an explicit sitemap URL.

Inputs: limit, sitemap, targets, expectIndexable, +1 more.

audit_url
Read-only

Audit one HTTP(S) page for technical SEO, indexing, llms.txt and robots.txt crawler rules, including Kimi search, user requests and training. DeepSeek crawler access cannot be assessed from robots.txt. Set expectIndexable for a page meant for search or expectExcluded for a page intentionally kept out of search; without either, noindex is reported for confirmation. Sitemaps and counterpart pages are not checked (use audit_site).

Inputs: url (required), expectExcluded, expectIndexable.

build_report
Read-only

Build a Search Visibility report.json from the CLI config settings, with each referenced file passed as text in files. Covers Search Console CSV, Google generative AI performance, Bing AI Performance, Naver Search Advisor, URL Inspection, AI answers and AI referrals, plus audits of HTTP(S) targets or a sitemap. Pass the result to compare_reports.

Inputs: config (required), files.

compare_reports
Read-only

Compare two inline Search Visibility report.json objects (from build_report or the CLI). Changes are null, with reasons, when collection conditions differ or are not recorded. Inputs that are not compared are listed in notCompared.

Inputs: after (required), before (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Open-source MCP server that audits websites for AI search readiness, providing deterministic scoring (0-100) and prioritized fix lists for metrics like JSON-LD, llms.txt, heading hierarchy, and AI crawler access.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      A local stdio MCP server that lets AI assistants run audits of generic HTML and Shopify product pages, gathering reproducible evidence on identity, structured data, images, links, specifications, and optional browser or link checks. It returns JSON and Markdown reports that the client can interpret, while keeping automated findings separate from checks requiring human judgment.
      MIT