Skip to main content
Glama

Brazilian Law Research MCP Server

by pdmtt

Brazilian Law Research MCP Server

🇧🇷 Leia em português

A MCP (Model Context Protocol) server for agent-driven research on Brazilian law using official sources.

Foreword

This server empowers models with scraping capacities, thus making research easier to anyone legitimately interested in Brazilian legal matters.

This facility comes with a price: the risk of overloading the official sources' servers if misused. Please be sure to keep the load on the sources to a reasonable amount.

Requirements

  • git
  • uv (recommended) or Python >= 3.12
  • Google Chrome

How to use

  1. Clone the repository:
git clone https://github.com/pdmtt/brlaw_mcp_server.git
  1. Install the dependencies
uv run patchright install
  1. Setup your MCP client (e.g. Claude Desktop):
{ "mcpServers": { "brlaw_mcp_server": { "command": "uv", "args": [ "--directory", "/<path>/brlaw_mcp_server", "run", "serve" ] } } }

Available Tools

  • StjLegalPrecedentsRequest: Research legal precedents made by the National High Court of Brazil (STJ) that meet the specified criteria.
  • TstLegalPrecedentsRequest: Research legal precedents made by the National High Labor Court of Brazil (TST) that meet the specified criteria.
  • StfLegalPrecedentsRequest: Research legal precedents made by the Supreme Court (STF) that meet the specified criteria.

Development

Tooling

The project uses:

  • Ruff for linting and formatting.
  • BasedPyright for type checking.
  • Pytest for testing.

Language

Resources, tools and prompts related stuff must be written in Portuguese, because this project aims to be used by non-dev folks, such as lawyers and law students.

Technical legal vocabulary is highly dependent on a country's legal tradition and translating it is no trivial task.

Development related stuff should stick to English as conventional, such as source code.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

A MCP server for agent-driven research on Brazilian law using official sources

  1. Foreword
    1. Requirements
      1. How to use
        1. Available Tools
      2. Development
        1. Tooling
        2. Language
      3. License

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          An MCP server that enables querying detailed address information from Brazilian postal codes (CEPs) via the ViaCEP API, returning data such as street names, neighborhoods, cities, states, regions, and IBGE codes.
          Last updated -
          1
          1
          TypeScript
          MIT License
        • A
          security
          A
          license
          A
          quality
          A Model Context Protocol server that connects AI assistants to Brazilian public data services, providing access to postal codes, company registrations, bank information, area codes, IBGE data, currency exchange rates, and domain registration status.
          Last updated -
          11
          1
          3
          TypeScript
          MIT License
        • A
          security
          F
          license
          A
          quality
          An enterprise-grade MCP server that provides specialized tools for legal reasoning and analysis, automatically detecting legal domains and offering domain-specific guidance, templates, and citation formatting.
          Last updated -
          3
          11
          TypeScript
          • Apple
        • -
          security
          A
          license
          -
          quality
          A document-based MCP server that supports keyword searching and content retrieval from official website documentation.
          Last updated -
          5
          TypeScript
          MIT License

        View all related MCP servers

        MCP directory API

        We provide all the information about MCP servers via our MCP API.

        curl -X GET 'https://glama.ai/api/mcp/v1/servers/pdmtt/brlaw_mcp_server'

        If you have feedback or need assistance with the MCP directory API, please join our Discord server