Citation Intelligence

io.github.AutomateLab-tech由 GitHub 帳號 AutomateLab-tech 發布v0.12.1更新於 Oct 24, 2026

Check what Perplexity, Claude, ChatGPT, Gemini, and Google AI Overviews cite for any query.

概覽

AI 產生的概覽

一個自託管的 MCP 伺服器,讓助理查詢 Perplexity、Claude、ChatGPT、Gemini、Google AI Overviews 和 Bing 對某個查詢引用了哪些網址。

可以做什麼
檢查某查詢的引用情況與跨引擎共識,擷取被引用的片段,預測被引用可能性,並追蹤各引擎和網域的引用趨勢與新鮮度,包括某網域是否被引用、被哪些查詢引用以及兩個時間區間的差異。取得外部訊號,如 Google AI Overview 是否存在、維基百科提及、Search Console 落差和答案框位置。儲存並執行具名查詢面板作為編輯觀察清單,產出含聲量佔比和情感傾向的可見度報告。逐項比較競爭對手被引用的網域和網址訊號。稽核頁面和網站地圖的 schema.org 有效性、AI 爬蟲存取權限、引用可能性,並產生 llms.txt。
適用情境
適合 SEO、GEO 和內容團隊、獨立開發者或希望以程式方式取得 AI 引用資料而不使用託管儀表板的代理,用於檢查網站是否出現在 AI 回答中、挑選題材,或依據引用證據決定是否發布。
執行需求
透過 npx 執行的本機程序,需要 Node 20 或更新版本。選用 API 金鑰透過環境變數提供:PERPLEXITY_API_KEY、SERPAPI_KEY、ANTHROPIC_API_KEY、OPENAI_API_KEY、GEMINI_API_KEY、BING_API_KEY 和 BRAVE_API_KEY,只設定已有的即可。引用預測和維基百科訊號等工具無需金鑰。Google Search Console 落差分析需要 GCP 服務帳戶。需要連線至各廠商的網路。
安裝前請注意
API 金鑰從環境變數讀取並直接傳給廠商;ANTHROPIC_API_KEY、OPENAI_API_KEY 等付費金鑰會依查詢產生費用,固定引擎或使用快取可限制開銷。API 代理引擎的結果僅供方向參考,可能與消費級產品不同。面板和報告會在設定目錄寫入快照和本機快取檔案。查詢和網址會傳送給第三方廠商。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Citation Intelligence,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

Citation Intelligence MCP

A free, self-hosted MCP server that tells your agent what LLMs cite - across Perplexity, Google AI Overviews, ChatGPT, Claude, Gemini, and Bing.

[npm version] [license] [node] [CI]

What this is

An MCP server for agents and developers who need to know which URLs get cited by AI search engines for any query. Install once, query from any MCP-compatible client (Claude Desktop, Cursor, Claude Code, Continue, Cline, n8n, LangGraph). Self-hosted, no account, no centralized backend. Bring your own API keys; nothing is stored on a remote server.

Who this is for

Install this if you're:

  • Building an agent that does research and want it to cite sources LLMs already trust
  • A solo dev or indie hacker checking whether your SaaS is showing up in AI search
  • A content creator confirming your articles are being cited by ChatGPT, Claude, or Perplexity
  • An SEO or GEO practitioner who wants programmatic citation data without a $295-$499/mo dashboard
  • Running an editorial pipeline and want citation-deficit-driven topic selection
  • Comparing competitor visibility across AI engines for any niche

Do NOT install this if you want:

  • A polished marketing dashboard with charts and team seats - try Profound, AthenaHQ, or Otterly.AI
  • A hosted service with SLAs - this is self-hosted by design
  • Citation tracking for academic papers - try citecheck
  • 350M+ pre-modeled prompts - that's Ahrefs Brand Radar

Why this exists

The AI citation tracking market is dominated by VC-funded dashboards starting at $295/mo. None ships MCP-first. If you're an agent or developer who wants citation data piped directly into your workflow - not into a SaaS login - there isn't a tool for you. This is that tool.


Tools

Tools are grouped into seven namespaces: citations_*, domain_*, signals_*, panel_*, report_*, competitors_*, audit_*. The prefix is the question category; the suffix is the action. Wire names use underscores (not dots) so Anthropic-API-based MCP clients (Claude Desktop, Claude Code) can forward the tool list without HTTP 400.

Start with citations_provenance or domain_am_i_cited. Single-engine results (citations_check with a pinned engine) are directional; multi-engine consensus is the honest signal. A URL cited by 4 of 5 engines is a very different finding than one cited by 1.

citations_* — query-level: who cites what, with what evidence

