# tribunal_tse_pje — how to use (mcp.ai)

Tribunal TSE: Court Case Judicial Eletrônico (PJe), official-source lookup. Platform-hosted, pay per query with prepaid credit.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_tribunal_tse_pje?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. `tribunal_tse_pje_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/tribunal_tse_pje/consultar` — Tribunal TSE: Processo Judicial Eletrônico (PJe), consulta em fonte oficial. Hospedado pela plataforma, sem credenciais da plataforma, pague por consulta com crédito pré-pago. Consulta informação de f
  - body: { numero_processo?: string, cpf?: string, cnpj?: string, classe_judicial?: string, objeto?: string, orgao?: string, uf?: string, municipio?: string, ano_eleicao?: string, data_inicial_autuacao?: string, data_final_autuacao?: string, nome_parte?: string, nome_advogado?: string, oab?: string }

## Example prompts
- "Look up Tribunal TSE: Court Case Judicial Eletrônico (PJe)"

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