# cnd_municipal — how to use (mcp.ai)

Issues the municipal tax clearance certificate for a person or company from the CPF or CNPJ, municipal registration, and city. 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_cnd_municipal?ms=1787191320000`
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. `cnd_municipal_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/cnd_municipal/consultar` — Emite a Certidão Negativa de Débitos municipal de uma pessoa ou empresa a partir do CPF ou CNPJ, inscrição municipal e município. Hospedado pela plataforma, sem credenciais, pague por consulta com cré
  - body: { Cpf: string, Cnpj: string, IM: string, Municipio: string, completo?: boolean }

## Example prompts
- "Municipal clearance for CNPJ 12345678000190 in São Paulo"
- "Does CNPJ 12345678000190 have municipal debts?"

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