Back to Browse

Legalcite MCP Server

Developer ToolsUse Caution4.8MCP RegistryLocal
Free

Server data from the Official MCP Registry

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

About

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

Security Report

4.8
Use Caution4.8High Risk

LegalCite is a well-designed citation verification service with appropriate security patterns for its use case. The MCP server is a thin, read-only client over a hosted API with no dangerous patterns. Authentication is optional (free tier by IP, Pro by API key), permissions are narrowly scoped to HTTP calls to CourtListener, and the code is clean with proper error handling. Minor findings around token handling and environment variable logging do not materially affect the security posture. Supply chain analysis found 2 known vulnerabilities in dependencies (0 critical, 2 high severity). Package verification found 1 issue (1 critical, 0 high severity).

8 files analyzed · 8 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

Unverified package source

We couldn't verify that the installable package matches the reviewed source code. Proceed with caution.

What You'll Need

Set these up before or after installing:

free; enables richer citation-lookup + metadata.Required

Environment variable: COURTLISTENER_TOKEN

Upstash; enables hard daily quota + caching (fail-open without it).Required

Environment variable: REDIS_URL

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-kevinx702-legalcite": {
      "env": {
        "REDIS_URL": "your-redis-url-here",
        "COURTLISTENER_TOKEN": "your-courtlistener-token-here"
      },
      "args": [
        "-y",
        "legalcite"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub 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 check
api/checkout|key|stripe-webhook.js   Stripe Pro billing
lib/verify.js          citation extraction + CourtListener resolution (core)
lib/store.js           Redis quota + key store (fail-open without REDIS_URL)
lib/stripe.js          lazy Stripe client
mcp/server.js          MCP stdio server — verify_citations tool
public/                landing, docs, pricing, llms.txt
scripts/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.

Reviews

No reviews yet

Be the first to review this server!

Legalcite MCP Server - Verify legal case citations against real court records; | MCP Marketplace