footnote-mcp

io.github.KazKozDev由 GitHub 帳號 KazKozDev 發布v0.2.6更新於 Oct 24, 2026

Source-grounded web research: search, extraction, verification, and browser automation.

概覽

AI 產生的概覽

讓助理搜尋網頁、從頁面擷取表格與檔案,並依據原文核對論述並附上引用。

可以做什麼
透過 stdio 提供 45 個工具,涵蓋多引擎網頁搜尋、頁面抓取與爬取、表格與連結檔案擷取,以及論述核驗。evidence_entailment、corroborate_claim、locate_claim_span 等核驗工具會把論述與已抓取的原文比對,回傳判定結果以及支撐句和字元位移。瀏覽器層可驅動無頭 Chromium 處理依賴 JavaScript 的頁面,web_deep_search 則把搜尋、抓取、擷取與核驗串成一個帶證據帳冊的研究流程。
適用情境
適合研究結論必須可追溯到來源、而不能只依據搜尋摘要的情境,例如事實查核、建立證據帳冊,或從頁面擷取結構化表格與 CSV、PDF 資料。也適合需要真實瀏覽器才能算繪或會阻擋一般 HTTP 請求的頁面。
執行需求
需要 macOS、Linux 或 Windows 上的 Python 3.10 或更新版本,可透過 pip、uvx、pipx、Docker 或原始碼安裝。瀏覽器層與瀏覽器工具需要經 Playwright 安裝的 Chromium。任何支援 stdio 的 MCP 用戶端皆可使用。不需要 API 金鑰、帳號或託管服務;選用變數包括 TAVILY_API_KEY、BRAVE_API_KEY、GOOGLE_API_KEY 與 GOOGLE_CSE_ID、GITHUB_TOKEN、FOOTNOTE_SEARXNG_URL、FOOTNOTE_PROXIES。語意重排可選用 Ollama 或本機嵌入執行環境,OCR 需要系統 tesseract 執行檔。
安裝前請注意
TAVILY_API_KEY、BRAVE_API_KEY、GOOGLE_API_KEY、GOOGLE_CSE_ID、GITHUB_TOKEN 等選用金鑰會啟用計費或需驗證的提供者,可能產生費用;FOOTNOTE_PROVIDER_STRATEGY 決定是否呼叫計費提供者。web_fetch_authenticated 接受自訂 cookie 與工作階段標頭,憑證可能被送往目標網站。export_dataset 會寫出 CSV、XLSX 或 JSON 檔案;產生的擷取配方在受限子程序中執行,README 稱其為驗證器而非強化沙箱。抓取的頁面會快取在 FOOTNOTE_SOURCE_CACHE 指定的本機目錄,零金鑰搜尋提供者採抓取方式,結果會隨 IP 而異。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

footnote-mcp — web research MCP server with claim verification

Search, extract data, and verify every claim against the source page.

Unlike search APIs (Tavily, Exa) or scrapers (Firecrawl) that return raw text or markdown, footnote-mcp is built for verification: every claim is checked against the raw source text with sentence-level citations and character offsets, with zero required API keys.

Add to Cursor · Claude Desktop setup

[footnote-mcp searching the web, extracting data, and verifying each claim against its source]

Runs without API keys · 45 tools · MIT licensed

Quick start

bash
pip install footnote-mcppython -m playwright install chromium   # browser tier for JS-heavy and blocked pages

footnote-mcp speaks MCP over stdio. Point a client at it — Claude Desktop's claude_desktop_config.json, or Cursor's ~/.cursor/mcp.json:

json
{"mcpServers": {"footnote": {"command": "footnote-mcp"}}}

No API keys are needed to start. Restart the client and ask it to run startup_health_check: it reports, one line each, whether the extractors, the PDF and spreadsheet parsers, the browser, OCR and the cache directory are usable on this machine — so a missing optional piece shows up now rather than halfway through a research task.

Search the web without configuring an API key

Ask the assistant to look something up and web_search queries the zero-key providers — Bing, DuckDuckGo, Brave, Wiby — alongside any keyed provider you configured, then deduplicates and merges them into one ranking.

Every result carries the engines that returned it, so a page two independent indexes agree on is distinguishable from one only a single engine found, and a relevance score. Snippets count as discovery only: nothing at this stage is evidence yet, which is what the next two sections are for.

Provider routing, keys, and semantic reranking: docs/search-backends.md.

Extract tables and files from a page into structured rows

web_extract_tables turns a page's HTML tables into named columns and rows, each set tagged with the URL it came from and with the true total, so a truncated answer says so instead of looking complete. Point it at a Wikipedia revenue table and you get Rank, Name, Industry, Revenue, Employees as fields you can sort and compare, not a wall of text to re-read.

Data a page links rather than renders is covered too: web_detect_downloads finds the CSV/TSV/XLS/XLSX/PDF/JSON attached to it, web_parse_file parses them, and web_fetch_json takes an API endpoint directly.

Verify that a source actually supports a claim

