# mpf_certidao — how to use (mcp.ai)

Issues the clearance certificate from the Federal Public Prosecutor's Office (MPF) for a person or company from the CPF or 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_mpf_certidao?ms=1787191620000`
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. `mpf_certidao_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/mpf_certidao/consultar` — Emite a certidão negativa do Ministério Público Federal para uma pessoa ou empresa a partir do CPF ou CNPJ. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré-pago. Consult
  - body: { Cpf: string, Cnpj: string, completo?: boolean }

## Example prompts
- "MPF clearance for CPF 12345678909"
- "Does CNPJ 12345678000190 have issues at the MPF?"

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