Legalcite

io.github.Kevinx702由 GitHub 帳號 Kevinx702 發布v0.1.0更新於 Oct 25, 2026

Verify legal case citations against real court records; flag fake/hallucinated cites.

概覽

AI 產生的概覽

LegalCite 是本地 MCP 伺服器,用公開的美國法院紀錄核對法律文本中的判例引註,並標記虛假或錯誤歸屬的引註。

可以做什麼
核對一段法律文本中的引註,為每條回傳結論:真實、找不到(可能為虛構)或名稱不符(引註真實但案件名稱錯誤)。透過 CourtListener 的公開報告卷宗頁碼查詢解析引註,可選權杖模式可取得更完整的詮釋資料。無法解析的引註會回報為找不到,而不會憑空產生結果。
適用情境
適合在助理起草或審閱法律文書時,先確認所引判例確實存在、案件名稱是否相符,再依賴該文本。
執行需求
以本地 stdio 程序執行,來自 npm 套件 legalcite-mcp,需要 Node.js。需要網路存取 CourtListener 公開紀錄和託管服務。未宣告任何憑證;可選的 COURTLISTENER_TOKEN 可啟用更完整的查詢。
安裝前請注意
README 說明其不構成法律建議,只核對引註是否存在及詮釋資料,不判斷法律正確性或判例是否仍然有效。提交的文本會傳送給 CourtListener 和託管 API。託管服務依 IP 設有每日免費額度,另有付費 Pro 方案。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

LegalCite

Stop your AI from citing fake cases. LegalCite checks every case citation in legal text against real court records (CourtListener) and flags hallucinated/fake or misattributed cites. A REST API + an MCP server.

  • Live: https://legalcite-one.vercel.app
  • Verify API: GET /api/verify?text=<paragraph> (or ?citation="410 U.S. 113"; also POST {text})
  • MCP: verify_citations(text) → npm legalcite-mcp
  • Data: CourtListener (Free Law Project) — free public U.S. court records.

Verdicts

verdictmeaning
realthe case exists and (if named) the name matches
not-foundno such case — likely hallucinated
mismatchcitation is real, but the case name in the text is wrong

How it resolves

  1. Token-free (default): reporter-aware regex extracts citations → each resolved via CourtListener's public /c/{reporter}/{vol}/{page}/ finder (redirects to the opinion when real, 404 when not).
  2. Token mode (optional): set COURTLISTENER_TOKEN (free) → uses CourtListener's citation-lookup endpoint (Eyecite extraction + full metadata).

It never fabricates — an unresolved citation is reported not-found, never invented.

Layout

api/verify.js          REST endpoint (quota + verify)api/health.js          liveness + CourtListener checkapi/checkout|key|stripe-webhook.js   Stripe Pro billinglib/verify.js          citation extraction + CourtListener resolution (core)lib/store.js           Redis quota + key store (fail-open without REDIS_URL)lib/stripe.js          lazy Stripe clientmcp/server.js          MCP stdio server — verify_citations toolpublic/                landing, docs, pricing, llms.txtscripts/setup-stripe-product.js   one-time Stripe product/price (test key)

Config (Vercel env — all optional for the MVP)

  • COURTLISTENER_TOKEN — free; enables richer citation-lookup + metadata.
  • REDIS_URL — Upstash; enables hard daily quota + caching (fail-open without it).
  • STRIPE_SECRET_KEY / STRIPE_PRICE_ID / STRIPE_WEBHOOK_SECRET — Pro billing.

Pricing

Free: 20 checks/day by IP. Pro: 2,000/day, $19/mo, 7-day trial.

Not legal advice. Verifies citation existence/metadata only — not legal correctness or good-law status.

來源:README.md,提交 2b2a58b

工具

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

版本歷史

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

評分

已滿足適用檢查項的 40%

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

  • 近 30 天內可連通25 分

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

  • 已宣告認證方式10 分

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

  • 已列出工具15 分

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

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

    請在儲存庫或註冊中心條目中宣告授權條款。