# situacao_eleitoral — how to use (mcp.ai)

Looks up a person's voter status at the Electoral Court (TSE) from the name, date of birth, CPF, and voter registration. 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_situacao_eleitoral?ms=1787191440000`
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. `situacao_eleitoral_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/situacao_eleitoral/consultar` — Consulta a situação eleitoral de uma pessoa no TSE a partir do nome, data de nascimento, CPF e título de eleitor. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré-pago. C
  - body: { Nome: string, DataNascimento: string, CPF: string, NumeroTituloEleitoral: string, completo?: boolean }

## Example prompts
- "Voter status for CPF 12345678909"
- "Is voter registration 123456789012 in good standing?"

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