# mte_infracoes — how to use (mcp.ai)

Looks up labor violations recorded by the Ministry of Labor 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_mte_infracoes?ms=1787191440000`
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. `mte_infracoes_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/mte_infracoes/consultar` — Consulta infrações trabalhistas registradas pelo Ministério do Trabalho e Emprego para uma pessoa ou empresa a partir do CPF ou CNPJ. Hospedado pela plataforma, sem credenciais, pague por consulta com
  - body: { Cpf: string, Cnpj: string, completo?: boolean }

## Example prompts
- "Does CNPJ 12345678000190 have labor violations?"
- "MTE records for CNPJ 12345678000190"

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