# pis — how to use (mcp.ai)

Looks up the PIS number and associated data for a person from the CPF, in the Labor Ministry base. 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_pis?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. `pis_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/pis/consultar` — Consulta o número do PIS e dados associados de uma pessoa a partir do CPF, na base do Ministério do Trabalho. Hospedado pela plataforma, sem credenciais, pague por consulta com crédito pré-pago. Consu
  - body: { Cpf: string, completo?: boolean }

## Example prompts
- "What is the PIS for CPF 12345678909?"
- "PIS data for CPF 12345678909"

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