The part a plain search tool does not do. evidence_entailment compares a claim to the source text and returns a verdict; corroborate_claim triangulates across excerpts, and locate_claim_span returns the supporting sentence with character offsets.

Given the claim "Norway's battery-electric share of new passenger cars was 82.4% in 2023" and a source reading "In 2023, battery-electric vehicles accounted for 82.4% of all new passenger cars registered in Norway", the verdict comes back as a value your agent can act on rather than a paragraph it has to interpret:

json
{"status": "supported", "score": 0.778, "reason": "token overlap heuristic", "backend": "heuristic"}

The default backend is deterministic and offline, and it never quietly hands the decision to another model: where it is not confident it returns needs_review with the spans it matched, for you — or the assistant that called it, which already has both texts — to read. A local LLM judge (backend="ollama") and a local NLI model (backend="local_nli") are there when you want them. Measured accuracy of the deterministic path, which is the default: benchmarks/REPORT.md.

How it works

Search snippets are discovery, never evidence. Discovery merges several independent indexes; fetching escalates through a ladder — plain HTTP, optional proxy, headless Chromium, optional hosted scrape API — and stops at the cheapest tier returning real content. Extraction pulls text, tables, and linked files, each cached with its source URL. Only then does verification run, checking the claim against the fetched text before it counts. web_deep_search wraps the whole loop: it decomposes requirements, re-searches unresolved gaps, and returns an evidence ledger with a funnel showing where candidates were lost.

query → merged discovery → fetch ladder → extract (text · tables · files) → verify vs source → evidence
All 45 tools by category

Search (8)

  • web_search — Multi-engine search across zero-key providers (Bing, DuckDuckGo, Brave, Wiby) and optional metered APIs
  • web_search_recent — Search restricted to a recency window (day, week, month, year)
  • web_deep_search — Iterative multi-step research loop with evidence ledger and funnel diagnostics
  • papers_search — Academic paper search via Crossref and arXiv
  • encyclopedia_search — Wikipedia and Wikidata entity lookup plus read-only SPARQL
  • github_search — Search public repositories, code, issues, and commits
  • archive_search — Historical snapshots via Wayback Machine and Common Crawl
  • generate_search_queries — Generate targeted operator queries (site:, filetype:csv)

Fetch (4)

  • web_read — Fetch URL, extract text, evaluate source quality, and cache snapshot
  • web_fetch_authenticated — Fetch pages requiring custom cookies or session headers
  • web_archive_fetch — Retrieve the nearest Wayback Machine snapshot for dead or changed URLs
  • web_crawl — Breadth-first crawl following links from a starting URL

Extract (15)

  • web_extract_tables — Parse HTML tables into typed columns and rows with source URLs
  • web_detect_downloads — Discover linked data files (CSV, TSV, XLS, XLSX, PDF, JSON, XML)
  • web_parse_file — Download and parse tabular data and PDF documents
  • web_fetch_json — Fetch direct REST API endpoints into parsed JSON
  • check_date_completeness — Validate time series date continuity across calendar and market schedules
  • resolve_units — Normalize currencies, units, and currency pairs
  • validate_unit_rows — Detect and reject rows with conflicting units or currencies
  • reconcile_time_series — Align series by key, compute deltas, and flag missing entries or outliers
  • export_dataset — Save consolidated rows to CSV, XLSX, or JSON files
  • tool_spec_propose — Propose task-specific extraction recipe specifications
  • tool_code_generate — Generate starter Python extraction recipes
  • tool_code_validate — Validate recipe code against an AST safety allowlist
  • tool_code_run_sandboxed — Execute extraction code inside a restricted subprocess
  • tool_promote — Persist validated recipes to local memory
  • recipe_registry — List, inspect, run, and delete registered extraction recipes

Verify (8)

  • evidence_entailment — Evaluate whether source text entails a claim (heuristic, Ollama, or NLI)
  • corroborate_claim — Triangulate claim consensus or conflict across multiple excerpts
  • locate_claim_span — Locate supporting sentences with character offsets and containment scores
  • classify_source — Classify domains (official, aggregator, blog, forum, interactive, blocked)
  • source_cache_get — Retrieve cached page snapshots and provenance metadata
  • source_cache_put — Store page contents and metadata into persistent cache
  • build_research_debug_report — Compact diagnostic report of queries, sources, and verification gaps
  • startup_health_check — Inspect availability of parsers, browser runtime, OCR, and cache directories

Browser (10)

  • web_navigate — Open URL in Chromium session (headless or --headed)
  • web_snapshot — Inspect interactive DOM accessibility tree with stable element references
  • web_click — Click interactive page elements by reference ID or CSS selector
  • web_type — Enter text into form fields and input elements
  • web_scroll — Scroll viewports or containers to reveal dynamic content
  • web_extract — Extract targeted HTML elements or attributes
  • web_screenshot — Capture page screenshots with optional Tesseract OCR
  • browser_set_date_range — Manipulate dynamic web date-picker controls
  • browser_extract_tables — Extract client-side rendered tables after DOM hydration
  • browser_extract_tables_for_date_range — Automate date selection and table extraction cycles

Full parameters and schemas: docs/tools.md.

