# cnia_improbidade — how to use (mcp.ai)

Checks convictions for administrative misconduct and ineligibility (CNIA) of a person or company from the CPF or CNPJ. 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_cnia_improbidade?ms=1787191260000`
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. `cnia_improbidade_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/cnia_improbidade/consultar` — Verifica condenações por improbidade administrativa e inelegibilidade (CNIA) de uma pessoa ou empresa a partir do CPF ou CNPJ. Hospedado pela plataforma, sem credenciais, pague por consulta com crédit
  - body: { Cnpj: string, Cpf: string, completo?: boolean }

## Example prompts
- "Does CPF 12345678909 have a misconduct conviction?"
- "CNIA check for CNPJ 12345678000190"

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