Skip to main content
Glama

Spain Legal Research MCP Server (es-legal-mcp)

Model Context Protocol (MCP) server providing direct, read-only access to Spain (ES) legislation, multi-tier judicial decisions (First Instance, Regional/Cantonal/Appellate, and Supreme/Constitutional courts), and statutory citation verification for Claude Desktop, Cursor, and Antigravity.


Quick Desktop Setup (No Command Line Required)

This package includes a graphical installer for legal practitioners who prefer not to use terminal commands or edit JSON configuration files manually.

  1. Download: Click <> Code at the top right of this repository, select Download ZIP, and extract the folder to your computer.

  2. Run the Setup Utility:

    • Windows: Double-click Click_Here_To_Install_Windows.bat

    • macOS: Double-click Click_Here_To_Install_Mac.command

  3. Connect: Click Install & Connect Automatically in the setup window and restart Claude Desktop.

System Integrity Note: The setup utility operates strictly in read-only mode with respect to your personal files and documents. It installs an isolated Python environment inside the extracted folder and registers the server entry in your AI client configuration.


Related MCP server: spanish-law-mcp

Multi-Tier Judicial Hierarchy & Official Sources

This server indexes and queries decisions across the full judicial hierarchy of Spain, allowing practitioners to filter research by procedural stage:

Judicial Tier

Covered Courts & Tribunals

Tier 1 — First Instance

Juzgados de Primera Instancia e Instrucción, Juzgados de lo Mercantil, de lo Penal, de lo Social & de lo Contencioso-Administrativo

Tier 2 — Regional / Cantonal / Appellate

50 Audiencias Provinciales, 17 Tribunales Superiores de Justicia (TSJ of Autonomous Communities) & Audiencia Nacional (AN)

Tier 3 — Supreme & Constitutional

Tribunal Supremo (TS) & Tribunal Constitucional de España (TC)

  • National Legislation Registry: BOE Datos Abiertos REST API (boe.es/datosabiertos) (https://www.boe.es/datosabiertos/api/legislacion-consolidada)

  • Multi-Tier Case Law Database: CENDOJ (Centro de Documentación Judicial — TS, AN, 17 TSJ, 50 Audiencias Provinciales & Juzgados) (https://www.poderjudicial.es/search/indexAN.jsp)

  • Supported Citation Format Example: ECLI:ES:TS:2024:150 or BOE-A-2024-1234

Indexed Court & Regional Sub-Portals

Sub-Portal Identifier (sub_court)

Official Endpoint / Registry

cendoj_all_tiers

https://www.poderjudicial.es/search/indexAN.jsp

tribunal_constitucional

https://hj.tribunalconstitucional.es


Available MCP Tools

Tool

Description

search_legislation

Searches enacted statutes, codes, decrees, and official gazette publications in Spain.

search_case_law

Searches national jurisprudence and European/ECLI-linked judgments for Spain.

search_tiered_court_decisions

Filters case law specifically by judicial instance (first_instance, appellate_regional, supreme_constitutional) or regional/cantonal court key (sub_court).

list_court_hierarchy

Returns the complete 3-tier court structure and registered sub-portal endpoints for Spain.

get_legal_document_markdown

Retrieves full statutory or judicial texts and converts them into clean Markdown.

verify_citation

Validates statutory and case law citations against official registries.


{
  "mcpServers": {
    "es-legal-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/jurisatlas/es-legal-mcp",
        "es-legal-mcp"
      ]
    }
  }
}

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    F
    maintenance
    Enables querying Spanish legislation (BOE) and EU law integration through MCP, providing full-text search, citation validation, and cross-referencing capabilities.
    57 npm
    2
    Apache 2.0
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables read-only search and retrieval of Austrian legislation and multi-tier court decisions, conversion of legal documents to Markdown, and verification of statutory and case-law citations against official registries.
    MIT