# jucesp_nire — how to use (mcp.ai)

Advanced company search at JUCESP by name, purpose, capital and address, returning the NIRE. 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_jucesp_nire?ms=1787191260000`
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. `jucesp_nire_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/jucesp_nire/consultar` — Pesquisa avançada de empresas na JUCESP por razão social, objeto, capital, endereço e outros filtros, retornando o NIRE. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré-
  - body: { razao_social?: string, objeto?: string, capital_minimo?: string, capital_maximo?: string, abertura_inicio?: string, abertura_fim?: string, dissolucao_inicio?: string, dissolucao_fim?: string, logradouro?: string, cep?: string, bairro?: string, municipio?: string, uf?: string, tipo_empresa?: string, inclui_inativas?: string }

## Example prompts
- "Find the NIRE of companies in SP by name"

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