# cnh_situacao — how to use (mcp.ai)

Checks the status of a person's driver's license (CNH) from the CPF. Built for the holder to check their own license. 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_cnh_situacao?ms=1787191380000`
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. `cnh_situacao_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/cnh_situacao/consultar` — Consulta a situação da Carteira Nacional de Habilitação (CNH) de uma pessoa a partir do CPF. Feito para o titular consultar a própria habilitação. Hospedado pela plataforma, sem credenciais, pague por
  - body: { CPF: string, completo?: boolean }

## Example prompts
- "What is my driver's license status? CPF 12345678909"
- "Is the CNH for CPF 12345678909 valid?"

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