es-legal-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Official-source legal research, live national archive search, multi-tier judicial hierarchy search (First Instance, Regional/Cantonal/Appellate, and Supreme/Constitutional courts), and citation verification MCP server for Spain (ES).
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_legislationA | Search Spain (ES) national legislation (statutes, acts, codes, regulations, official gazette) via BOE Datos Abiertos REST API (boe.es/datosabiertos) and live national legal archives. |
| search_case_lawA | Search Spain (ES) court decisions and binding precedents via CENDOJ (Poder Judicial) & Tribunal Constitucional / ECLI Spain and open national judicial archives (Supported courts: Tribunal Supremo, Tribunal Constitucional, Audiencia Nacional, TSJ). |
| get_legal_document_markdownB | Retrieve full Markdown text of a legislation document or court judgment (HTML or PDF) from Spain (ES) by its URL or official identifier. |
| list_court_hierarchyA | Return the complete step-by-step multi-tier judicial hierarchy for Spain (ES): Tier 1 (First Instance / Trial / Municipal / District Courts), Tier 2 (Regional / Cantonal / County / Appellate Courts), Tier 3 (Supreme / Cassation / Constitutional Courts), and all official court sub-portals. |
| search_tiered_court_decisionsA | Search court decisions in Spain (ES) filtered by specific judicial tier or regional/cantonal/appellate court. Supports Tier 1 (first_instance), Tier 2 (appellate_regional — including Cantonal/Regional/County/Circuit courts), and Tier 3 (supreme_constitutional), or a specific sub-portal key from list_court_hierarchy. |
| verify_citationA | No-Hallucination Citation Verifier for Spain (ES). Validates format and live existence of legal citations (e.g., 'ECLI:ES:TS:2024:150 or BOE-A-2024-1234') against official Spain and ECLI/ELI registries to prevent AI-hallucinated citations. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 6 tools
Each tool targets a distinct action+resource: verify a citation, search legislation, search case law, retrieve full text, list the hierarchy, and search by judicial tier. The main risk is overlap between search_case_law and search_tiered_court_decisions, but the tier-filter distinction in the descriptions makes the boundary workable.
All six tools use a consistent snake_case verb_noun pattern (verify_citation, search_legislation, search_case_law, get_legal_document_markdown, list_court_hierarchy, search_tiered_court_decisions). No mixed conventions or camelCase deviations.
Six tools is well within the ideal 3-15 range for a legal research server. Each tool covers a distinct capability (verify, search, retrieve, navigate hierarchy) with no filler.
The surface covers citation verification, legislation search, case law search, full-text retrieval, and court hierarchy navigation, forming a coherent research lifecycle. Minor gaps exist—no reverse citation graph or citator to see what cites a given document—but the core workflows are achievable.