# cadin_sp — how to use (mcp.ai)

Status of a CPF or CNPJ in the São Paulo treasury default registry (CADIN). 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_sp?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. `cadin_sp_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/cadin_sp/consultar` — Situação de um CPF ou CNPJ no Cadastro Informativo de Inadimplência (CADIN) da Secretaria da Fazenda de São Paulo. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré-pago. 
  - body: { Cpf: string, Cnpj: string, completo?: boolean }

## Example prompts
- "Is CNPJ 12345678000190 in the São Paulo CADIN?"
- "CADIN SP status for CPF 12345678909"

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