io.github.codespar/mcp-btg
NPM · @CODESPAR/MCP-BTG · SCANNED AUG 4
MCP server for BTG Pactual — Pix, Boleto, Account, Investments (CDB/LCI/LCA/funds), OAuth2 + mTLS
Available components
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score →
Supply Chain Security86
- No malware found by supply-chain analysis.Pass
- Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree.Partial
- No install/post-install scripts declared.Pass
- Only part of the dependency tree could be resolved (94 of 98), so this covers what we could see, not the whole tree. View diagnostics → Partial
Provenance & Transparency45
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 42 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability73
- AI-judged instruction clarity (good).Pass
- Context-footprint check failed: tool/resource definitions use about 1405 tokens (~117/item across 12 items; 12 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management30
- Stability observed for 9 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage98
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 95% of tool parameters carry a description.Partial
Capabilities100
- Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.
npm · @codespar/mcp-btg
claude mcp add codespar-mcp-btg -- npx -y @codespar/mcp-btg
codex mcp add codespar-mcp-btg -- npx -y @codespar/mcp-btg
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"codespar-mcp-btg": {
"type": "local",
"command": [
"npx",
"-y",
"@codespar/mcp-btg"
],
"enabled": true
}
}
} openclaw mcp add codespar-mcp-btg --command npx --arg -y --arg @codespar/mcp-btg
mcp_servers:
codespar-mcp-btg:
command: "npx"
args: ["-y", "@codespar/mcp-btg"] {
"mcpServers": {
"codespar-mcp-btg": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-btg"
]
}
}
} Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 4 Aug 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 27 to 30. That category is still filling its 30-day observation window: 8 days of observed history at the previous scan, 9 at this one. The score rises as the window fills, whether or not the server changes.
- 3 Aug 26 +4
- Stability: unverified → 0.27 ▲ functional
- 2 Aug 26 +29
- Provenance: unverified → fail ▼ security
- Install scripts: unverified → pass ▲ security
- Known CVEs: unverified → partial ▲ security
- Stability: Stability not yet verified: not enough scan history yet (needs a 30-day window). security
- License: unverified → pass ▲ functional
- Dependency health: unverified → partial ▲ functional
- Maintenance: unverified → pass ▲ functional
- MCP protocol: unverified → pass ▲ functional
- Schema quality: unverified → good ▲ functional
- Licence: MIT functional
- 1 Aug 26 +15
- Malware scan: unverified → pass ▲ security
- 31 Jul 26 −25
- We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
- 30 Jul 26 +19
- Dependency health: partial → unverified ▼ functional
- Tool coverage: unverified → 100 ▲ functional
- 28 Jul 26 −19
- Tool coverage: 100 → unverified ▼ functional
- Dependency health: unverified → partial ▲ functional
- First check of Schema quality: unverified functional
- 27 Jul 26 45
First indexed and scored.
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 4 Aug 2026 · Analysed npm/@codespar/[email protected]
Provenance none
Ecosystem: npm · Outcome: none
Dependencies 94 packages
94 packages in the resolved dependency tree · 94 deprecated · 29 stale.
The dependency tree was only partially resolved, so these counts may be incomplete.
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.
create_boleto ~166
Issue a boleto via BTG Cobrança. Returns nosso_numero, linha_digitável, barcode, and PDF URL.
| Name | Type | Req | Description |
|---|---|---|---|
| amount | string | yes | Amount in BRL major units, e.g. '150.00' |
| due_date | string | yes | Due date ISO-8601 (YYYY-MM-DD) |
| fine | object | — | Multa (fine after due date): { percentage?, amount?, days_after_due? } |
| instructions | array | — | Free-text instructions printed on the boleto |
| interest | object | — | Juros (daily interest after due date): { percentage?, amount? } |
| our_number | string | — | Nosso_numero. Omit to have BTG assign one. |
| payer | object | yes | Payer (sacado) data |
No output schema declared.
No examples provided.
create_pix_cob ~138
Create an immediate Pix charge (cob) with QR code. Returns the txid, copy-paste EMV payload, and location URL. BACEN Pix v2 standard surface.
| Name | Type | Req | Description |
|---|---|---|---|
| additional_info | array | — | Optional free-text key/value info shown to the payer |
| amount | string | yes | Amount in BRL major units, e.g. '99.90' |
| description | string | — | Payer-visible description (max 140 chars) |
| expires_in | number | — | QR lifetime in seconds (default 3600) |
| payer | object | — | Payer identification (recommended for cob; required for cobv) |
No output schema declared.
No examples provided.
get_account_balance ~54
Retrieve the available balance for a BTG+ checking account (conta corrente). Returns available, blocked, and total balances in BRL.
| Name | Type | Req | Description |
|---|---|---|---|
| account | string | yes | Agência-conta identifier of the BTG+ account |
No output schema declared.
No examples provided.
get_account_statement ~100
Retrieve account statement transactions for a given period. Paginated.
| Name | Type | Req | Description |
|---|---|---|---|
| account | string | yes | Agência-conta identifier of the BTG+ account |
| from | string | yes | Start date ISO-8601 (YYYY-MM-DD) |
| page | number | — | Page number (1-indexed) |
| page_size | number | — | Items per page (default 50) |
| to | string | yes | End date ISO-8601 (YYYY-MM-DD) |
No output schema declared.
No examples provided.
get_boleto ~38
Retrieve a boleto by its BTG identifier (id or nosso_numero).
| Name | Type | Req | Description |
|---|---|---|---|
| id | string | yes | Boleto id or nosso_numero |
No output schema declared.
No examples provided.
get_oauth_token ~44
Mint or return a cached OAuth2 client_credentials bearer token for the BTG Developer Portal. Exposed so agents can inspect token freshness; normal tool calls obtain tokens implicitly.
Input schema present but exposes no named parameters.
No output schema declared.
No examples provided.
get_pix_cob ~48
Retrieve an immediate Pix charge (cob) by its txid.
| Name | Type | Req | Description |
|---|---|---|---|
| txid | string | yes | Pix charge txid (BACEN-format alphanumeric, 26-35 chars) |
No output schema declared.
No examples provided.
get_portfolio_summary ~90
Consolidated portfolio summary across all asset classes held at BTG (fixed income, funds, equities, treasury, crypto). Returns gross value, net value, % allocation per class, and total IR/IOF estimate.
| Name | Type | Req | Description |
|---|---|---|---|
| account | string | yes | Investment account identifier (BTG investor code) |
| reference_date | string | — | Optional reference date YYYY-MM-DD; defaults to D-1 close |
No output schema declared.
No examples provided.
list_funds_available ~152
List funds available for distribution on BTG's platform. Returns fund CNPJ, name, manager, class (Renda Fixa | Multimercado | Ações | Cambial | Previdência | FIDC | FII), benchmark, fee schedule, minimum subscription, and liquidity (cotização / liquidação D+n).
| Name | Type | Req | Description |
|---|---|---|---|
| asset_class | string | — | Optional filter: RF | MM | ACOES | CAMBIAL | PREV | FIDC | FII |
| manager | string | — | Optional manager name filter |
| min_subscription_max | string | — | Optional cap on minimum subscription (BRL major units) |
| page | number | — | — |
| page_size | number | — | — |
No output schema declared.
No examples provided.
list_investment_positions ~174
List the counterparty's investment positions held at BTG, scoped to fixed-income asset classes (CDB, LCI, LCA, LF, LFSN, debêntures, CRI, CRA). Each position includes issuer, indexer (CDI/IPCA/Prefixado), gross value, net value (after IR/IOF), and maturity.
| Name | Type | Req | Description |
|---|---|---|---|
| account | string | yes | Investment account identifier (BTG investor code, distinct from checking agência-conta) |
| asset_class | string | — | Optional filter: CDB | LCI | LCA | LF | LFSN | DEBENTURE | CRI | CRA |
| maturity_from | string | — | Optional maturity filter — earliest YYYY-MM-DD |
| maturity_to | string | — | Optional maturity filter — latest YYYY-MM-DD |
No output schema declared.
No examples provided.
redeem_from_fund ~172
Redeem (resgatar) from a fund. Total or partial. Settlement follows the fund's cotização/liquidação rule. Returns the request id, redemption type (total/parcial), and projected liquidation date.
| Name | Type | Req | Description |
|---|---|---|---|
| account | string | yes | Investment account identifier (BTG investor code) |
| amount | string | — | Redemption amount in BRL major units. Omit for total redemption. |
| destination_account | string | yes | BTG+ checking account to credit (agência-conta) |
| fund_cnpj | string | yes | CNPJ of the fund (digits only) |
| idempotency_key | string | yes | Counterparty-side idempotency key (UUID recommended) |
| redemption_type | string | — | TOTAL | PARCIAL — defaults to PARCIAL when amount is given, TOTAL otherwise |
No output schema declared.
No examples provided.
subscribe_to_fund ~162
Subscribe (aplicar) to a fund on BTG's distribution platform. Settlement follows the fund's cotização/liquidação rule (typically D+0 cotização, D+1 liquidação for RF; D+30 for some FIDC). Requires a suitability profile on file.
| Name | Type | Req | Description |
|---|---|---|---|
| account | string | yes | Investment account identifier (BTG investor code) |
| amount | string | yes | Subscription amount in BRL major units, e.g. '5000.00' |
| fund_cnpj | string | yes | CNPJ of the fund (digits only) |
| idempotency_key | string | yes | Counterparty-side idempotency key (UUID recommended) |
| source_account | string | yes | BTG+ checking account to debit (agência-conta) |
No output schema declared.
No examples provided.