# oab_advogados — how to use (mcp.ai)

Looks up the national lawyer registry at the Brazilian Bar (OAB) by name and registration number. 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_oab_advogados?ms=1787191320000`
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. `oab_advogados_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/oab_advogados/consultar` — Consulta o cadastro nacional de advogados na OAB por nome e inscrição. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré-pago. Consulta informação de ACESSO PÚBLICO em bas
  - body: { Nome: string, IE: string, completo?: boolean }

## Example prompts
- "Is lawyer João da Silva registered with the OAB?"
- "OAB lookup by registration 123456"

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