prime_rate

Pack: brapi · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/prime_rate for the schema, then POST the same URL with its arguments for the data.

brapi.dev — prime/benchmark interest rate series (Selic/base rate) for Brazil or other countries. Optional historical flag plus start/end date range returns rate readings over time.

Parameters

NameTypeRequiredDescription
countrystringno
historicalbooleanno
startstringno
endstringno
sortBystringno
sortOrderstringno

Example call

Arguments

{
  "country": "BR",
  "historical": true,
  "start": "2020-01-01",
  "end": "2024-01-01"
}

curl

curl -X POST https://gateway.pipeworx.io/brapi/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"prime_rate","arguments":{"country":"BR","historical":true,"start":"2020-01-01","end":"2024-01-01"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('prime_rate', {
  "country": "BR",
  "historical": true,
  "start": "2020-01-01",
  "end": "2024-01-01"
});

More examples

{
  "country": "BR",
  "sortBy": "date",
  "sortOrder": "desc"
}

Response shape

Full JSON Schema
{
  "type": "object",
  "description": "Prime rate series data for specified country and period"
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the brapi pack
{
  "mcpServers": {
    "brapi": {
      "url": "https://gateway.pipeworx.io/brapi/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 6, 2026