io.github.codespar/mcp-btg

io.github.codespar/mcp-btg

MCP server for BTG Pactual — Pix, Boleto, Account, Investments (CDB/LCI/LCA/funds), OAuth2 + mTLS

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "mcp-btg": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-btg@0.1.0-alpha.3"
      ],
      "env": {
        "BTG_CLIENT_ID": "<your BTG_CLIENT_ID>",
        "BTG_CLIENT_SECRET": "<your BTG_CLIENT_SECRET>",
        "BTG_CERT_PATH": "<your BTG_CERT_PATH>",
        "BTG_KEY_PATH": "<your BTG_KEY_PATH>"
      }
    }
  }
}
Environment variables
  • BTG_CLIENT_IDrequiredBTG OAuth client_id issued via the Developer Portal after contract onboarding.
  • BTG_CLIENT_SECRETrequiredsecretBTG OAuth client_secret.
  • BTG_CERT_PATHrequiredAbsolute path to the mTLS client certificate (.crt or .pem). BACEN mandates mTLS for Pix v2; BTG enforces it across product families.
  • BTG_KEY_PATHrequiredsecretAbsolute path to the mTLS private key (.key or .pem).

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Developer Tools
Version
0.1.0-alpha.3
Registry
active
Published
6/22/2026
Browse all Developer Tools →

Add the badge to your site

Show visitors that io.github.codespar/mcp-btg is listed here — it’s also the link we check for a free listing.

io.github.codespar/mcp-btg — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-codespar-mcp-btg?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="io.github.codespar/mcp-btg — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![io.github.codespar/mcp-btg — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-codespar-mcp-btg?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.