# cadin_estadual — how to use (mcp.ai)

Status of a CPF or CNPJ in the state treasury default registry (CADIN), by 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_cadin_estadual?ms=1787191320000`
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. `cadin_estadual_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/cadin_estadual/consultar` — Situação de um CPF ou CNPJ no Cadastro Informativo de Inadimplência (CADIN) das secretarias estaduais de fazenda, por UF. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré
  - body: { Cpf: string, Cnpj: string, Uf: string, completo?: boolean }

## Example prompts
- "Is CNPJ 12345678000190 in the CADIN of SP?"
- "CADIN status for CPF 12345678909 (RJ)"

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