Skip to main content
Glama
@buxapi/mcp
by buxapi-dev

@buxapi/mcp

MCP server for BuxAPI. Gives an AI coding assistant real tools against your wallet, so instead of guessing at the API it can read your actual balances, create a test invoice, and check why your webhook signature will not verify.

Install

Nothing to install. Point your assistant at it with npx.

Claude Code

claude mcp add buxapi --env BUXAPI_SECRET_KEY=bux_sec_... -- npx -y @buxapi/mcp

Claude Desktop, in claude_desktop_config.json:

{
  "mcpServers": {
    "buxapi": {
      "command": "npx",
      "args": ["-y", "@buxapi/mcp"],
      "env": { "BUXAPI_SECRET_KEY": "bux_sec_..." }
    }
  }
}

Cursor, in .cursor/mcp.json, and VS Code, in .vscode/mcp.json: the same mcpServers block.

Get a key by creating a wallet at buxapi.com/create. There is nothing to sign up for.

Related MCP server: AgentBTC MCP Server

Tools

Tool

What it does

get_wallet

Public key, settlement mode, balances, activated pairs, transparency page state

list_chains

Live USD spot rates per symbol, no key needed

get_network_fees

Live per-pair sweep fee estimates in USD cents, no key needed

create_invoice

Create an invoice, get its checkout URL

get_invoice

Status, quotes, what has been received

list_invoices

Recent invoices, filterable by status

cancel_invoice

Cancel an unpaid invoice

create_address

Allocate a permanent deposit address

list_addresses

Addresses allocated to this wallet

list_deposits

Deposits with credited amounts and fees, filterable by status, chain or address

get_deposit

One deposit by id

list_transactions

The ledger. Every credit and debit with its reason

list_sends

Outgoing sends and their on-chain status

get_send

One send by id

get_send_fee

Quote a send's network fee, the balance, and what "max" would resolve to

update_wallet

Set the webhook URL, the label or the activated pairs

test_webhook

Have BuxAPI deliver a signed test event to your endpoint, or a sample deposit or send under a test. name

verify_webhook_signature

Check a signature locally, and say why it failed

get_transparency

Read any wallet's published balances and USD total, no key needed

set_transparency

Publish or unpublish your wallet's transparency page

send

Move funds on-chain. Disabled by default, see below

Transparency

A wallet can publish what it holds. set_transparency { "enabled": true } turns the page on; from then on anyone with the link sees the balances BuxAPI holds for that wallet, each with a USD value and a total, at the transparency_url that get_wallet reports (/transparency/{public_key} on the site). It is off by default and the public key alone does not open it. get_transparency { "public_key": "bux_pub_..." } reads any published page without a key, the same way a visitor would; a 404 means the key is unknown, unpublished or disabled, and the endpoint deliberately does not say which. Neither tool moves money.

Sends are off by default

send is irreversible and moves real money. It is not exposed unless you start the server with --allow-sends:

{
  "mcpServers": {
    "buxapi": {
      "command": "npx",
      "args": ["-y", "@buxapi/mcp", "--allow-sends"],
      "env": { "BUXAPI_SECRET_KEY": "bux_sec_..." }
    }
  }
}

An assistant that misreads a decimal place should not be able to empty a wallet, and the failure mode of a too-permissive default here is not recoverable. Everything else is a read, creates an invoice (which costs nothing and expires on its own), or flips the transparency page, which publishes balances and moves nothing.

send takes an amount in the token smallest unit, or the literal "max", which resolves to the full balance minus the network fee at debit time. get_send_fee quotes the fee and what "max" would resolve to without moving anything, so it stays available whether or not sends are enabled.

The one that saves the most time

verify_webhook_signature runs locally and makes no network call. Paste the raw body and the X-Buxapi-Signature header and it tells you whether the signature is valid, and when it is not, which of the usual causes it is:

  • the raw body was parsed and re-serialised somewhere, changing the bytes

  • the wrong webhook secret

  • a valid signature outside the replay window

"My webhook signature does not verify" is nearly always the first one, and this turns a long afternoon into one tool call.

Configuration

Variable

Default

Meaning

BUXAPI_SECRET_KEY

none

Your bux_sec_... key. Required by every tool that reads or changes your wallet. list_chains, get_network_fees and get_transparency are public reads and work without it.

BUXAPI_BASE_URL

https://buxapi.com

Point at a staging instance. The API is served from the site origin, so there is no api. host.

A note on the key

The key you give this server can read everything in the wallet and, with --allow-sends, move its funds. Use a wallet you are willing to develop against. Creating a second wallet costs one API call and nothing else, which is the point of an API with no accounts.

Development

node test.js

Spawns the server and drives the real stdio transport: the handshake, tool listing, schema validity, the sends guard, the keyless path of the public reads, and the signature tool against known-good and known-bad values. No key and no network needed.

About BuxAPI

BuxAPI is a crypto payment gateway and API. A store or an app accepts Bitcoin, Litecoin, and USDC, USDT and DAI on Base, Ethereum, Polygon, BNB Chain and Solana, through invoices with a hosted checkout or through its own deposit addresses, and sends funds on-chain from the same wallet. A wallet is a keypair made with one API call, so there is nothing to sign up for. The fee is 0.5% per payment.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers