CNJ (Datajud API Pública)

CNJ (Datajud API Pública) MCP Connector for Claude

F

Access the Brazilian National Council of Justice (CNJ) Datajud API to query judicial processes, procedural classes, and court organs across Brazil.

3 tools Official Updated Jun 28, 2026 Official Vinkius Partner

Connect to the CNJ Datajud Public API to perform deep searches across the Brazilian judicial system. This server allows AI agents to retrieve detailed metadata about lawsuits, court movements, and procedural history directly from the official national database.

What you can do

  • Search by CNJ Number — Retrieve full details of a specific lawsuit using its unique unformatted numbering and the target court alias.
  • Class & Organ Filtering — Find processes categorized by their Procedural Class (TPU) and specific Court Organ codes.
  • Advanced Elasticsearch Queries — Execute complex searches using the full power of Elasticsearch Query DSL to filter by dates, parties, or specific metadata fields.
  • Court Coverage — Access data from various courts including TRFs, TJs, TST, and more via their respective API aliases.

How it works

  1. Subscribe to this server
  2. Enter your CNJ Datajud API Key
  3. Start querying the Brazilian judicial database from Claude, Cursor, or any MCP-compatible client

Who is this for?

  • Legal Professionals — Quickly check the status and history of lawsuits without manual portal navigation.
  • Compliance Teams — Automate background checks and legal risk assessments using official government data.
  • Researchers & Analysts — Perform bulk queries and advanced data extraction for legal statistics and trends.
judicial-recordsbrazil-lawprocedural-datapublic-recordslegal-techapi-integration

3 tools expose this connector's capabilities to your AI agent.

search_processes_advanced

Execute an advanced Elasticsearch query against the Datajud API

search_processes_by_class_and_organ

Search processes by Procedural Class and Court Organ

search_process_by_number

g., api_publica_trf1, api_publica_tjsp). Search for a specific judicial process by its CNJ number

See how to talk to your AI agent using CNJ (Datajud API Pública).

Search for process number 50012345620234036100 in the TRF3 public API.

I found the process in TRF3. It is a 'Procedural' class lawsuit currently assigned to the 1st Federal Court of São Paulo. The last movement was 'Conclusion for Sentence' on October 12th.

List 5 processes from TJDFT with class code 1116 and organ code 12345.

I've retrieved 5 processes from TJDFT matching those criteria. The results include processes related to 'Tax Execution' in the specified organ. Would you like to see the details of the most recent one?

Run an advanced search in TST for processes moved in the last 7 days.

I found 12 processes with movements in the last week. Most are related to 'Labor Appeals'. I can list their numbers and main subjects for you.

Use the `search_process_by_number` tool. You will need the unformatted digits of the process and the specific court alias (e.g., `api_publica_tjsp` for São Paulo State Court).

Related Connectors