Brazilian Law Research MCP Server
Used by the MCP server to perform web scraping of official Brazilian legal sources, enabling the retrieval of court precedents and legal information.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Brazilian Law Research MCP Server find STJ precedents about environmental liability from the last 5 years"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Brazilian Law Research MCP Server
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.
Related MCP server: mcp-brasil
Requirements
git
uv (recommended) or Python >= 3.12
Google Chrome
How to use
Clone the repository:
git clone https://github.com/pdmtt/brlaw_mcp_server.gitInstall the dependencies
uv run patchright installSetup 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.
Available Tools
3 toolsStfLegalPrecedentsRequestC
Requisição dos precedentes judiciais do Supremo Tribunal Federal (STF) que satisfaçam os critérios passados.
O STF é o órgão máximo do Poder Judiciário brasileiro, e a ele compete, precipuamente, zelar pelo cumprimento da Constituição, conforme definido em seu art. 102. Por esse motivo, o STF é conhecido como o Guardião da Constituição Federal.
Entre suas principais atribuições está a de julgar a ação direta de inconstitucionalidade de lei ou ato normativo federal ou estadual, a ação declaratória de constitucionalidade de lei ou ato normativo federal, a arguição de descumprimento de preceito fundamental decorrente da própria Constituição e a extradição solicitada por Estado estrangeiro.
Na área penal, destaca-se a competência para julgar, nas infrações penais comuns, o presidente da República, o vice-presidente, os membros do Congresso Nacional, seus próprios ministros e o procurador-geral da República, entre outros.
Inputs: summary (required), page.
StjLegalPrecedentsRequestA
Requisição dos precedentes judiciais do Superior Tribunal de Justiça (STJ) que satisfaçam os critérios passados.
O STJ é a instância máxima da justiça brasileira no âmbito infraconstitucional. É a Corte responsável por uniformizar a interpretação da lei federal em todo o PaÃs.
Produz decisões que influenciam todos os aspectos da vida cotidiana dos cidadãos, a maioria envolvendo causas de competência da chamada Justiça Comum.
É de sua responsabilidade a solução definitiva de casos civis e criminais que não envolvam matéria constitucional, sob reserva do Supremo Tribunal Federal (STF), nem questões afetas ao âmbito especÃfico da Justiça do Trabalho, da Justiça Eleitoral ou da Justiça Militar.
Cabe também ao STJ a apreciação de decisões judiciais emitidas no exterior, entre as quais cartas rogatórias, pedidos de homologação de decisões estrangeiras e ações em que há contestação de sentença proferida fora do paÃs.
Inputs: summary (required), page.
TstLegalPrecedentsRequestB
Requisição dos precedentes judiciais do Tribunal Superior do Trabalho (TST) que satisfaçam os critérios passados.
O TST é o órgão de cúpula da Justiça do Trabalho. Tem a função precÃpua de uniformizar a jurisprudência trabalhista brasileira.
Inputs: summary (required), page.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a distinct Brazilian superior court (STF, STJ, TST) with clear, non-overlapping purposes. The descriptions include specific court responsibilities, making it unambiguous which tool to use for each court.
All tool names follow a consistent pattern: acronym of the court plus 'LegalPrecedentsRequest' (e.g., StfLegalPrecedentsRequest). The naming is predictable and uniform, aiding agent selection.
Three tools is appropriate for querying legal precedents from three specific superior courts. The scope is narrow and well-defined, with no unnecessary tools.
The server covers the three main superior courts (STF, STJ, TST), which are essential for Brazilian law research. Minor missing courts (e.g., TSE, STM) could be considered gaps, but for a focused research tool, the coverage is adequate.
Maintenance
Related MCP Connectors
MCP Server for an Agent Task Marketplace
MCP server for the Fail Modes taxonomy — a knowledge base of AI system failure modes
Knowledge commons for AI agents: cited, licensed, queryable claims over MCP.
French Civil Code (LEGI) as executable rules: facts and a legal date in, answers with grounds out
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA RAG-based MCP server for natural language querying of Brazilian healthcare manuals (SIH/SUS, SIA/SUS) and official ordinances. It provides 16 tools for semantic search, regulatory critique analysis, and retrieving data from SIGTAP and CNES.2-
- AlicenseAqualityDmaintenanceMCP Server for accessing 36 Brazilian public data sources and 1 agent, enabling AI agents to query government data on economy, legislation, transparency, judiciary, elections, environment, health, and more.61MIT
- AlicenseNot gradedqualityDmaintenanceMCP server that connects AI agents to 28 Brazilian public APIs, providing tools to query government data on economy, legislation, transparency, judiciary, elections, environment, health, and more.MIT
- AlicenseAqualityBmaintenanceMCP server for token-efficient access to Open Finance Brasil rules, enabling coding agents to search and retrieve specific regulations, OpenAPI specs, and business rules through progressive disclosure.432 npmMIT