# tj_processos — how to use (mcp.ai)

Looks up cases in the state Court of Justice by CPF, CNPJ, party name, case number, instance, and state. Platform-hosted, no credentials, pay per query with prepaid credit.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_tj_processos?ms=1787191620000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `tj_processos_consultar`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/tj_processos`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/tj_processos/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/tj_processos/consultar` — Consulta processos no Tribunal de Justiça estadual por CPF, CNPJ, nome da parte, número do processo, grau e UF. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré-pago. Con
  - body: { Cpf: string, Cnpj: string, NomeParte: string, NumeroProcesso: string, Grau: string, Uf: string, completo?: boolean }

## Example prompts
- "Cases for CNPJ 12345678000190 in TJ-SP"
- "Look up case no. 0001234-56.2024.8.26.0100"

## More
- Page: https://mcp.ai/tj_processos
- Agent spec (llms.txt): https://mcp.ai/tj_processos/llms.txt
- Postman collection: https://mcp.ai/tj_processos/postman.json
