Skip to main content
Glama
Portugal Legal Research MCP Server

Portugal Legal Research MCP Server

by jurisatlas

Portugal Legal Research MCP Server (pt-legal-mcp)

Model Context Protocol (MCP) server providing direct, read-only access to Portugal (PT) 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: be-legal-mcp

Multi-Tier Judicial Hierarchy & Official Sources

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

Judicial Tier

Covered Courts & Tribunals

Tier 1 — First Instance

23 Tribunais Judiciais de Comarca & Tribunais Administrativos e Fiscais de Círculo (TAF)

Tier 2 — Regional / Cantonal / Appellate

5 Tribunais da Relação (Lisboa, Porto, Coimbra, Évora, Guimarães) & 2 Tribunais Centrais Administrativos (TCA Sul & TCA Norte)

Tier 3 — Supreme & Constitutional

Supremo Tribunal de Justiça (STJ), Supremo Tribunal Administrativo (STA) & Tribunal Constitucional (TC)

  • National Legislation Registry: Diário da República Eletrónico (diariodarepublica.pt) (https://diariodarepublica.pt)

  • Multi-Tier Case Law Database: DGSI Bases Jurídico-Documentais (dgsi.pt — STJ, STA, 5 Tribunais da Relação & 2 TCA) (http://www.dgsi.pt)

  • Supported Citation Format Example: ECLI:PT:STJ:2024:123.22.0T8LSB.L1.S1 or Diário da República

Indexed Court & Regional Sub-Portals

Sub-Portal Identifier (sub_court)

Official Endpoint / Registry

dgsi_all_tiers

http://www.dgsi.pt

tribunal_constitucional

https://www.tribunalconstitucional.pt


Available MCP Tools

Tool

Description

search_legislation

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

search_case_law

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

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 Portugal.

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": {
    "pt-legal-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/jurisatlas/pt-legal-mcp",
        "pt-legal-mcp"
      ]
    }
  }
}

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables read-only search and retrieval of Belgian legislation and multi-tier court decisions, filtering case law by judicial instance, converting legal texts to Markdown, and verifying statutory and case-law citations against official registries.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables read-only search of Spanish legislation and multi-tier case law from official registries, retrieval of full legal texts as Markdown, and verification of statutory and case-law citations.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables read-only searching of Greek enacted legislation, official gazette publications, and case law across all three judicial tiers (first instance, appellate/regional, and supreme/constitutional), with full-text retrieval converted to clean Markdown. It also verifies statutory and case law citations against official national registries such as et.gr, areiospagos.gr, and adjustice.gr.
    MIT