br_financials
Pack: brazil-cvm-financials · 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/br_financials for the schema, then POST the same URL with its arguments for the data.
Annual statements (balance sheet, income, cash flow) of a Brazilian listed company, from CVM open data.
Tool description as the model sees it
Annual financial statements (DFP) of a Brazilian listed company from CVM open data: balance sheet, income statement, cash flow and value added, as account lines with CVM account codes and Portuguese labels, in full BRL. Identify the company by cnpj (e.g. “00.000.000/0001-91” or 14 digits) or by name (e.g. “Petrobras”; an ambiguous name returns candidates instead of a guess). year is the fiscal reference year (default: latest loaded). scope is “consolidated” or “individual” (default: consolidated when the company filed one, else individual — the response says which). Only the latest filing version is kept; the response states it. statement narrows to one of BPA (assets), BPP (liabilities and equity), DRE (income), DFC_MI / DFC_MD (cash flow indirect / direct), DVA (value added). max_depth (default 2) limits account-code depth so a default call returns the headline lines; raise it for sub-accounts. Results page with limit/offset and report truncated/total_matching. A company or year not in the data returns found:false with data_as_of, never an empty success.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
cnpj | string | no | Company CNPJ, formatted or 14 digits. Pass cnpj or name. |
name | string | no | Company name, e.g. “Petrobras”, “Itau Unibanco”. Accents optional. |
year | number | no | Fiscal reference year, e.g. 2024. Default: latest loaded for that company. |
scope | string | no | Default consolidated if filed, else individual. |
statement | string | no | One statement only. Default: all. |
max_depth | number | no | Account-code depth, 1-6 (default 2: e.g. “3.01” but not “3.01.01”). |
limit | number | no | Lines per page, 1-500 (default 100). |
offset | number | no | Lines to skip (default 0). |
Example call
Arguments
{
"cnpj": "33.000.167/0001-01",
"year": 2024,
"statement": "DRE"
}
curl
curl -X POST https://gateway.pipeworx.io/brazil-cvm-financials/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"br_financials","arguments":{"cnpj":"33.000.167/0001-01","year":2024,"statement":"DRE"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('br_financials', {
"cnpj": "33.000.167/0001-01",
"year": 2024,
"statement": "DRE"
});
Response shape
| Field | Type | Description |
|---|---|---|
found | boolean | |
cnpj | string | |
company | string | |
cvm_code | string | |
fiscal_year | number | |
reference_date | string | |
scope | string | |
scopes_filed | array | |
filing_version | number | |
filing_versions_seen | number | |
filing_received | string | |
currency | string | |
filed_scale | string | |
units | string | |
statements | object | |
max_depth | number | |
total_matching | number | |
returned | number | |
truncated | boolean | |
lines | array | |
source | string | |
licence | string | |
data_as_of | string | |
latest_filing_received | string | |
fiscal_years_loaded | array |
Full JSON Schema
{
"type": "object",
"properties": {
"found": {
"type": "boolean"
},
"cnpj": {
"type": "string"
},
"company": {
"type": "string"
},
"cvm_code": {
"type": "string"
},
"fiscal_year": {
"type": "number"
},
"reference_date": {
"type": "string"
},
"scope": {
"type": "string"
},
"scopes_filed": {
"type": "array",
"items": {
"type": "string"
}
},
"filing_version": {
"type": "number"
},
"filing_versions_seen": {
"type": "number"
},
"filing_received": {
"type": "string"
},
"currency": {
"type": "string"
},
"filed_scale": {
"type": "string"
},
"units": {
"type": "string"
},
"statements": {
"type": "object",
"properties": {
"BPA": {
"type": "string"
},
"BPP": {
"type": "string"
},
"DRE": {
"type": "string"
},
"DFC_MI": {
"type": "string"
},
"DFC_MD": {
"type": "string"
},
"DVA": {
"type": "string"
}
},
"additionalProperties": true
},
"max_depth": {
"type": "number"
},
"total_matching": {
"type": "number"
},
"returned": {
"type": "number"
},
"truncated": {
"type": "boolean"
},
"lines": {
"type": "array",
"items": {
"type": "object",
"properties": {
"statement": {
"type": "string"
},
"account_code": {
"type": "string"
},
"label": {
"type": "string"
},
"value_brl": {
"type": "number"
},
"period_start": {
"type": "string"
},
"period_end": {
"type": "string"
}
},
"additionalProperties": true
}
},
"source": {
"type": "string"
},
"licence": {
"type": "string"
},
"data_as_of": {
"type": "string"
},
"latest_filing_received": {
"type": "string"
},
"fiscal_years_loaded": {
"type": "array",
"items": {
"type": "number"
}
}
},
"additionalProperties": true
}
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 brazil-cvm-financials pack
{
"mcpServers": {
"brazil-cvm-financials": {
"url": "https://gateway.pipeworx.io/brazil-cvm-financials/mcp"
}
}
}
See Getting Started for client-specific install steps.