# mpt — how to use (mcp.ai)

Looks up records of a person or company at the Labor Public Prosecutor's Office (MPT) from the CPF or CNPJ and region. 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_mpt?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. `mpt_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/mpt/consultar` — Consulta registros de uma pessoa ou empresa no Ministério Público do Trabalho (MPT) a partir do CPF ou CNPJ e região. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré-pag
  - body: { Cpf: string, Cnpj: string, Regiao: string, completo?: boolean }

## Example prompts
- "Does CNPJ 12345678000190 have MPT records?"
- "MPT proceedings for CNPJ 12345678000190"

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