# carf — how to use (mcp.ai)

Looks up proceedings of a person or company at the Administrative Board of Tax Appeals (CARF) 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_carf?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. `carf_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/carf/consultar` — Consulta processos de uma pessoa ou empresa no Conselho Administrativo de Recursos Fiscais (CARF) a partir do CPF ou CNPJ. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pr
  - body: { CPF: string, CNPJ: string, completo?: boolean }

## Example prompts
- "Does CNPJ 12345678000190 have a CARF proceeding?"
- "CARF proceedings for CPF 12345678909"

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