# cepim — how to use (mcp.ai)

Checks whether a nonprofit private entity is in the CEPIM (barred from public funds) from the 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_cepim?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. `cepim_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/cepim/consultar` — Verifica se uma entidade privada sem fins lucrativos consta no CEPIM (impedidas de receber recursos públicos) a partir do CNPJ. Hospedado pela plataforma, sem credenciais, pague por consulta com crédi
  - body: { Cnpj: string, completo?: boolean }

## Example prompts
- "Is entity CNPJ 12345678000190 in the CEPIM?"
- "Is CNPJ 12345678000190 barred from public funds?"

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