Search Visibility
Sends audit alerts to Discord webhooks and checks Discord crawler access and card previews, including theme-color handling.
Imports and reviews Google Search Console CSV exports with clicks, impressions, and CTR alongside AI referral and citation data.
Sends audit alerts to Slack webhooks and checks Slack crawler access and card previews.
Sends audit alerts to Telegram via bot token and chat ID, and checks Telegram crawler access and card previews.
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.

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 enTo 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 enOpen 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 ennpx search-visibility ./visibility.config.json --out before --lang enDeploy 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 enFor 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 enTo 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 enUse
"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. OptionalMethod,Statuscolumns filter forGETand 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 |
| HTTP status, media type, Markdown structure, and sampled internal links for |
Internal link 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 |
Social & messenger previews | Crawler access & card checks for Telegram, Discord ( |
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 ( |
Chrome Extension (MV3) | 1-click audit for the active tab (including |
Import & compare in the browser and MCP | The CLI's measured-data inputs and |
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 enHow 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.2. Internal link crawl and llms.txt check
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 |
Use URL Inspection to check indexing and Google's selected canonical. Set the date range and filters in Performance and export CSV. | |
Check page optimization with the quick site check. Verify ownership before requesting a crawl in Webmaster Tools. | |
Register a site or blog and look up its registration status. | |
Verify ownership, then inspect URLs and submit sitemaps. | |
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 |
Check which Google rich result types are eligible and identify missing or invalid required properties. | |
Validate Schema.org types and properties. | |
Inspect the link preview and scrape details, then use Scrape Again after an update. | |
Sign in to Kakao, review the sharing preview, and clear the cache after changing Open Graph tags. | |
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
Run
search-visibility initas shown in Quickstart and fill intargets,brand, anddomains. SetownedUrlPrefixesto count citations to your own profiles on shared platforms.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
observationsor a JSON file relative to the config. From the first run, putmode,locale,region(actual access region) andrun(repetition number) on every observation; comparisons need all four.To include Google Search performance, set
searchConsoleto an object withfile,property,reportType,searchType,aggregation,timeZone,filtersandperiod(start,end,complete: true) before the baseline (fields). Runsearch-visibilityto generate a baseline. Review the sample size, brand mention rate, and owned-source citation rate by engine.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 incrawlerUnverified, apart fromcrawlerMatrix). A 404 shows the documented "no restriction rules" basis.Kimi and DeepSeek. A robots.txt block for
Kimi-SearchBot(search) orKimi-User(user requests) produces a WARN. Kimi says robots.txt may not apply directly to user requests. BlockingKimiBot(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,noneor anunavailable_afterdate that has passed, from robots meta orX-Robots-Tag; unparseable dates are not judged) appear above the score with the target bot, source and value. Mark intentionally excluded pages withintentionallyExcluded,--expect-excludedor 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
Linkheader or XML sitemaps, checks codes, self and return references and conflicts, and marks targets outside the sample as unverified. A missingx-defaultis optional information.comparelabels Search Console and AI results comparable, different or unverified, and leavesdelta: nullwith 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,regionandrun. 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
comparedoes not compare are listed innotCompared.
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 |
| Saved Google URL Inspection API responses | Current canonical (HTML and header) against Google's last observation. Guide |
| Generative AI performance CSV | AI impressions, kept apart from Web totals; clicks and CTR as not provided. Guide |
| AI Performance JSON record | Total Citations and per-query Citation Share with their denominators. Guide |
| 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 enWithout 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 | |
Localized URLs, canonical, and hreflang | |
robots.txt, indexing, and JSON-LD judgement rules | |
Google URL Inspection against the current page | |
Naver and Daum Search, plus Naver AI Briefing | |
ChatGPT Search citations and referrals | |
Perplexity observations by search mode | |
Google AI Overviews and AI Mode | |
Gemini web app source observations | |
Bing and Copilot citations and console metrics | |
AI observation conditions and before-and-after comparison | |
Open-source project comparison |
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 enFor 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 |
Coordinates audits across channels and includes the CLI. | |
Crawling, JavaScript, canonical URLs, sitemaps, snippets, and Search Console. | |
Search Advisor, site verification, Yeti, sitemaps, and snippets. | |
Daum Search Registration, webmaster tools, and previews. | |
Bing, Brave Search, DuckDuckGo, and Apple search. | |
Crawler access and directives for AI search and training. | |
Brand mentions and citations to owned sites and profiles. | |
JSON-LD examples and platform support. | |
Open Graph, X cards, KakaoTalk, and Meta previews. | |
Changed-URL notifications for participating engines. | |
Indexing and canonical rules for large sets of generated pages. | |
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-skillsFAQ
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 --jsonAuditing 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
Crawl internal links
search-visibility https://example.org/ --crawl --max-pages 40 --lang en
seo-check https://example.org/ --crawl --json --lang enWith --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 |
|
|
|
|
|
|
|
|
|
|
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 enAvailable Tools
5 toolsanalyze_observationsRead-only
Analyze recorded AI answers for brand mentions, citations and competitor gaps.
Inputs: observations (required), brand, aliases, domains, +2 more.
audit_siteRead-only
Audit HTTP(S) targets and discover pages from their sitemap or an explicit sitemap URL.
Inputs: limit, sitemap, targets, expectIndexable, +1 more.
audit_urlRead-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_reportRead-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_reportsRead-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
Unified 15-tool SEO, SERP, clean Markdown & GEO (LLM citation Share-of-Voice) MCP server.
AI search crawler, llms.txt, Schema.org, OpenAPI & email MX/SPF/DMARC audits via MCP and x402.
Experimental MCP server for current empirical verification of explicit public HTTPS endpoint claims.
Zero-auth Streamable HTTP MCP server for cited Web3, token risk, and on-chain deep research.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceOpen-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.1MIT
- AlicenseNot gradedqualityBmaintenanceAn open-source, local-first MCP server for automated Schema.org JSON-LD generation, GA4 metric validation, /llm.txt auditing, and content stickiness analytics.MIT
- AlicenseNot gradedqualityBmaintenanceA 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
- AlicenseNot gradedqualityCmaintenanceThis local stdio MCP server enables AI clients to search, read, and safely write Omeka S REST API resources such as items, media, item sets, site pages and blocks, with value annotations and read-back verification of writes.GPL 3.0