Skip to main content
CO

Cobre

v0.1.0OAuth2

B2B treasury and payouts across Colombia and Mexico. Outbound money movement over instant rails (Bre-B) with balance and beneficiary management.

8 tools3 env vars๐Ÿ‡จ๐Ÿ‡ด Colombiastable on npm

What your agent can do

Cobre gives your agent 8 tools it calls directly โ€” pick the ones it needs, in Claude, Cursor, or any MCP client.

  • list_balances โ€” List the balances of every account visible to this credential (GET /v1/balances).
  • get_balance โ€” Get one balance by id (GET /v1/balances/{id}).
  • create_counterparty โ€” Register a counterparty (beneficiary) to pay out to (POST /v1/counterparties). Pass the counterparty object in Cobre's shape: geo, account details (bank code + account number for CO, CLABE for MX SPEI), and beneficiary identity.
Example call
// Your agent calls a tool directly โ€” no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("list_balances", { /* ... */ });

Install

terminal
$ npm install @codespar/mcp-cobre

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

claude_desktop_config.json
{
  "mcpServers": {
    "cobre": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-cobre"
      ],
      "env": {
        "COBRE_USER_ID": "<your_cobre_user_id>",
        "COBRE_SECRET": "<your_cobre_secret>"
      }
    }
  }
}

After restart, your agent can call any of the 8 tools below โ€” try list_balances first.

Environment variables ยท 3

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

COBRE_USER_ID
required

Cobre API credential user id

COBRE_SECRET
requiredsecret

Cobre API credential secret

COBRE_BASE_URL
optional

Override the API host. Defaults to https://api.cobre.co.

Available tools ยท 8

Each tool is independent โ€” your agent loads only what it needs to reduce context and response time.

READlist_balances
List the balances of every account visible to this credential (GET /v1/balances).
READget_balance
Get one balance by id (GET /v1/balances/{id}).
WRITEcreate_counterparty
Register a counterparty (beneficiary) to pay out to (POST /v1/counterparties). Pass the counterparty object in Cobre's shape: geo, account details (bank code + account number for CO, CLABE for MX SPEI), and beneficiary identity.
READlist_counterparties
List registered counterparties (GET /v1/counterparties).
READget_counterparty
Get one counterparty by id (GET /v1/counterparties/{id}).
WRITEcreate_money_movement
Create an outbound money movement (POST /v1/money_movements): source account/balance, destination counterparty, amount and currency. Runs over Colombia's instant rails or Mexico's SPEI depending on the destination.
READget_money_movement
Get a money movement and its status by id (GET /v1/money_movements/{id}).
READlist_money_movements
List money movements (GET /v1/money_movements).

Compatible frameworks

MCP is a protocol โ€” any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

Run `npx -y @codespar/mcp-cobre` and add the config block above to your MCP client โ€” Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
Cobre โ€” MCP server ยท 8 tools | CodeSpar