# restituicao_irpf — how to use (mcp.ai)

Looks up an individual's income tax refund status from the CPF, date of birth, and tax year. 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_restituicao_irpf?ms=1787191500000`
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. `restituicao_irpf_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/restituicao_irpf/consultar` — Consulta a situação da restituição do Imposto de Renda de uma pessoa física a partir do CPF, data de nascimento e ano-exercício. Hospedado pela plataforma, sem credenciais, pague por consulta com créd
  - body: { Cpf: string, DataNascimento: string, AnoExercicio: string, completo?: boolean }

## Example prompts
- "IRPF refund status for CPF 12345678909 in 2024"
- "Does CPF 12345678909 have a refund to receive?"

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