🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

comprabtc-mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comprabtc-mcp

MCP server for CompraBTC — give your project's treasury an automatic Bitcoin savings habit. Non-custodial DCA on Celo: approve USDT once, create an on-chain plan, and the CompraBTC agent buys WBTC on schedule straight back to your wallet. On-chain hard-ca

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
34
-5.56%
Maintainers
1
Weekly downloads
 
Created
Source

comprabtc-mcp

MCP server for CompraBTC — give your project's treasury an automatic Bitcoin savings habit. Non-custodial DCA on Celo: approve USDT once, create an on-chain plan, and the CompraBTC agent buys WBTC on schedule straight back to your wallet.

Why it's safe for a treasury (enforced by the verified contract, not by promises):

  • Funds never leave your wallet between purchases — the allowance is a hard budget cap.
  • The keeper can only pull the exact installment, at most once per interval.
  • Purchased WBTC lands in the same wallet. This server has no withdraw capability — worst case, Bitcoin gets bought on schedule.
  • cancel_plan stops everything unilaterally and revokes the allowance.
  • Fees ($0.005 + 1% per installment) are hard-capped on-chain and come out of each installment.

Install

claude mcp add comprabtc -- npx -y comprabtc-mcp

Or in .mcp.json / mcp.json:

{
  "mcpServers": {
    "comprabtc": {
      "command": "npx",
      "args": ["-y", "comprabtc-mcp"],
      "env": { "COMPRABTC_WALLET_PRIVATE_KEY": "0x..." }
    }
  }
}

Configuration

Env varRequiredDescription
COMPRABTC_WALLET_PRIVATE_KEYfor writesThe treasury/agent wallet that owns the plan: holds the USDT, signs the setup txs, receives the WBTC. Needs a little CELO for gas.
COMPRABTC_MAX_PER_RUN_USDTnoSafety cap per installment (default 50 — WBTC pool depth on Celo).
COMPRABTC_RPC_URLnoDefault https://forno.celo.org.

The read-only tools (get_wallet_status, get_portfolio) work for any address without a key.

Tools

ToolSigns?What it does
get_wallet_statusnoUSDT/CELO/WBTC balances, remaining authorized budget, current plan
get_portfolionoSats accumulated, cost basis, purchase history with tx hashes, live BTC price
create_plan2 txsapprove(budget) + createPlan(amount, interval) — first purchase within ~1 minute
renew_budget1 txNew allowance (REPLACES, never adds) when the budget runs out
cancel_plan1-2 txscancelPlan() + allowance revoke — clean, double-locked exit

Typical flow (agent treasury)

  • Operator: "our agent earns USDT on Celo — put 20% into Bitcoin, $2 a day".
  • get_wallet_status → confirm balance, gas and numbers with the operator.
  • create_plan { amount_per_run_usdt: 2, interval_seconds: 86400, total_budget_usdt: 60 } — one month authorized.
  • get_portfolio any time — sats stacking, cost basis, every purchase verifiable on Celoscan.
  • Budget runs out → purchases pause harmlessly → renew_budget resumes.

Full guide: skill (npx skills add csacanam/comprabtc) · LLM index: comprabtc.vercel.app/llms.txt

Keywords

mcp

FAQs

Package last updated on 12 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts