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 分

    请在仓库或注册中心条目中声明许可证。