DataJud (CNJ)

Public lookup of Brazilian court cases (metadata + docket) via the CNJ/DataJud API. Free, no login.

Should I use this

Quality & Safety

B
Description quality
95%
Schema completeness
62%
Naming quality
82%
Poisoning risk
100%
Permission match
100%
Protocol compliance
100%

Findings (1)

  • LOWTool 'connect' description lacks action verbin connect

Based on automated analysis of tool definitions and protocol compliance.

Context Cost

~3,468Tokens (tool definitions)
~1.7 KBTypical response size
Significant attention impact (2.71% of 128k context)

This is the approximate number of tokens consumed each time the server's tools are loaded into a model's context. Higher counts reduce the attention available for other tasks.

Install

One-Click Install

Add this to your `claude_desktop_config.json` file:

{
  "mcpServers": {
    "datajud-mcp": {
      "url": "https://api.mcp.ai/p_datajud"
    }
  }
}

Remote endpoints

https://api.mcp.ai/p_datajudstreamable-http

What it can do

Tool inventory

Tools (10)

🟢 Read-only🟡 Write🔴 Delete⚪ Unknown
🟢datajud_get_processo(tribunal, numero_processo)

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`. Aceita número com ou sem máscara. Quando `processos` está vazio, `ausencia` traz o motivo provável (numero_invalido | tribunal_divergente | nao_publicado | carga_ausente | indeterminado) e a explicação. Com resultados, esse bloco não é retornado. Leia esse bloco antes de repetir a consulta em outra tool: a API pública do CNJ não publica processo em segredo de justiça, então `nao_publicado` NÃO significa que o processo não existe.

Input Schema

{
  "type": "object",
  "properties": {
    "tribunal": {
      "type": "string",
      "enum": [
        "tst",
        "stj",
        "tse",
        "stm",
        "trf1",
        "trf2",
        "trf3",
        "trf4",
        "trf5",
        "trf6",
        "tjac",
        "tjal",
        "tjam",
        "tjap",
        "tjba",
        "tjce",
        "tjdft",
        "tjes",
        "tjgo",
        "tjma",
        "tjmg",
        "tjms",
        "tjmt",
        "tjpa",
        "tjpb",
        "tjpe",
        "tjpi",
        "tjpr",
        "tjrj",
        "tjrn",
        "tjro",
        "tjrr",
        "tjrs",
        "tjsc",
        "tjse",
        "tjsp",
        "tjto",
        "trt1",
        "trt2",
        "trt3",
        "trt4",
        "trt5",
        "trt6",
        "trt7",
        "trt8",
        "trt9",
        "trt10",
        "trt11",
        "trt12",
        "trt13",
        "trt14",
        "trt15",
        "trt16",
        "trt17",
        "trt18",
        "trt19",
        "trt20",
        "trt21",
        "trt22",
        "trt23",
        "trt24",
        "tre-ac",
        "tre-al",
        "tre-am",
        "tre-ap",
        "tre-ba",
        "tre-ce",
        "tre-df",
        "tre-es",
        "tre-go",
        "tre-ma",
        "tre-mg",
        "tre-ms",
        "tre-mt",
        "tre-pa",
        "tre-pb",
        "tre-pe",
        "tre-pi",
        "tre-pr",
        "tre-rj",
        "tre-rn",
        "tre-ro",
        "tre-rr",
        "tre-rs",
        "tre-sc",
        "tre-se",
        "tre-sp",
        "tre-to",
        "tjmmg",
        "tjmrs",
        "tjmsp"
      ]
    },
    "numero_processo": {
      "type": "string"
    }
  },
  "required": [
    "tribunal",
    "numero_processo"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢datajud_search(tribunal, classe_codigo, orgao_julgador_codigo, assunto_codigo, numero_processo, ...)

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 use o MCP djen/escavador.

Input Schema

{
  "type": "object",
  "properties": {
    "tribunal": {
      "type": "string",
      "enum": [
        "tst",
        "stj",
        "tse",
        "stm",
        "trf1",
        "trf2",
        "trf3",
        "trf4",
        "trf5",
        "trf6",
        "tjac",
        "tjal",
        "tjam",
        "tjap",
        "tjba",
        "tjce",
        "tjdft",
        "tjes",
        "tjgo",
        "tjma",
        "tjmg",
        "tjms",
        "tjmt",
        "tjpa",
        "tjpb",
        "tjpe",
        "tjpi",
        "tjpr",
        "tjrj",
        "tjrn",
        "tjro",
        "tjrr",
        "tjrs",
        "tjsc",
        "tjse",
        "tjsp",
        "tjto",
        "trt1",
        "trt2",
        "trt3",
        "trt4",
        "trt5",
        "trt6",
        "trt7",
        "trt8",
        "trt9",
        "trt10",
        "trt11",
        "trt12",
        "trt13",
        "trt14",
        "trt15",
        "trt16",
        "trt17",
        "trt18",
        "trt19",
        "trt20",
        "trt21",
        "trt22",
        "trt23",
        "trt24",
        "tre-ac",
        "tre-al",
        "tre-am",
        "tre-ap",
        "tre-ba",
        "tre-ce",
        "tre-df",
        "tre-es",
        "tre-go",
        "tre-ma",
        "tre-mg",
        "tre-ms",
        "tre-mt",
        "tre-pa",
        "tre-pb",
        "tre-pe",
        "tre-pi",
        "tre-pr",
        "tre-rj",
        "tre-rn",
        "tre-ro",
        "tre-rr",
        "tre-rs",
        "tre-sc",
        "tre-se",
        "tre-sp",
        "tre-to",
        "tjmmg",
        "tjmrs",
        "tjmsp"
      ]
    },
    "classe_codigo": {
      "type": "number"
    },
    "orgao_julgador_codigo": {
      "type": "number"
    },
    "assunto_codigo": {
      "type": "number"
    },
    "numero_processo": {
      "type": "string"
    },
    "size": {
      "type": "number"
    },
    "from": {
      "type": "number"
    },
    "sort_desc": {
      "type": "boolean"
    }
  },
  "required": [
    "tribunal"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢datajud_movimentos(tribunal, numero_processo)

Consulta movimentações por número CNJ e tribunal. Retorna `tribunal`, `numeroProcesso` e `instancias[]` (timeline e metadados). Só sem resultados inclui `ausencia`. Ideal para detectar movimentação nova. Quando `instancias` está vazio, `ausencia` traz o mesmo diagnóstico de datajud_get_processo (motivo provável + explicação). Com resultados, esse bloco não é retornado.

Input Schema

{
  "type": "object",
  "properties": {
    "tribunal": {
      "type": "string",
      "enum": [
        "tst",
        "stj",
        "tse",
        "stm",
        "trf1",
        "trf2",
        "trf3",
        "trf4",
        "trf5",
        "trf6",
        "tjac",
        "tjal",
        "tjam",
        "tjap",
        "tjba",
        "tjce",
        "tjdft",
        "tjes",
        "tjgo",
        "tjma",
        "tjmg",
        "tjms",
        "tjmt",
        "tjpa",
        "tjpb",
        "tjpe",
        "tjpi",
        "tjpr",
        "tjrj",
        "tjrn",
        "tjro",
        "tjrr",
        "tjrs",
        "tjsc",
        "tjse",
        "tjsp",
        "tjto",
        "trt1",
        "trt2",
        "trt3",
        "trt4",
        "trt5",
        "trt6",
        "trt7",
        "trt8",
        "trt9",
        "trt10",
        "trt11",
        "trt12",
        "trt13",
        "trt14",
        "trt15",
        "trt16",
        "trt17",
        "trt18",
        "trt19",
        "trt20",
        "trt21",
        "trt22",
        "trt23",
        "trt24",
        "tre-ac",
        "tre-al",
        "tre-am",
        "tre-ap",
        "tre-ba",
        "tre-ce",
        "tre-df",
        "tre-es",
        "tre-go",
        "tre-ma",
        "tre-mg",
        "tre-ms",
        "tre-mt",
        "tre-pa",
        "tre-pb",
        "tre-pe",
        "tre-pi",
        "tre-pr",
        "tre-rj",
        "tre-rn",
        "tre-ro",
        "tre-rr",
        "tre-rs",
        "tre-sc",
        "tre-se",
        "tre-sp",
        "tre-to",
        "tjmmg",
        "tjmrs",
        "tjmsp"
      ]
    },
    "numero_processo": {
      "type": "string"
    }
  },
  "required": [
    "tribunal",
    "numero_processo"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢datajud_raw_query(tribunal, query, size, from, sort, ...)

Avançado: envia um corpo de query Elasticsearch cru pro índice do tribunal (escape hatch). Use search_after pra paginar além de 10k.

Input Schema

{
  "type": "object",
  "properties": {
    "tribunal": {
      "type": "string",
      "enum": [
        "tst",
        "stj",
        "tse",
        "stm",
        "trf1",
        "trf2",
        "trf3",
        "trf4",
        "trf5",
        "trf6",
        "tjac",
        "tjal",
        "tjam",
        "tjap",
        "tjba",
        "tjce",
        "tjdft",
        "tjes",
        "tjgo",
        "tjma",
        "tjmg",
        "tjms",
        "tjmt",
        "tjpa",
        "tjpb",
        "tjpe",
        "tjpi",
        "tjpr",
        "tjrj",
        "tjrn",
        "tjro",
        "tjrr",
        "tjrs",
        "tjsc",
        "tjse",
        "tjsp",
        "tjto",
        "trt1",
        "trt2",
        "trt3",
        "trt4",
        "trt5",
        "trt6",
        "trt7",
        "trt8",
        "trt9",
        "trt10",
        "trt11",
        "trt12",
        "trt13",
        "trt14",
        "trt15",
        "trt16",
        "trt17",
        "trt18",
        "trt19",
        "trt20",
        "trt21",
        "trt22",
        "trt23",
        "trt24",
        "tre-ac",
        "tre-al",
        "tre-am",
        "tre-ap",
        "tre-ba",
        "tre-ce",
        "tre-df",
        "tre-es",
        "tre-go",
        "tre-ma",
        "tre-mg",
        "tre-ms",
        "tre-mt",
        "tre-pa",
        "tre-pb",
        "tre-pe",
        "tre-pi",
        "tre-pr",
        "tre-rj",
        "tre-rn",
        "tre-ro",
        "tre-rr",
        "tre-rs",
        "tre-sc",
        "tre-se",
        "tre-sp",
        "tre-to",
        "tjmmg",
        "tjmrs",
        "tjmsp"
      ]
    },
    "query": {},
    "size": {
      "type": "number"
    },
    "from": {
      "type": "number"
    },
    "sort": {},
    "search_after": {}
  },
  "required": [
    "tribunal",
    "query"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢show_version

Show the current MCP platform and adapter versions.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡report_bug(message, context, conversation)

Report a bug, missing feature, or send feedback. Include the conversation array with recent messages for reproduction.

Input Schema

{
  "type": "object",
  "properties": {
    "message": {
      "type": "string"
    },
    "context": {
      "default": "",
      "type": "string"
    },
    "conversation": {
      "default": "[]",
      "type": "string"
    }
  },
  "required": [
    "message"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢connect

Returns connection status and URLs. When all providers are connected, returns authenticated:true and empty pending[]. When credentials are missing, returns connect_url for the toolkit and per-install URLs.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟢toolkit_info

Returns the current toolkit state: installed MCPs, their connection status, the accounts connected to each one, and how many catalog tools each exposes.

Input Schema

{
  "type": "object",
  "properties": {},
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡marketplace(action, query, mcp_id, limit, tier_slug, ...)

The official mcp.ai marketplace — the in-platform catalog of every MCP/tool, AND the way to run them. Covers capability requests like "find an MCP that does X", "consulta um CPF", "is there a tool for Y". Core flow: action=search discovers MCPs by intent → describe returns one MCP's full profile (every tool with its id + params, pricing, auth) so you pick the right tool_id → invoke RUNS that tool. KEY: invoke works even when the MCP is NOT installed — it runs the tool pontualmente (one-off), without adding the MCP to the toolkit and without bloating the tool list. If the MCP needs a credential/login, invoke returns a connect link; if it is paid and the wallet is empty, invoke returns a checkout/top-up link (the user opens it, then you retry). Use install only to make an MCP PERMANENT in the active toolkit (its tools then show up natively in future sessions); prefer invoke for a single/occasional use. list_tools lists what is callable right now. subscribe/cancel handle per-MCP billing; report_bug sends feedback; request_mcp asks us to build a NEW MCP when nothing fits. Search/describe flag installed_in_toolkit vs installed_in_workspace. Writes (install/uninstall/subscribe/cancel and the one-off install behind invoke) require workspace owner/admin. It also carries the mcp.ai PROMPT LIBRARY, which is about ready-made prompt TEXT rather than MCPs: search_prompts finds one, get_prompt returns its full text with {{variables}} filled, and publish_prompt saves a prompt and returns a shareable mcp.ai/p/<slug> link that opens without login.

Input Schema

{
  "type": "object",
  "properties": {
    "action": {
      "default": "search",
      "type": "string",
      "enum": [
        "search",
        "describe",
        "install",
        "uninstall",
        "subscribe",
        "cancel",
        "resume",
        "report_bug",
        "request_mcp",
        "list_tools",
        "invoke",
        "search_prompts",
        "get_prompt",
        "publish_prompt"
      ]
    },
    "query": {
      "default": "",
      "type": "string"
    },
    "mcp_id": {
      "default": "",
      "type": "string"
    },
    "limit": {
      "default": 10,
      "type": "number"
    },
    "tier_slug": {
      "default": "",
      "type": "string"
    },
    "immediate": {
      "default": false,
      "type": "boolean"
    },
    "cancel_reason": {
      "type": "string",
      "enum": [
        "too_expensive",
        "missing_features",
        "switched_service",
        "unused",
        "customer_service",
        "too_complex",
        "low_quality",
        "other"
      ]
    },
    "cancel_comment": {
      "default": "",
      "type": "string"
    },
    "message": {
      "default": "",
      "type": "string"
    },
    "report_context": {
      "default": "",
      "type": "string"
    },
    "conversation": {
      "default": "[]",
      "type": "string"
    },
    "request_name": {
      "default": "",
      "type": "string"
    },
    "request_details": {
      "default": "",
      "type": "string"
    },
    "tool_id": {
      "default": "",
      "type": "string"
    },
    "arguments": {
      "default": "{}",
      "type": "string"
    },
    "prompt_slug": {
      "default": "",
      "type": "string"
    },
    "prompt_vars": {
      "default": "{}",
      "type": "string"
    },
    "prompt_category": {
      "default": "",
      "type": "string"
    },
    "prompt_tool": {
      "default": "",
      "type": "string"
    },
    "prompt_title": {
      "default": "",
      "type": "string"
    },
    "prompt_description": {
      "default": "",
      "type": "string"
    },
    "prompt_body": {
      "default": "",
      "type": "string"
    },
    "prompt_targets": {
      "default": [],
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "claude",
          "chatgpt",
          "cursor",
          "lovable"
        ]
      }
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}
🟡authenticate(token)

MCP.AI for IDE agents (Cursor, etc.): log in in the browser, copy the access token. Best: add it to this server's config as a header `Authorization: Bearer <token>` for a permanent, non-expiring connection. Or paste it here for a session-only login: call with { token: "<jwt>" } after the user pastes, or with no args to get the link.

Input Schema

{
  "type": "object",
  "properties": {
    "token": {
      "type": "string"
    }
  },
  "$schema": "http://json-schema.org/draft-07/schema#"
}

Community

Rate this Server

Evidence

Recent observations

verifiedversion not recorded10 tools
verifiedversion not recorded10 tools