# DataJud (CNJ) — MCP server on mcp.ai > Consulta processual pública de processos judiciais do Brasil (metadados + movimentações) via API Pública do CNJ/DataJud: tribunais superiores (STJ, TST, TSE, STM), TJs, TRFs, TRTs, TREs e Justiça Militar. Localiza em que instância o processo está agora (origem + tribunal superior, ex.: TRT → TST). Sem credencial; hospedado pela plataforma. By: mcp.ai · official Page: https://new.mcp.ai/datajud ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_datajud?ms=1796396520000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## Install in your AI client (step by step) Link to paste in any client: https://api.mcp.ai/p_datajud ### Claude 1. Copy the DataJud (CNJ) link above (Copy button). 2. In Claude, Plugins → Add → Add custom connector: name DataJud (CNJ), paste the link and click Continue. Under Authentication, choose Sign in now and click Add. 3. The first time, Claude opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. DataJud (CNJ) needs no other account: it works right after sign-in. 5. Done: just ask in the chat. Open: https://claude.ai/plugins ### ChatGPT 1. Copy the DataJud (CNJ) link above (Copy button). 2. In ChatGPT (web), Plugins → Add → Add custom MCP server: name DataJud (CNJ), paste the link, under Authentication choose OAuth or no authentication, check I understand, click Create as a plugin, then Sign in with DataJud (CNJ). 3. The first time, ChatGPT opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. DataJud (CNJ) needs no other account: it works right after sign-in. 5. Done: just ask in the chat. Open: https://chatgpt.com/plugins ### Cursor 1. Copy the DataJud (CNJ) link above (Copy button). 2. In Cursor, Settings → MCP → "Add new MCP server", paste the link and save. 3. The first time, Cursor opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. DataJud (CNJ) needs no other account: it works right after sign-in. 5. Done: just ask in the chat. ### Claude Desktop 1. Copy the DataJud (CNJ) link above (Copy button). 2. Added it in Claude? The connector lives in your account and shows up on Desktop. If not, Plugins → Add → Add custom connector, paste the link and choose Sign in now. 3. The first time, Claude opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. DataJud (CNJ) needs no other account: it works right after sign-in. 5. Done: just ask in the chat. ### Manus 1. Copy the DataJud (CNJ) link above (Copy button). 2. Paste the link into a Manus chat and ask it to connect the MCP server. 3. The first time, Manus opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. DataJud (CNJ) needs no other account: it works right after sign-in. 5. Done: just ask in the chat. ### Agents 1. Copy the DataJud (CNJ) link above (Copy button). 2. Paste the link into your MCP-compatible agent (remote HTTP server). 3. The first time, agent opens the mcp.ai sign-in: sign in with Google or email and click Allow. 4. DataJud (CNJ) needs no other account: it works right after sign-in. 5. Done: just ask in the chat. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/datajud/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/datajud/ Authorization: Bearer sk_live_… # create one at https://new.mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs Install guide (prompt + clients + REST), markdown: https://new.mcp.ai/datajud/index.md How to use (MCP or REST), markdown: https://new.mcp.ai/datajud/skill.md Postman collection (v2.1): https://new.mcp.ai/datajud/postman.json ## Tools - datajud_acompanhar_processos(numeros_processo: string[], assincrono?: boolean, force_refresh?: boolean, max_idade_horas?: integer) — Acompanhamento processual em lote: para uma lista de números CNJ (até 25), devolve os dados do processo e a ÚLTIMA MOVIMENTAÇÃO de cada um, na instância em que ele está agora (origem e tribunal superi - datajud_get_processo(tribunal: string, numero_processo: string, force_refresh?: boolean) — Busca processo por número CNJ e tribunal. Retorna `tribunal`, `total`, `count` e `processos[]` (metadados e movimentações por instância). Só sem resultados inclui `ausencia`. - datajud_localizar_processo(numero_processo: string, force_refresh?: boolean) — Localiza em que instância o processo está agora, só pelo número CNJ: consulta a origem e o tribunal superior (TRT → TST, TJ/TRF → STJ). - datajud_movimentos(tribunal: string, numero_processo: string, force_refresh?: boolean) — Consulta movimentações por número CNJ e tribunal. Retorna `tribunal`, `numeroProcesso` e `instancias[]` (timeline e metadados). Só sem resultados inclui `ausencia`. - datajud_raw_query(tribunal: string, query: string, size?: integer, from?: integer, sort?: string, search_after?: string, _source?: string[], force_refresh?: boolean) — Avançado: envia uma query Elasticsearch crua pro índice do tribunal (escape hatch). `query` é SÓ a cláusula de busca (ex.: { match: { "classe.nome": "Apelação" } }); size, sort, _source e search_after - datajud_search(tribunal: string, classe_codigo?: integer, orgao_julgador_codigo?: integer, assunto_codigo?: integer, numero_processo?: string, size?: integer, from?: integer, sort_desc?: boolean, force_refresh?: boolean) — Busca processos em um tribunal por classe, órgão julgador e/ou assunto (códigos das tabelas do CNJ), paginada e ordenada por data de ajuizamento. DataJud NÃO indexa nome de parte nem OAB — pra isso us ## Example prompts - "Busque o processo 1000887-07.2025.8.26.0352 no TJSP" - "Liste as movimentações desse processo e diga se houve algo novo" - "Quais processos da classe 7 (Procedimento Comum Cível) mais recentes no TRF1?" - "Em que instância está o processo 0020452-41.2022.5.04.0384? Já subiu ao TST?" ## Links Docs: https://mcp.ai/docs/mcps/datajud Website: https://mcp.ai/mcps/datajud