Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, email [email protected] and we’ll put it right.

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

+43 this week 69 Trust /100
Trust breakdown (6 categories)

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
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
Install

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

# add to Claude Code
claude mcp add codespar-mcp-btg -- npx -y @codespar/mcp-btg
# add to Codex CLI
codex mcp add codespar-mcp-btg -- npx -y @codespar/mcp-btg
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "codespar-mcp-btg": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@codespar/mcp-btg"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add codespar-mcp-btg --command npx --arg -y --arg @codespar/mcp-btg
# ~/.hermes/config.yaml
mcp_servers:
  codespar-mcp-btg:
    command: "npx"
    args: ["-y", "@codespar/mcp-btg"]
// mcp.json
{
  "mcpServers": {
    "codespar-mcp-btg": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-btg"
      ]
    }
  }
}
Changelog

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.

Diagnostics

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.

MCP tools — 12 exposed · ~1,338 tokens

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.

Tool Tokens
create_boleto ~166

Issue a boleto via BTG Cobrança. Returns nosso_numero, linha_digitável, barcode, and PDF URL.

NameTypeReqDescription
amountstringyesAmount in BRL major units, e.g. '150.00'
due_datestringyesDue date ISO-8601 (YYYY-MM-DD)
fineobjectMulta (fine after due date): { percentage?, amount?, days_after_due? }
instructionsarrayFree-text instructions printed on the boleto
interestobjectJuros (daily interest after due date): { percentage?, amount? }
our_numberstringNosso_numero. Omit to have BTG assign one.
payerobjectyesPayer (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.

NameTypeReqDescription
additional_infoarrayOptional free-text key/value info shown to the payer
amountstringyesAmount in BRL major units, e.g. '99.90'
descriptionstringPayer-visible description (max 140 chars)
expires_innumberQR lifetime in seconds (default 3600)
payerobjectPayer 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.

NameTypeReqDescription
accountstringyesAgê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.

NameTypeReqDescription
accountstringyesAgência-conta identifier of the BTG+ account
fromstringyesStart date ISO-8601 (YYYY-MM-DD)
pagenumberPage number (1-indexed)
page_sizenumberItems per page (default 50)
tostringyesEnd 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).

NameTypeReqDescription
idstringyesBoleto 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.

NameTypeReqDescription
txidstringyesPix 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.

NameTypeReqDescription
accountstringyesInvestment account identifier (BTG investor code)
reference_datestringOptional 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).

NameTypeReqDescription
asset_classstringOptional filter: RF | MM | ACOES | CAMBIAL | PREV | FIDC | FII
managerstringOptional manager name filter
min_subscription_maxstringOptional cap on minimum subscription (BRL major units)
pagenumber
page_sizenumber

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.

NameTypeReqDescription
accountstringyesInvestment account identifier (BTG investor code, distinct from checking agência-conta)
asset_classstringOptional filter: CDB | LCI | LCA | LF | LFSN | DEBENTURE | CRI | CRA
maturity_fromstringOptional maturity filter — earliest YYYY-MM-DD
maturity_tostringOptional 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.

NameTypeReqDescription
accountstringyesInvestment account identifier (BTG investor code)
amountstringRedemption amount in BRL major units. Omit for total redemption.
destination_accountstringyesBTG+ checking account to credit (agência-conta)
fund_cnpjstringyesCNPJ of the fund (digits only)
idempotency_keystringyesCounterparty-side idempotency key (UUID recommended)
redemption_typestringTOTAL | 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.

NameTypeReqDescription
accountstringyesInvestment account identifier (BTG investor code)
amountstringyesSubscription amount in BRL major units, e.g. '5000.00'
fund_cnpjstringyesCNPJ of the fund (digits only)
idempotency_keystringyesCounterparty-side idempotency key (UUID recommended)
source_accountstringyesBTG+ checking account to debit (agência-conta)

No output schema declared.

No examples provided.