# tesouro_nacional_capag — how to use (mcp.ai)

Tesouro Nacional: Capacidade de Pagamento (CAPAG), official-source lookup. Platform-hosted, pay per query with prepaid credit.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_tesouro_nacional_capag?ms=1787247000000`
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. `tesouro_nacional_capag_consultar`).

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

### Endpoints
- `POST https://api.mcp.ai/api/tesouro_nacional_capag/consultar` — Tesouro Nacional: Capacidade de Pagamento (CAPAG), consulta em fonte oficial. Hospedado pela plataforma, sem credenciais da plataforma, pague por consulta com crédito pré-pago. Consulta informação de 
  - body: { uf: string, municipio: string }

## Example prompts
- "Look up Tesouro Nacional: Capacidade de Pagamento (CAPAG)"

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