MCP Btg runs on your own machine — the client starts it, so there is no endpoint to ping. 55 installs a week from npm. Last commit 27 Sep 2026.
MCP server for BTG Pactual — Pix, Boleto, Account, Investments (CDB/LCI/LCA/funds), OAuth2 + mTLS
We read the source, 5 d ago · rules 995398eba69f
What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.
этот файл ставится пользователю, но в репозитории его нет
Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.
We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add mcp-btg -e 'BTG_CLIENT_ID=<BTG_CLIENT_ID>' -e 'BTG_CLIENT_SECRET=<BTG_CLIENT_SECRET>' -e 'BTG_CERT_PATH=<BTG_CERT_PATH>' -e 'BTG_KEY_PATH=<BTG_KEY_PATH>' -- npx -y @codespar/mcp-btg
{
"mcpServers": {
"mcp-btg": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-btg"
],
"env": {
"BTG_CERT_PATH": "<BTG_CERT_PATH>",
"BTG_CLIENT_ID": "<BTG_CLIENT_ID>",
"BTG_CLIENT_SECRET": "<BTG_CLIENT_SECRET>",
"BTG_KEY_PATH": "<BTG_KEY_PATH>"
}
}
}
}
[mcp_servers.mcp-btg]
command = "npx"
args = ["-y", "@codespar/mcp-btg"]
env = { BTG_CLIENT_ID = "<BTG_CLIENT_ID>", BTG_CLIENT_SECRET = "<BTG_CLIENT_SECRET>", BTG_CERT_PATH = "<BTG_CERT_PATH>", BTG_KEY_PATH = "<BTG_KEY_PATH>" }
{
"mcpServers": {
"mcp-btg": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-btg"
],
"env": {
"BTG_CERT_PATH": "<BTG_CERT_PATH>",
"BTG_CLIENT_ID": "<BTG_CLIENT_ID>",
"BTG_CLIENT_SECRET": "<BTG_CLIENT_SECRET>",
"BTG_KEY_PATH": "<BTG_KEY_PATH>"
}
}
}
}
{
"servers": {
"mcp-btg": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@codespar/mcp-btg"
],
"env": {
"BTG_CERT_PATH": "<BTG_CERT_PATH>",
"BTG_CLIENT_ID": "<BTG_CLIENT_ID>",
"BTG_CLIENT_SECRET": "<BTG_CLIENT_SECRET>",
"BTG_KEY_PATH": "<BTG_KEY_PATH>"
}
}
}
}
Put your own values in place of
<BTG_CLIENT_ID> (BTG OAuth client_id issued via the Developer Portal after contract onboarding), <BTG_CLIENT_SECRET> (BTG OAuth client_secret), <BTG_CERT_PATH> (Absolute path to the mTLS client certificate (.crt or .pem). BACEN mandates mTLS for Pix v2; BTG enforces it across product families), <BTG_KEY_PATH> (Absolute path to the mTLS private key (.key or .pem)).
The author’s registry entry marks them as required.
Optional settings from the registry entry, left out of the block above:
BTG_ENV (Environment: 'sandbox' or 'production'. Defaults to 'sandbox').
MCP server for Sicoob — Pix (cob/cobv/DICT), Cobrança (boleto), SPB (OAuth2 + mTLS)
MCP server for Bradesco — Pix, Cobrança (boleto), Arrecadação, Extrato (OAuth2 + mTLS)
MCP server for Caixa Econômica Federal — Pix, Cobrança (SICOB boleto), Extrato (OAuth2 + mTLS)
MCP server for Itaú Unibanco — Pix, Cobrança (boleto), Arrecadação, Extrato (OAuth2 + mTLS)
MCP server for Banco do Brasil — Pix, Cobrança (boleto), Conta-Corrente, Arrecadação (OAuth2 + mTLS)
MCP server for Santander Brasil — Pix, Cobrança (boleto), Arrecadação, Extrato (OAuth2 + mTLS)
MCP server for Open Finance Brasil — accounts, transactions, consents, credit, loans, investments
MCP server for dLocal — LatAm cross-border payments, payouts, refunds across 15+ countries
Answers built from our own checks of this server.