# tj_certidao — how to use (mcp.ai)

Issues the civil, criminal, and tax clearance of a person or company at the state Court of Justice, from the CPF or CNPJ 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_certidao?ms=1787191200000`
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_certidao_consultar`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/tj_certidao`
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_certidao/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/tj_certidao/consultar` — Emite a certidão cível, criminal e fiscal de uma pessoa ou empresa no Tribunal de Justiça estadual, a partir do CPF ou CNPJ e da UF. Hospedado pela plataforma, sem credenciais, pague por consulta com 
  - body: { CPF: string, CNPJ: string, Nome: string, DataNascimento: string, NomeMae: string, NomePai: string, RG: string, Genero: string, Tipo: string, UF: string, completo?: boolean }

## Example prompts
- "State court clearance for CPF 12345678909 in SP"
- "Does CNPJ 12345678000190 have court cases?"

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