# cnd_federal — how to use (mcp.ai)

Issues the federal tax clearance certificate (CND) for 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_cnd_federal?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. `cnd_federal_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/cnd_federal/consultar` — Emite a Certidão Negativa de Débitos (CND) federal de uma pessoa ou empresa a partir do CPF ou CNPJ. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré-pago. Consulta infor
  - body: { Cpf: string, Cnpj: string, ie: string, Uf: string, completo?: boolean }

## Example prompts
- "Issue the federal CND for CNPJ 12345678000190"
- "Is CPF 12345678909 clear with the Revenue?"

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