jusbrasil-mcp
Search Brazilian jurisprudence on JusBrasil in natural language and retrieve formatted citations for legal documents, including metadata extraction from court decisions.
README
jusbrasil-mcp
Servidor MCP para pesquisar jurisprudência no JusBrasil em linguagem natural e devolver citações já formatadas para uso em peças jurídicas. Pensado para uso no Claude Desktop.
O que faz
Expõe duas tools:
buscar_jurisprudencia(query, limite, tribunal, data_inicio, data_fim)— busca por termos livres; retorna título, tribunal, número CNJ, ementa curta e URL de cada acórdão.ler_decisao(url)— abre uma decisão e extrai os metadados formais (relator, órgão julgador, datas, número CNJ) + monta acitacao_abntpronta para citar.
Fluxo típico: buscar → escolher a ementa relevante → ler_decisao → colar a citação na peça.
Como funciona
- Coleta via Scrapling
StealthyFetcher(headless, contorna o Cloudflare do site sem necessidade de login). - Parsing dos metadados a partir do JSON estruturado (
__NEXT_DATA__/ Apollo) embutido nas páginas — mais robusto que regex em HTML. - Citação por tribunal: formato convencional do STJ (recurso + registro + DJe) e formato genérico para TJs/TRFs/TST.
Instalação
Requer uv e Python 3.12+.
git clone https://github.com/<seu-usuario>/mcp-jusbrasil.git
cd mcp-jusbrasil
uv sync
uv run scrapling install # baixa o navegador usado pelo Scrapling
O
StealthyFetcherusa o Google Chrome instalado no sistema (real_chrome=True).
Uso no Claude Desktop
Adicione ao claude_desktop_config.json:
{
"mcpServers": {
"jusbrasil": {
"command": "uv",
"args": ["run", "--directory", "/caminho/para/mcp-jusbrasil", "jusbrasil-mcp"]
}
}
}
Variáveis de ambiente (opcionais)
| Variável | Padrão | Descrição |
|---|---|---|
JUSBRASIL_HEADLESS |
true |
Roda sem janela. |
JUSBRASIL_TIMEOUT_MS |
60000 |
Timeout por navegação (ms). |
Aviso
O JusBrasil é um agregador privado, não é fonte oficial. Para citação formal em peça, confira sempre o texto no site oficial do tribunal (scon.stj.jus.br, sites dos TJs etc.). As tools 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.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.