---
title: "opencode Bank Data MCP: One Config Block | BankBridge"
description: "Query your real transactions from opencode. Paste one block into opencode.json, then ask what you spent on hosting in June. Read-only, 2-minute setup."
url: "https://bankbridge.money/docs/opencode"
---
[← All integrations](https://bankbridge.money/docs)

opencode

# Add to opencode.json.

Paste this block into your opencode config. Global or per-project and restart.

Step 01

## Open ~/.config/opencode/opencode.json and add the mcp block.

(Or create a project-local `opencode.json`. Project overrides global.)

~/.config/opencode/opencode.json

```
{
  "mcp": {
    "bankbridge": {
      "type": "remote",
      "url": "https://bankbridge.money/api/mcp",
      "enabled": true,
      "oauth": false,
      "headers": {
        "Authorization": "Bearer bbk_your_api_key_here"
      }
    }
  }
}
```

Restart opencode after editing the config.

`"oauth": false`tells opencode not to attempt a browser OAuth flow on 401. We’re using a static bearer.

Step 02

## Verify it works.

Start opencode, run `opencode mcp list` to confirm `bankbridge` is listed. Then ask:

try this

```
how much did I spend this week?
```

Troubleshooting

Client connects but shows 0 tools.

Usually the client is caching an old config, or you're on a mode that doesn't expose tools (Ask/Edit vs Agent, for example).

**Fix:** Fully quit + relaunch the host app. In VS Code Copilot, switch to Agent mode.

401 Unauthorized on every call.

The API key is missing, typo'd, or got revoked. Check the Authorization header starts with \`Bearer \` (note the space) and ends in a key you still own.

**Fix:** Paste a fresh key from [Settings](https://bankbridge.money/dashboard/settings).

Tools return a NO\_CONNECTIONS warning.

You haven't linked a bank yet.

**Fix:** Visit [Connect a bank](https://bankbridge.money/dashboard/connect) . The bank-connect flow opens automatically, ~30 seconds.

Problems? Email [hello@bankbridge.money](mailto:hello@bankbridge.money).
