# cnep — how to use (mcp.ai)

Checks whether a person or company is in the National Register of Punished Companies (CNEP) 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_cnep?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. `cnep_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/cnep/consultar` — Verifica se uma pessoa ou empresa consta no Cadastro Nacional de Empresas Punidas (CNEP) a partir do CPF ou CNPJ. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré-pago. C
  - body: { Cnpj: string, Cpf: string, completo?: boolean }

## Example prompts
- "Is CNPJ 12345678000190 in the CNEP?"
- "Was company CNPJ 12345678000190 punished?"

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