# pge_sp_cndt — how to use (mcp.ai)

Procuradoria Geral do Estado SP: Clearance Certificate (Debts) Tributários, 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_pge_sp_cndt?ms=1787246940000`
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. `pge_sp_cndt_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/pge_sp_cndt/consultar` — Procuradoria Geral do Estado SP: Certidão Negativa de Débitos Tributários, consulta em fonte oficial. Hospedado pela plataforma, sem credenciais da plataforma, pague por consulta com crédito pré-pago.
  - body: { cnpj?: string, cpf?: string, login_cpf?: string, login_senha?: string, pkcs12_cert?: string, pkcs12_pass?: string }

## Example prompts
- "Look up Procuradoria Geral do Estado SP: Clearance Certificate (Debts) Tributários"

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