Skip to content
VS Code

mcp btg for VS Code

io.github.codespar/mcp-btg

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

client:VS Code transport:stdio runtime:npm

Install mcp btg in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "btg-client-id",
      "description": "BTG_CLIENT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "btg-client-secret",
      "description": "BTG_CLIENT_SECRET",
      "password": true
    },
    {
      "type": "promptString",
      "id": "btg-cert-path",
      "description": "BTG_CERT_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "btg-key-path",
      "description": "BTG_KEY_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "btg-env",
      "description": "BTG_ENV",
      "password": true
    }
  ],
  "servers": {
    "mcp-btg": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-btg"
      ],
      "env": {
        "BTG_CLIENT_ID": "${input:btg-client-id}",
        "BTG_CLIENT_SECRET": "${input:btg-client-secret}",
        "BTG_CERT_PATH": "${input:btg-cert-path}",
        "BTG_KEY_PATH": "${input:btg-key-path}",
        "BTG_ENV": "${input:btg-env}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mcp btg in other clients