Requirements

  • Python 3.10 or newer, on macOS, Linux or Windows — CI runs all six combinations
  • Chromium via python -m playwright install chromium, for the browser tier and browser tools
  • Any MCP client speaking stdio; config is documented for Claude Desktop and Cursor
  • Optional, for semantic: true: an Ollama daemon, or requirements-embed.txt to run the same bge-m3 weights in-process — the only option where no daemon exists, such as Docker
  • Optional: the system tesseract binary for OCR in web_screenshot and scanned PDFs
  • No API keys, no account, no hosted service

Limitations

  • The offline entailment heuristic scores 100% on numeric and factual claims but 83% overall on the labelled set; purely semantic negation and paraphrase need backend="ollama".
  • The benchmark runner has no hard per-task timeout on Windows: it is built on signal.setitimer, which Windows lacks, so a hung task there runs unguarded. The server itself is unaffected.
  • Zero-key providers are scraped, so results vary by IP. A refused search retries through a proxy and, for Bing and Brave, headless Chromium; DuckDuckGo answers Chromium with an error stub, so there it is cooldown or nothing.
  • Semantic reranking is best-effort: with no embedding runtime reachable, the original ranking is returned unchanged.
  • Generated recipes run in a subprocess that may import only csv, datetime, html, json, math, re and statistics, with eval, exec, open and __import__ rejected — a validator, not a hardened sandbox.
  • The hosted HTTP server holds per-user rate limits in memory; they reset on restart.

Configuration

The server takes one flag, --headed, which shows the Chromium window instead of running it invisibly — useful for watching the browser tier work on a page that keeps failing:

json
{"mcpServers": {"footnote": {"command": "footnote-mcp", "args": ["--headed"]}}}

Environment variables

Every variable is optional. The free tier (Bing, DuckDuckGo, Brave, Wiby) answers first; metered providers are called only when free results fall below FOOTNOTE_MIN_FREE_RESULTS. Paid search is the fallback, not the default: without keys, most queries are unaffected, and only narrow or obscure searches stay thin rather than being topped up.

VariableEffect when setEffect when unset
FOOTNOTE_SEARXNG_URLSelf-hosted SearXNG joins the free tier, unmeteredFree tier is Bing, DuckDuckGo, Brave, Wiby
TAVILY_API_KEYTavily joins the metered rotationSkipped; never called
BRAVE_API_KEYBrave Search API joins the rotation, alongside scraped BraveOnly the scraped, keyless Brave is used
GOOGLE_API_KEY and GOOGLE_CSE_IDGoogle Programmable Search joins the rotationSkipped; never called
FOOTNOTE_MIN_FREE_RESULTSFree results threshold to trigger metered fallback3
FOOTNOTE_PROVIDER_STRATEGYmerge calls all providers; cost_aware calls metered only if neededcost_aware
GITHUB_TOKENgithub_search runs at authenticated rate limitsUnauthenticated rate limits
FOOTNOTE_RESEARCH_MODELOllama model for query planning and fact extraction in web_deep_searchRuns without planner
FOOTNOTE_EMBED_MODELEmbedding model for semantic: true rerankingbge-m3
FOOTNOTE_EMBED_BACKENDollama needs the daemon; local loads the same weights in-process (requirements-embed.txt)auto: daemon if running, else in-process, else ranking is unchanged
FOOTNOTE_BROWSER_FALLBACK0 disables Chromium browser fallbackEnabled
FOOTNOTE_SEARCH_CACHE_TTLSearch cache TTL in seconds (0 disables)86400
FOOTNOTE_PROXIESComma-separated proxy URLs for requestsDirect connections
FOOTNOTE_SCRAPE_APIHosted scraper fallback (firecrawl or scrapingbee) with keyBrowser tier is last fallback
FOOTNOTE_SOURCE_CACHEDirectory for raw cached pages~/.footnote-mcp/source_cache/

Full list and defaults: .env.example, docs/fetching.md, docs/search-backends.md.

Docker, uvx, from source, OCR, tests

Docker

bash
docker run -i --rm ghcr.io/kazkozdev/footnote-mcp:latest   # bundles Chromium and Tesseract
json
{"mcpServers": {"footnote": {"command": "docker",  "args": ["run", "-i", "--rm", "ghcr.io/kazkozdev/footnote-mcp:latest"]}}}

uvx / pipx / from source

bash
uvx footnote-mcppipx install footnote-mcppython3 -m venv .venv && source .venv/bin/activate && pip install -e .

None of these fetch the browser. Run python -m playwright install chromium once as well, or the browser tier and the browser tools are unavailable.

OCR and local NLI

pytesseract needs the system binary (brew install tesseract). evidence_entailment with backend="local_nli" needs pip install -r requirements-nli.txt and FOOTNOTE_NLI_MODEL.

Tests

bash
python -m pytest -q                              # offline; no network or keysRUN_LIVE_WEB_TESTS=1 python -m pytest -m live    # opt-in live search



來源:README.md,提交 1979cac

工具

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

版本歷史

1
  1. v0.2.6最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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