Citation Intelligence
io.github.AutomateLab-techPublished by GitHub account AutomateLab-techv0.12.1Updated Oct 24, 2026
Check what Perplexity, Claude, ChatGPT, Gemini, and Google AI Overviews cite for any query.
Overview
A self-hosted MCP server that lets an assistant check which URLs Perplexity, Claude, ChatGPT, Gemini, Google AI Overviews and Bing cite for a query.
- What you can do
- Check citations and cross-engine consensus for a query, extract cited snippets, predict citation likelihood and track citation trends and freshness across engines and domains, including whether a domain is cited and for which queries over time, and diff two time windows. Pull external signals such as Google AI Overview presence, Wikipedia mentions, Search Console gaps and answer-box position. Save and run named query panels as editorial watchlists, and produce visibility reports with share of voice and sentiment. Compare competitors' cited domains and URLs signal by signal. Audit pages and sitemaps for schema.org validity, AI crawler access, citation likelihood and llms.txt generation.
- When to use it
- Useful for SEO, GEO and content teams, indie developers or agents that want programmatic AI citation data without a hosted dashboard, for checking whether a site appears in AI answers, choosing topics, or gating publishing decisions on citation evidence.
- Requirements
- Local process run via npx, requiring Node 20 or later. Optional API keys by environment variable: PERPLEXITY_API_KEY, SERPAPI_KEY, ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY, BING_API_KEY and BRAVE_API_KEY; set only the ones you have. Some tools, such as citation prediction and Wikipedia signals, work with no keys. Google Search Console gap analysis needs a GCP service account. Network access to the vendors is required.
Installation
In SourceWeft
- Open Citation Intelligence in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
domain_* — domain-level: am I cited, what for
signals_* — external signals: AI Overview, Wikipedia, GSC, answer-box position
panel_* — saved query panels (editorial watchlists)
report_* — turnkey reporting artifacts
competitors_* — competitive landscape per query
audit_* — fixable on-page / on-site checks
Prompts
Server-side prompt templates the client can offer end users (call via the MCP prompt list):
audit_citation_readiness(url)- chainscitations_predict+audit_schemaaudit_competitor_snapshot(query, your_url?)- chainscompetitors_canonical_set+competitors_competeaudit_crawler_checkup(url)- runsaudit_crawler_accessand writes a remediation listaudit_gap_analysis(domain, days?)- drivessignals_gsc_gapand suggests next movesaudit_sitemap_coverage(sitemap_url)- runsaudit_sitemap_mapand 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/newestcitation://panels- saved panels + per-panel snapshot countscitation://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.
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
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):
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_predictruns 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
Example: am I cited?
Example: predict citation likelihood (no key required)
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.
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.
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.
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?
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.
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.
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
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.
Source: README.md at commit 8247bd6
Tools
0Version history
2- v0.12.1LatestOct 13, 2026
- v0.12.0Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
