# dnit_infracoes_cnpj — how to use (mcp.ai)

DNIT: Traffic Fines (CNPJ), official-source lookup. Platform-hosted, pay per query with prepaid credit.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_dnit_infracoes_cnpj?ms=1787247060000`
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. `dnit_infracoes_cnpj_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/dnit_infracoes_cnpj/consultar` — DNIT: Infrações (CNPJ), consulta em fonte oficial. Hospedado pela plataforma, sem credenciais da plataforma, pague por consulta com crédito pré-pago. Consulta informação de fontes e órgãos oficiais br
  - body: { login_cpf?: string, login_senha?: string, pkcs12_cert?: string, pkcs12_pass?: string, cnpj: string, razao_social: string }

## Example prompts
- "Look up DNIT: Traffic Fines (CNPJ)"

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