# sefaz_ms_dec_caixa_postal — how to use (mcp.ai)

SEFAZ MS DTE: Caixa Postal, 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_sefaz_ms_dec_caixa_postal?ms=1787191380000`
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. `sefaz_ms_dec_caixa_postal_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/sefaz_ms_dec_caixa_postal/consultar` — SEFAZ MS DTE: Caixa Postal, consulta em fonte oficial. Hospedado pela plataforma, sem credenciais da plataforma, pague por consulta com crédito pré-pago. Consulta informação de fontes e órgãos oficiai
  - body: { pkcs12_cert: string, pkcs12_pass: string, ie?: string, cnpj?: string, ignora_nao_lidas?: string }

## Example prompts
- "Look up SEFAZ MS DTE: Caixa Postal"

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