Skip to main content

A MCP server for agent-based research on Brazilian law

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iflow_mcp_brlaw_mcp_server-0.4.2.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iflow_mcp_brlaw_mcp_server-0.4.2-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file iflow_mcp_brlaw_mcp_server-0.4.2.tar.gz.

File metadata

File hashes

Hashes for iflow_mcp_brlaw_mcp_server-0.4.2.tar.gz
Algorithm Hash digest
SHA256 8895526d539722d3c1a53895a7c86e0ebfa553a1a9c526b04d889f92c27c7fb9
MD5 dc3a9fc39bc7a97ae267a9ee0675ef3b
BLAKE2b-256 97b72a59767b18d8cf10172b6a96639185fd966b65892f1ca9303e49db214bde

See more details on using hashes here.

File details

Details for the file iflow_mcp_brlaw_mcp_server-0.4.2-py3-none-any.whl.

File metadata

File hashes

Hashes for iflow_mcp_brlaw_mcp_server-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5ed20ba3185db5a441205e4edcdf5e82b7960d61e16791998545ab25c0b11c90
MD5 4cfe34bd145c74c38aab00dbe754998e
BLAKE2b-256 25540ed9857da9658ad270cec9c99bd988d53c0d813b291a7606764fbce5b4e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page