Legal MCP — Claude Code MCP server: setup and use
Search cases, DJEN notices, sanctions, and legal decisions by name, CPF, CNPJ, or CNJ number. Connect it to an AI client without a login.
claude mcp add --transport http jusbrasil-mcp https://api.mcp.ai/legalWhat Legal MCP (alternativa ao Jusbrasil) does
Legal MCP gives an AI client access to public legal records. It can look up cases by a person or company name, CPF, CNPJ, or CNJ number, then gather DJEN notices, sanctions, municipal mentions, and court decisions into a consolidated report.
The server exposes 20 tools for case discovery, document checks, CNPJ records, monitoring, DJEN searches, and legal research. CPF and CNPJ searches first resolve the document to a name and then search by name; that flow runs asynchronously and returns a job_id for polling. It uses MCP over HTTP at https://api.mcp.ai/legal.
The service only reads from public official sources and does not alter records. Results are sent to the LLM host selected by the user, so legal decisions still require checking the relevant court website.
What it helps with
- find cases linked to a person by name or CPF
- check a company’s cases and sanctions by CNPJ
- build a consolidated legal profile for a person or company
- search DJEN notices for an OAB number or name
- track new cases, filings, or notices
Example prompts for the agent
- Build a legal profile for the person named “Ivan Petrov”.
- Check company CNPJ
33.000.167/0001-01for cases and sanctions. - Look for new DJEN notices linked to OAB
21076/SP.
How to install Legal MCP (alternativa ao Jusbrasil)
Platform CLI: remote server
claude mcp add --transport http jusbrasil-mcp https://api.mcp.ai/legalPlatform CLI: remote server
codex mcp add legal-mcp-alternativa-ao-jusbrasil --url https://api.mcp.ai/legalConfig file
{
"mcpServers": {
"legal-mcp-alternativa-ao-jusbrasil": {
"url": "https://api.mcp.ai/legal"
}
}
}Config file
{
"servers": {
"legal-mcp-alternativa-ao-jusbrasil": {
"type": "http",
"url": "https://api.mcp.ai/legal"
}
}
}Platform CLI: remote server
gemini mcp add -t http legal-mcp-alternativa-ao-jusbrasil https://api.mcp.ai/legalStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Legal MCP (alternativa ao Jusbrasil)
How do I install Legal MCP in Claude Code?
Run claude mcp add --transport http jusbrasil-mcp https://api.mcp.ai/legal. The server connects through MCP over HTTP.
What does Legal MCP do?
It searches public official sources for cases, DJEN notices, sanctions, municipal references, and court decisions. It can combine the results into a legal profile or use them for monitoring.
Does Legal MCP require a login or API key?
No. It connects to public sources through https://api.mcp.ai/legal.