jusbrasil-mcp
This server allows you to search, read, and compile Brazilian legal jurisprudence from JusBrasil, producing ready-to-use citations and Word documents for legal briefs.
buscar_jurisprudencia– Search court decisions with filters for tribunal (STF, STJ, TJs, TRFs, TST, etc.), document type (acordao,sumula,decisao,sentenca,despacho), time period (last 7/30/365 days), and sorting (by date or relevance). Returns title, court, CNJ number, date, summary (ementa), and URL.buscar_sumulas– Dedicated search for legal súmulas (binding precedents), with optional filtering by tribunal.ler_decisao– Extract full metadata from a specific decision URL, including title, tribunal, CNJ number, rapporteur, judging body, judgment/publication dates, full ementa, and a pre-formatted ABNT citation string.ler_inteiro_teor– Retrieve the complete text of a ruling (relatório + voto + acórdão). Requires authenticated login credentials; returns text, character count, and authentication status.compilar_dossie– Aggregate multiple decisions/súmulas into a single.docxWord document, including formatted citations, ementas, verification links, and optionally the full text of each decision.
Click on "Install 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., "@jusbrasil-mcpSearch STJ decisions on consumer protection from last year"
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.
Servidor MCP para pesquisar jurisprudência no JusBrasil em linguagem natural, ler o inteiro teor das decisões e gerar citações e dossiês .docx prontos para uso em peças jurídicas. Pensado para o Claude Desktop.
🛠️ As 5 ferramentas
Ferramenta | O que faz |
| busca com filtros: tribunal ( |
| busca dedicada de súmulas |
| metadados + ementa + |
| texto integral do acórdão (relatório + voto + acórdão) — exige login |
| reúne várias decisões/súmulas num único |
Related MCP server: saij-mcp
⚙️ Como funciona
Coleta via Scrapling
StealthyFetcher— atravessa o Cloudflare em headless puro (sem janela).Login automático com as suas credenciais, guardadas apenas no cofre do sistema (Keychain no macOS, Gerenciador de Credenciais no Windows), com sessão persistente. O login só é necessário para o inteiro teor e para desmascarar números/metadados; sem credenciais, opera anônimo (com dados parciais).
Parsing a partir do JSON estruturado (
__NEXT_DATA__/ Apollo) embutido nas páginas — não de HTML frágil.Citação por tribunal: formato convencional do STJ e genérico para TJs/TRFs/TST.
📦 Instalação
Requer uv, Python 3.12+ e Google Chrome instalado.
git clone https://github.com/fxbarros/MCP-Jusbrasil.git mcp-jusbrasil
cd mcp-jusbrasil
uv sync
uv run scrapling install # navegador usado pelo Scrapling
uv run python setup_credenciais.py # grava e-mail/senha do JusBrasil no cofreAs credenciais ficam somente no cofre de credenciais do sistema (serviço mcp-jusbrasil) — nunca em arquivo. O keyring escolhe o cofre certo automaticamente em macOS e Windows; o mesmo setup_credenciais.py serve para os dois.
💬 Uso no Claude Desktop
{
"mcpServers": {
"jusbrasil": {
"command": "uv",
"args": ["run", "--directory", "/caminho/para/mcp-jusbrasil", "jusbrasil-mcp"]
}
}
}Variável | Padrão | Descrição |
|
| Timeout por navegação (ms) |
Roda sempre headless (sem janela). Exemplo de conversa:
Você: Busque acórdãos do STJ dos últimos 30 dias sobre penhora de bem de família.
Claude: [buscar_jurisprudencia] → resultados com citação e link.
Você: Lê o inteiro teor do segundo e monta um dossiê .docx com os três melhores.
Claude: [ler_inteiro_teor] → [compilar_dossie] → dossie.docx salvo.🔍 Limitações
O filtro de tribunal aceita corte específica (
TJ-PI,TJSP,TRF1) ou grupo (TJs,TRFs,TRTs), além dos superiores (STJ,STF…), com vários separados por vírgula.O filtro de data é por período relativo (últimos N dias), não por intervalo exato.
O inteiro teor nem sempre existe para toda decisão.
Os filtros dependem dos parâmetros atuais do site e podem quebrar se o JusBrasil mudar.
⚠️ Aviso
O JusBrasil é um agregador privado, não é fonte oficial. Para citação formal, confira sempre o texto no site oficial do tribunal. As ferramentas incluem avisos anti-alucinação: campos não extraídos voltam nulos e não devem ser preenchidos por inferência. Respeite os termos de uso do site.
⚖️ Licença
MIT. Construído por Fábio Ximenes Barros.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-quality-maintenanceEnables interaction with Brazil's Electronic Judicial Process (PJe) system to search for legal processes, view case details, and download court documents. Supports secure JWT authentication and process lookup by CPF/CNPJ or party name.Last updated
- Alicense-quality-maintenanceProvides access to Argentina's official legal database (SAIJ) to search and retrieve judgments, legislation, summaries, and legal doctrine. It allows AI clients to query Argentine legal information and access metadata for various legal documents.Last updated6
- Flicense-qualityBmaintenanceSelf-hosted MCP connector for querying Brazilian legal jurisprudence via JurisprudenciaIA. Enables natural language legal research using Claude.ai, with tools for consulting, searching, and comparing jurisprudence and legal theses.Last updated8
- AlicenseAqualityAmaintenanceEnables searching and verifying citations of Colombian Constitutional Court decisions using datos.gov.co open data, returning metadata such as magistrate, date, and relatoria URL.Last updated2Apache 2.0
Related MCP Connectors
Open-source alternative to Jusbrasil for AI: find lawsuits by name, CPF, CNPJ or case number and bui
Public lookup of Brazilian court cases (metadata + docket) via the CNJ/DataJud API. Free, no login.
Free Brazilian CNPJ lookup (legal name, status, partners) + lawsuit discovery. Public data, no login
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/fxbarros/mcp-jusbrasil'
If you have feedback or need assistance with the MCP directory API, please join our Discord server