ToolPurpose
citations_provenanceRecommended first tool. Fan a query across engines; per-URL cross-engine consensus matrix. Returns interpretation_note per engine.
citations_checkURLs cited by Perplexity / Claude / ChatGPT / Gemini / Google AI Mode for a query; or web rank via bing_serp / brave_serp
citations_evidenceExtract the cited snippet from raw_answer for each citation (why, not just that)
citations_predictCitation likelihood from public signals - no LLM fired
citations_trendTime-series report of citation rate + per-query gained/lost deltas
citations_freshnessRecency score (halflife=365d) for the pages an engine cites

domain_* — domain-level: am I cited, what for

ToolPurpose
domain_am_i_citedDomain citation check. With engine=auto (default): fans across all available LLM engines, returns per-engine breakdown + cross-engine consensus. Pin engine= to reduce cost.
domain_cited_forQueries the domain has been cited for, from local cache
domain_cited_for_diffDiff of domain_cited_for between two time windows for a domain

signals_* — external signals: AI Overview, Wikipedia, GSC, answer-box position

ToolPurpose
signals_ai_overviewGoogle AI Overview presence + cited sources
signals_wikipediaList Wikipedia articles referencing a domain (zero keys)
signals_gsc_gapJoin Google Search Console performance with AI citation status
signals_answer_boxBin each citation's first mention in raw_answer into early/middle/late thirds

panel_* — saved query panels (editorial watchlists)

ToolPurpose
panel_trackSave / load / list named query panels (editorial watchlists)
panel_runRun a panel through domain_am_i_cited and snapshot to disk

report_* — turnkey reporting artifacts

ToolPurpose
report_visibilityOne-call AI visibility report over a query set (or panel): citation rate (mention frequency), share of voice vs competitors, average rank, and brand sentiment. Returns structured data + a Markdown artifact for a public page.

competitors_* — competitive landscape per query

ToolPurpose
competitors_canonical_setTop cited domains per query, aggregated across engines
competitors_competeEnd-to-end competitive snapshot: your URL vs top cited competitors
competitors_compareSide-by-side citations_predict across 2-10 URLs

audit_* — fixable on-page / on-site checks

