# veiculo_historico — how to use (mcp.ai)

History of vehicles linked to a CPF or CNPJ nationwide. 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_veiculo_historico?ms=1787191740000`
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. `veiculo_historico_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/veiculo_historico/consultar` — Histórico dos veículos vinculados a um CPF ou CNPJ em âmbito nacional. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré-pago. Consulta informação de ACESSO PÚBLICO em bas
  - body: { Cpf: string, Cnpj: string, completo?: boolean }

## Example prompts
- "National vehicle history for CPF 12345678909"
- "All vehicles ever linked to CNPJ 12345678000190"

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