Brazilian Law Research

v1.0.0Knowledge & Memorystable

A MCP (Model Context Protocol) server for agent-driven research on Brazilian law using official sources

brazilian-law-research-mcp-servermcpai-integration
Share:
30
Stars
0
Downloads
0
Weekly
0/5

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

Conduct agent-driven legal research on Brazilian law using official sources.
Access comprehensive Brazilian legal information through AI interface.
Support legal analysis with authoritative government-sourced data.
pdmtt

Maintainer

LicenseMIT License
Languagepython
Versionv1.0.0
UpdatedMay 13, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx brazilian-law-research-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

Clone the repository

Clone the brlaw_mcp_server repository from GitHub.

git clone https://github.com/pdmtt/brlaw_mcp_server.git
cd brlaw_mcp_server
2

Install Playwright browser dependencies

The server uses Patchright (a Playwright variant) for browser automation. Install the required browser binaries with this command.

uv run patchright install
3

Configure 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.

4

Restart Claude Desktop

Save the config file and fully restart Claude Desktop. The server will start automatically via uv when Claude Desktop launches.

5

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.

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.

Quick Config Preview

{ "mcpServers": { "brazilian-law-research-mcp-server": { "command": "npx", "args": ["-y", "brazilian-law-research-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides