Skip to main content

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.

Brazilian Law Research Server MCP server

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.

Metadata

Release files for iflow-mcp_brlaw-mcp-server 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_brlaw-mcp-server 0.4.2
File Size Uploaded
iflow_mcp_brlaw_mcp_server-0.4.2.tar.gz 21.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_brlaw-mcp-server 0.4.2
File Interpreter ABI Platform
iflow_mcp_brlaw_mcp_server-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 42.0 kB

Release files / iflow_mcp_brlaw_mcp_server-0.4.2.tar.gz

Download URL iflow_mcp_brlaw_mcp_server-0.4.2.tar.gz
Size 21.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8895526d539722d3c1a53895a7c86e0ebfa553a1a9c526b04d889f92c27c7fb9
BLAKE2b-256 checksum
How to use checksums
97b72a59767b18d8cf10172b6a96639185fd966b65892f1ca9303e49db214bde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.9

Release files / iflow_mcp_brlaw_mcp_server-0.4.2-py3-none-any.whl

Download URL iflow_mcp_brlaw_mcp_server-0.4.2-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ed20ba3185db5a441205e4edcdf5e82b7960d61e16791998545ab25c0b11c90
BLAKE2b-256 checksum
How to use checksums
25540ed9857da9658ad270cec9c99bd988d53c0d813b291a7606764fbce5b4e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.6.9

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page