# receita_pj_qsa — how to use (mcp.ai)

Looks up a company's ownership structure and the partners' holdings in other companies, from the CNPJ. 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_receita_pj_qsa?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. `receita_pj_qsa_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/receita_pj_qsa/consultar` — Consulta o quadro societário de uma empresa e a participação societária dos sócios em outras empresas, a partir do CNPJ. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré-
  - body: { CNPJ: string, completo?: boolean }

## Example prompts
- "Partners of CNPJ 12345678000190 and their other holdings"
- "Ownership and holdings for CNPJ 12345678000190"

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