# trf_certidao — how to use (mcp.ai)

Issues the civil, electoral, or criminal clearance of a person or company at the Federal Regional Court, from the CPF or CNPJ and region. 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_trf_certidao?ms=1787191680000`
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. `trf_certidao_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/trf_certidao/consultar` — Emite a certidão cível, eleitoral ou criminal de uma pessoa ou empresa no Tribunal Regional Federal, a partir do CPF ou CNPJ e da região. Hospedado pela plataforma, sem credenciais, pague por consulta
  - body: { Cnpj: string, Cpf: string, Tipo: string, Regiao: string, completo?: boolean }

## Example prompts
- "TRF criminal clearance for CPF 12345678909"
- "Does CNPJ 12345678000190 have federal court cases?"

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