ToolPurpose
audit_schemaDeep schema.org validation - required fields per @type, malformed JSON-LD
audit_structured_dataRepair-oriented schema.org diagnostics + suggested patches
audit_crawler_accessVerify GPTBot / ClaudeBot / PerplexityBot / CCBot / Google-Extended etc. can fetch a URL
audit_sitemapBulk citations_predict across every URL in a sitemap, worst-first
audit_sitemap_mapCross-reference sitemap URLs with cached citations (inverse of audit_sitemap)
audit_llms_txtGenerate an llms.txt (https://llmstxt.org) from a sitemap

Prompts

Server-side prompt templates the client can offer end users (call via the MCP prompt list):

  • audit_citation_readiness(url) - chains citations_predict + audit_schema
  • audit_competitor_snapshot(query, your_url?) - chains competitors_canonical_set + competitors_compete
  • audit_crawler_checkup(url) - runs audit_crawler_access and writes a remediation list
  • audit_gap_analysis(domain, days?) - drives signals_gsc_gap and suggests next moves
  • audit_sitemap_coverage(sitemap_url) - runs audit_sitemap_map and recommends priorities

Resources

Cache views the client can read or subscribe to (no tool call required):

  • citation://cache/summary - entry counts by type/engine, unique queries/URLs, oldest/newest
  • citation://panels - saved panels + per-panel snapshot counts
  • citation://docs/llms-txt - llms.txt primer (markdown)
  • citation://docs/ai-crawlers - AI crawlers cheatsheet (markdown)
  • citation://domain/{domain}/cited-for - dynamic template: citations for {domain}

What this actually measures

Every response includes a surface field that tells you exactly how the data was collected. Understanding this is important before drawing conclusions.

SurfaceEnginesWhat it means
consumer_scrapeperplexity, google_ai_modeProxied through a real consumer-facing AI search product. Closest to what your users see.
api_proxyclaude, openai, geminiAPI call to a search-enabled LLM. May differ from consumer product behavior — different model versions, no UI-level ranking logic, no personalization. Use as a directional proxy, not as ground truth.
web_rankbing_serp, brave_serpTraditional web search rank (not LLM citation). Measures whether a URL appears in SERP results, not whether an LLM cites it.
static_signalcitations_predict, signals_wikipediaOffline signal computed from public data. No live LLM query.

Per-engine notes

perplexity (consumer_scrape) — Sonar Pro via the Perplexity API with a consumer-equivalent system prompt. Reasonably close to Perplexity.ai. Citations come from search_results in the response; the citations fallback contains URL-only entries without title.

claude (api_proxy) — Claude Sonnet via the Anthropic Messages API with web_search tool enabled. The consumer Claude.ai product uses different routing and ranking logic. Citation behavior can differ, especially for recent/time-sensitive queries.

openai (api_proxy) — gpt-4o + the web_search_preview tool via the OpenAI Responses API. Replaces the deprecated gpt-4o-search-preview alias OpenAI retired; base gpt-4o plus the tool is the supported path.

gemini (api_proxy) — Gemini 2.5 Pro via the Generative Language API with google_search grounding. Consumer Gemini uses the same grounding index but different re-ranking. Results are directional.

google_ai_mode (consumer_scrape) — Google AI Mode results via SerpAPI. Closest to what users see in Google Search. Requires SERPAPI_KEY.

bing_serp / brave_serp (web_rank) — Traditional SERP rank. Does NOT measure LLM citations. Use citations_check with these engines to compare organic web rank against LLM citation rank. domain_am_i_cited refuses these engines — it only measures LLM behavior.

The proxy nature of api_proxy engines is a feature, not a bug: it lets you run citation checks without consuming expensive consumer-product quota. Just don't report API-proxy numbers as "ChatGPT cites you" without the caveat.

Every tool response includes an interpretation_note field that summarizes the fidelity in one sentence. Full per-engine fidelity ratings: docs/surface-fidelity.md.


Quick start

bash
npx -y @automatelab/citation-intelligence

Requires Node 20 or later.

Claude Desktop

Add to %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

json
{  "mcpServers": {    "citation-intelligence": {      "command": "npx",      "args": ["-y", "@automatelab/citation-intelligence"],      "env": {        "PERPLEXITY_API_KEY": "pplx-...",        "SERPAPI_KEY": "...",        "ANTHROPIC_API_KEY": "sk-ant-...",        "OPENAI_API_KEY": "sk-...",        "GEMINI_API_KEY": "..."      }    }  }}

Set only the keys you have. Any MCP client that supports stdio transport works - same command / args pattern.

How it stays free

  • No central backend. The server runs on your machine. Nothing is uploaded.
  • Free tier first. SerpAPI gives 100 free Google AI Overview lookups/month. Bing Web Search has a free tier. Perplexity offers free Sonar access on signup.
  • Bring your own paid keys if you want the premium engines (Claude, ChatGPT, Gemini). Keys pass through to the vendor and never touch any third party.
  • Local cache at ~/.config/citation-intelligence/cache.json. Repeated queries hit cache, not API. Default TTL: 7 days.
  • citations_predict runs with zero keys - it scores citation likelihood from public signals (Wikipedia, schema.org, llms.txt, GitHub) without firing any LLM.

Privacy

  • All API calls go from your machine directly to the vendor (Anthropic, OpenAI, Google, Perplexity, Bing, SerpAPI).
  • No proxy. No analytics. No telemetry by default.
  • API keys are read from environment variables on the MCP process - never logged, never persisted.
  • Cache file lives at ~/.config/citation-intelligence/cache.json. Delete it any time.

Environment variables

VarPurposeFree tier?
PERPLEXITY_API_KEYcitations_check (perplexity — consumer_scrape)Yes
SERPAPI_KEYsignals_ai_overview + citations_check (google_ai_mode — consumer_scrape)100/month free
ANTHROPIC_API_KEYcitations_check (claude — api_proxy)Paid only
OPENAI_API_KEYcitations_check (openai — api_proxy)Paid only
GEMINI_API_KEYcitations_check (gemini — api_proxy)Yes
BING_API_KEYcitations_check (bing_serp — web_rank)Yes
BRAVE_API_KEYcitations_check (brave_serp — web_rank)Yes (2000/month)
CITATION_CACHE_TTL_DAYSCache TTL for citations_check entries (default 7)n/a
CITATION_AI_OVERVIEW_TTL_DAYSCache TTL for signals_ai_overview entries (default 1)n/a
CITATION_CONFIG_DIROverride config dir (default ~/.config/citation-intelligence)n/a

Example: am I cited?

You: For the queries "best AI citation tracker", "MCP for AI search", "self-hosted GEO tool",     is automatelab.tech cited?
(agent invokes `domain_am_i_cited`)
Result:{  "domain": "automatelab.tech",  "engine": "perplexity",  "results": [    { "query": "best AI citation tracker",   "cited": true,  "rank": 4 },    { "query": "MCP for AI search",          "cited": true,  "rank": 1 },    { "query": "self-hosted GEO tool",       "cited": false, "matching_urls": [] }  ],  "summary": {    "queries_total": 3,    "queries_cited": 2,    "citation_rate": 0.67,    "average_rank": 2.5  }}

Example: predict citation likelihood (no key required)

You: How likely is https://example.com/blog/post to be cited by AI?
(agent invokes `citations_predict`)
Result:{  "url": "https://example.com/blog/post",  "score": 62,  "grade": "C",  "signals": {    "wikipedia_linked": false,    "github_referenced": false,    "reddit_referenced": true,    "llms_txt_present": true,    "https": true,    "has_article_schema": true,    "has_faq_schema": false,    "has_breadcrumb_schema": true,    "canonical_clean": true,    "word_count": 1850,    "reading_time_minutes": 8,    "h2_count": 7,    "h2_question_count": 1,    "authority_link_count": 2,    "external_link_count": 6,    "internal_link_count": 11,    "last_modified_days_ago": 42,    "has_open_graph": true  },  "fixes": [    { "signal": "has_faq_schema", "suggestion": "Page already has question-style H2s. Wrap them in FAQPage JSON-LD - high-leverage win.", "estimated_lift": "high" },    { "signal": "h2_question_count", "suggestion": "Reframe at least 2 H2s as questions users actually ask...", "estimated_lift": "medium" }  ]}

The Wikipedia signal is measured (it correlates with citation) but no "go get a Wikipedia article" suggestion is emitted - the advice would be non-actionable. Scoring is split across six buckets - domain authority, structured data, content depth, link graph, freshness, metadata - so a thin page and a deep page on the same domain get meaningfully different scores.


Workflow recipes

Concrete patterns that compose the 26 tools into something useful. Costs assume ChatGPT or Perplexity at ~$0.01-0.03/query.

1. Weekly citation tracker

The single highest-ROI pattern. Pick 20-30 queries from your editorial backlog, snapshot weekly, watch the rate trend.

# One-time setuppanel_track name="editorial-watchlist" domain="example.com" action="save"            queries=["best widget tutorial", "how to set up X", ...]
# Weekly cron (5 min, ~$0.20-0.60 per run)panel_run name="editorial-watchlist"
# Anytimecitations_trend panel="editorial-watchlist"

citations_trend returns per-query deltas: which queries flipped from cited: false to cited: true since the first snapshot. That's your real editorial-impact metric.

2. Pre-publish gate

Before publishing a post, find out who owns the citation slot and whether the slot is worth competing for.

# 1. Is there an AI Overview to compete for?signals_ai_overview query="<target query>"
# 2. Who is cited today?citations_check query="<target query>"
# 3. After publish + 14 days: did the post break in?domain_am_i_cited domain="example.com" queries=["<target query>"]

If citations_check returns 5+ strong incumbents on a low-volume query, pick a different angle. If ai_overview_present: false, the query has no AI surface - reconsider.

3. Bulk site audit

Catch site-wide structural issues across every page in one pass. Zero API spend.

audit_sitemap sitemap_url="https://example.com/sitemap.xml" limit=200

Returns worst_first sorted by citation-likelihood score. Surfaces missing schema, conflicting canonicals, missing /llms.txt, broken HTTPS.

4. Competitor signal gap

You're not cited; they are. Why?

# 1. Find the top-cited URLs for your target querycitations_check query="<query>"
# 2. Compare your URL to theirs signal-by-signalcompetitors_compare urls=[  "https://example.com/your-post",  "https://competitor-1.com/their-post",  "https://competitor-2.com/their-post"]

diverging_signals is the list of where you're losing. Usually obvious once you see it - they have FAQ schema, GitHub references, Wikipedia links - you don't.

5. Google-rank vs AI-citation gap

The closest editorial wins are queries where you already rank in Google's top 10 but are invisible to AI. Requires a GCP service account with webmasters.readonly scope.

signals_gsc_gap  domain="example.com"  queries=["...editorial watchlist..."]  start_date="2026-04-01"  end_date="2026-05-01"

closest_wins returns queries with position <= 10 and ai_cited: false, sorted by impressions desc. Push citation signals on those specific URLs first.

6. Wikipedia mention monitor

Wikipedia is the top-correlation signal but the advice "get on Wikipedia" is useless. So instead: watch when it happens organically.

signals_wikipedia domain="example.com" limit=50

Returns Wikipedia article URLs that already link to the domain. Re-run quarterly; the diff is your "we got a Wikipedia citation" alert.

Schema.org

json
{  "@context": "https://schema.org",  "@type": "SoftwareApplication",  "name": "Citation Intelligence MCP",  "applicationCategory": "DeveloperApplication",  "operatingSystem": "Cross-platform",  "description": "Self-hosted MCP server for querying AI citation data from Perplexity, Claude, ChatGPT, Gemini, Bing, and Google AI Overviews.",  "offers": { "@type": "Offer", "price": "0" },  "url": "https://github.com/AutomateLab-tech/citation-intelligence"}

Contributing

Bug reports, feature ideas, and PRs welcome. See CONTRIBUTING.md.

Security

Report a vulnerability via SECURITY.md.

License

MIT - see LICENSE.

Built by automatelab.tech

Maintenance and verification

See the maintenance guide for interpretation limits, current tool names where applicable, and reproducible verification.

來源:README.md,提交 8247bd6

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.12.1最新Oct 13, 2026
  2. v0.12.0Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分