Brazilian Law Research MCP Server
About
A MCP (Model Context Protocol) server for agent-driven research on Brazilian law using official sources
Details
- Author
- pdmtt
- GitHub stars
- 32
- Downloads
- 408
- Categories
- Search
Jump to
- Integrates with MCP for agent-driven legal research.
- Scrapes official Brazilian court sources (STJ, TST, STF).
- Provides dedicated tools for each court.
- Requires Google Chrome for browser automation.
- Uses uv for dependency management.
- Resources and prompts are in Portuguese for legal professionals.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Brazilian Law Research MCP ServerCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
Clone the repository, install dependencies with uv run patchright install, then configure your MCP client (e.g., Claude Desktop) with the provided JSON pointing to the cloned directory. The server exposes three tools: StjLegalPrecedentsRequest, TstLegalPrecedentsRequest, and StfLegalPrecedentsRequest for researching precedents from the respective courts.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"brazilian law research mcp server": {
"brlaw_mcp_server": {
"command": "uv",
"args": [
"run",
"patchright",
"install"
]
}
}
}
}
McpServers
{
"brlaw_mcp_server": {
"command": "uv",
"args": [
"run",
"patchright",
"install"
]
}
}
Brazilian Law Research MCP Server
A MCP (Model Context Protocol) server for agent-driven research on Brazilian law using official
sources.
<a href="https://glama.ai/mcp/servers/@pdmtt/brlaw_mcp_server">
</a>
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
2. Install the dependencies
uv run patchright install
3. 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.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.

