A MCP (Model Context Protocol) server for agent-driven research on Brazilian law using official sources
Configuration
View docs{
"mcpServers": {
"pdmtt-brlaw_mcp_server": {
"command": "uv",
"args": [
"--directory",
"/<path>/brlaw_mcp_server",
"run",
"serve"
]
}
}
}The Brazilian Law Research MCP Server enables agent-driven research on Brazilian law by fetching information from official sources and presenting it through the MCP (Model Context Protocol). It streamlines legal research workflows by letting your MCP client trigger server-side queries and gather precedents and legal materials in a structured way, while keeping the load on official sources reasonable when used responsibly.
You will run the MCP server locally and connect your MCP client to it. Use the provided stdio configuration to start the server and point your client to the running process. The server exposes tools that let you search for Brazilian legal precedents from STJ, TST, and STF based on your criteria.
Prerequisites you need before starting are: git, uv (recommended) or Python >= 3.12, and Google Chrome.
Step 1: Clone the repository.
git clone https://github.com/pdmtt/brlaw_mcp_server.gitStep 2: Install the dependencies.
uv run patchright installStep 3: Configure your MCP client to connect to this server using the inline MCP configuration.
{
"mcpServers": {
"brlaw_mcp_server": {
"command": "uv",
"args": [
"--directory",
"/<path>/brlaw_mcp_server",
"run",
"serve"
]
}
}
}Notes on usage and capabilities: The MCP server supports querying Brazilian legal precedents from three sources: the National High Court of Brazil (STJ), the National High Labor Court of Brazil (TST), and the Supreme Court (STF). You can tailor searches to match specific criteria (such as topic, date range, or ruling characteristics) and retrieve relevant precedents that meet those criteria.
Security and load considerations: Use the server responsibly to avoid overloading official sources. Design your queries to be concise and respect rate limits. If you plan large-scale scraping or high-frequency queries, coordinate with the source institutions and implement polite throttling in your client.
Research legal precedents made by the National High Court of Brazil (STJ) that meet the specified criteria.
Research legal precedents made by the National High Labor Court of Brazil (TST) that meet the specified criteria.
Research legal precedents made by the Supreme Court (STF) that meet the specified criteria.