# stm_certidao — how to use (mcp.ai)

Issues the clearance certificate from the Superior Military Court (STM) for a person from the name, CPF, date of birth, and mother's name. 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_stm_certidao?ms=1787191740000`
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. `stm_certidao_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/stm_certidao/consultar` — Emite a certidão negativa do Superior Tribunal Militar (STM) para uma pessoa a partir do nome, CPF, data de nascimento e nome da mãe. Hospedado pela plataforma, sem credenciais, pague por consulta com
  - body: { Nome: string, CPF: string, DataNascimento: string, NomeMae: string, completo?: boolean }

## Example prompts
- "STM clearance for CPF 12345678909"
- "Does CPF 12345678909 have a military court case?"

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