# veiculo_frotas — how to use (mcp.ai)

Lists the vehicles linked to a CPF or CNPJ nationwide, from the document provided. 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_frotas?ms=1787191200000`
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_frotas_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/veiculo_frotas/consultar` — Lista os veículos vinculados a um CPF ou CNPJ em âmbito nacional, a partir do documento informado. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré-pago. Consulta informa
  - body: { Cpf: string, Cnpj: string, completo?: boolean }

## Example prompts
- "Which vehicles are registered to CPF 12345678909?"
- "Fleet linked to CNPJ 12345678000190"

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