Brazilian Law Research
A MCP (Model Context Protocol) server for agent-driven research on Brazilian law using official sources
What is Brazilian Law Research?
Brazilian Law Research is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp (model context protocol) server for agent-driven research on brazilian law using official sources
A MCP (Model Context Protocol) server for agent-driven research on Brazilian law using official sources
This server falls under the Knowledge & Memory category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- A MCP (Model Context Protocol) server for agent-driven resea
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx brazilian-law-research-mcp-serverConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Brazilian Law Research
The Brazilian Law Research MCP server enables AI-driven legal research against three official Brazilian court systems: the Superior Tribunal de Justiça (STJ), the Tribunal Superior do Trabalho (TST), and the Supremo Tribunal Federal (STF). Using browser automation via Playwright, it searches for and retrieves legal precedents and decisions directly from the official government court databases, providing authoritative source material for legal analysis. Legal professionals, researchers, and compliance teams working with Brazilian law use it to efficiently surface relevant court decisions through natural-language queries in Claude.
Prerequisites
- Python 3.12 or higher, or the uv package manager for environment management
- Git to clone the repository
- Google Chrome installed (required by Playwright for browser automation)
- An MCP-compatible client such as Claude Desktop
- No API keys required — the server accesses public official court websites
Clone the repository
Clone the brlaw_mcp_server repository from GitHub.
git clone https://github.com/pdmtt/brlaw_mcp_server.git
cd brlaw_mcp_serverInstall Playwright browser dependencies
The server uses Patchright (a Playwright variant) for browser automation. Install the required browser binaries with this command.
uv run patchright installConfigure Claude Desktop
Add the server to your Claude Desktop configuration file. Replace the path placeholder with the absolute path to where you cloned the repository.
Restart Claude Desktop
Save the config file and fully restart Claude Desktop. The server will start automatically via uv when Claude Desktop launches.
Test with a legal precedent search
Ask Claude to search for a legal precedent from one of the three supported courts to confirm the server is working correctly.
Brazilian Law Research Examples
Client configuration
Add this block to your Claude Desktop configuration file at ~/Library/Application Support/Claude/claude_desktop_config.json (macOS). Replace /path/to/brlaw_mcp_server with the absolute path where you cloned the repository.
{
"mcpServers": {
"brlaw_mcp_server": {
"command": "uv",
"args": [
"--directory",
"/path/to/brlaw_mcp_server",
"run",
"serve"
]
}
}
}Prompts to try
Once connected, use these prompts to search Brazilian court decisions through Claude. Note that search terms in Portuguese will yield best results.
- "Search the STJ for precedents on responsabilidade civil por dano moral"
- "Find TST decisions related to horas extras e adicional noturno"
- "Look up STF rulings on direito à saúde e fornecimento de medicamentos"
- "Search the Superior Tribunal de Justiça for cases involving contratos de consumo"
- "Find recent STF decisions on liberdade de expressão"Troubleshooting Brazilian Law Research
patchright install fails or Chrome is not found
Ensure Google Chrome is installed on your system. On macOS, Chrome should be at /Applications/Google Chrome.app. If patchright cannot locate it, try installing Chromium separately with uv run patchright install chromium. On Linux, install Chrome via your package manager before running patchright install.
The server times out or returns no results when searching
The server automates real court website browsing, which can be slow. Allow up to 30 seconds per search. If the courts' websites are under maintenance or have changed their structure, the browser automation may fail — check that the official STJ, TST, or STF websites are accessible in a regular browser.
uv command not recognized in Claude Desktop
Use the full absolute path to uv in your config, for example /Users/yourname/.local/bin/uv or /usr/local/bin/uv. Find the path with which uv in your terminal, then use that full path as the command value in claude_desktop_config.json.
Frequently Asked Questions about Brazilian Law Research
What is Brazilian Law Research?
Brazilian Law Research is a Model Context Protocol (MCP) server that mcp (model context protocol) server for agent-driven research on brazilian law using official sources It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Brazilian Law Research?
Follow the installation instructions on the Brazilian Law Research GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Brazilian Law Research?
Brazilian Law Research works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Brazilian Law Research free to use?
Yes, Brazilian Law Research is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.
Brazilian Law Research Alternatives — Similar Knowledge & Memory Servers
Looking for alternatives to Brazilian Law Research? Here are other popular knowledge & memory servers you can use with Claude, Cursor, and VS Code.
MemPalace
★ 52.6kA local AI memory system that stores all conversations verbatim and organizes them into navigable structures. It provides 19 MCP tools for AI assistants to search and retrieve past decisions, debugging sessions, and architecture debates automatically
Kratos
★ 25.7k🏛️ Memory System for AI Coding Tools - Never explain your codebase again. MCP server with perfect project isolation, 95.8% context accuracy, and the Four Pillars Framework.
Context Mode
★ 15.4kAn MCP server that preserves LLM context by intercepting large data outputs and returning only concise summaries or relevant sections. It enables efficient sandboxed code execution, file processing, and documentation indexing across multiple programm
Memu
★ 13.7kMemory for 24/7 proactive agents like OpenClaw.
MemOS
★ 9.3kMemOS (Memory Operating System) is a memory management operating system designed for AI applications. Its goal is: to enable your AI system to have long-term memory like a human, not only remembering what users have said but also actively invoking, u
Everos
★ 5.4kBuild, evaluate, and integrate long-term memory for self-evolving agents.
Browse More Knowledge & Memory MCP Servers
Explore all knowledge & memory servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Brazilian Law Research in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Brazilian Law Research?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.