# veiculo_historico_sp — how to use (mcp.ai)

History of vehicles linked to a CPF or CNPJ in the state of São Paulo. 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_sp?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. `veiculo_historico_sp_consultar`).

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

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

## Example prompts
- "Vehicle history for CPF 12345678909 in São Paulo"
- "Vehicles previously linked to CNPJ 12345678000190 in SP"

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