# titulo_votacao — how to use (mcp.ai)

Looks up a person's voter ID and polling place at the Electoral Court (TSE) from the name, CPF, voter registration, and date of birth. 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_titulo_votacao?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. `titulo_votacao_consultar`).

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

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

## Example prompts
- "What is the polling place for CPF 12345678909?"
- "Voter ID for CPF 12345678909"

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