legal-cite

legal-cite

Verifies legal citations by fetching the exact, in-force wording of cited articles from official PL and EU legal sources, preventing hallucination by returning verbatim text.

Category
Visit Server

README

legal-cite

Legal citation verifier (PL / EU law) — an MCP server that fetches the exact, in-force wording of a cited article straight from the official source. An anti-hallucination tool for Claude (and any MCP client): instead of trusting the model's memory of a statute, it returns the verbatim text of the cited article from the official register.

Weryfikator cytatów prawnych (prawo PL / UE) — serwer MCP pobierający dokładne, aktualne brzmienie cytowanego artykułu prosto z oficjalnego źródła. Narzędzie anti-halucynacyjne dla Claude (i dowolnego klienta MCP).

  • 🇵🇱 PL lawapi.sejm.gov.pl (ELI). Returns the consolidated text (tekst jednolity, currently in force), not the original as-promulgated version.
  • 🇪🇺 EU law — EUR-Lex (Polish text). Note: EUR-Lex sometimes serves a bot-challenge (HTTP 202) → returns an error instead of text.

Returns only the cited article (not the whole act). The quote comes straight from the source.


English

Tools

  • verify_article("art. 45 u.k.k.") — the wording of a provision. Format: art. N [ust. M] CODE. Handles letter suffixes (art. 36a), § as a unit (art. 58 § 2 KC), superscripts (art. 385¹ / 385[1]).
  • list_acts() — list of supported act codes (PL + EU).

Run locally (stdio — Claude Desktop / Claude Code)

pip install -e .
legal-cite          # stdio

claude_desktop_config.json:

{ "mcpServers": { "legal-cite": { "command": "legal-cite" } } }

Deploy to Cloud Run (streamable-http — one shared URL)

gcloud run deploy legal-cite \
  --source=. \
  --region=europe-west4 \
  --allow-unauthenticated \
  --memory=256Mi --cpu=1 --max-instances=2 --port=8080

Public, no-auth is safe here — the service serves only public legal texts (no data, no database, no LLM calls).

Connect in Claude: Connectors → Add custom connectorhttps://<service-url>.run.app/mcp (streamable-http mounts MCP at /mcp).

Add a new act

Add an entry to PL_ACTS (key = abbreviation; pub/year/pos from the Journal of Laws / ELI) or EU_ACTS (key = abbreviation, celex) in legal_cite/core.py.


Polski

Narzędzia

  • verify_article("art. 45 u.k.k.") — brzmienie przepisu. Format: art. N [ust. M] KOD. Obsługuje sufiks literowy (art. 36a), § jako jednostkę (art. 58 § 2 KC), indeks górny (art. 385¹ / 385[1]).
  • list_acts() — lista obsługiwanych kodów aktów (PL + UE).

Uruchomienie lokalne (stdio — Claude Desktop / Claude Code)

pip install -e .
legal-cite          # stdio

Wpis w claude_desktop_config.json:

{ "mcpServers": { "legal-cite": { "command": "legal-cite" } } }

Deploy na Cloud Run (streamable-http — współdzielony URL)

gcloud run deploy legal-cite \
  --source=. \
  --region=europe-west4 \
  --allow-unauthenticated \
  --memory=256Mi --cpu=1 --max-instances=2 --port=8080

Publiczny bez auth jest tu bezpieczny — serwis serwuje wyłącznie publiczne teksty aktów (zero danych, zero bazy, zero wywołań LLM).

Podłączenie w Claude: Connectors → Add custom connectorhttps://<adres-serwisu>.run.app/mcp.


Ekosystem / Related

Część zestawu otwartych narzędzi LegalTech (PL):

  • legal-cite-pl(ten projekt) MCP: weryfikacja brzmienia przepisu PL/UE ze źródła.
  • commercial-legal-pl — Claude skill: redakcja i analiza umów (PL); używa verify_article.
  • anon-legal-pl — lokalna anonimizacja akt prawnych (PL).
  • kancelaria-dms — DMS/CRM dla kancelarii (Google Workspace).

License

Apache License 2.0 — see LICENSE.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured