Non-custodial Bitcoin DCA for agent treasuries: approve USDT once, stack WBTC on Celo forever.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Non-custodial Bitcoin DCA agent on Celo. Define your plan once β $X every hour/day in BTC β and an on-chain agent buys Bitcoin for you, straight into your own wallet. Funds never leave your wallet between purchases.
GET / service descriptor Β· GET /api/stats public metrics)| Contract | Address |
|---|---|
| DCAExecutor (verified) | 0xd03ffeBBCaaA8aA21053eEB0EeAde39EFC504189 |
| USDT (token in) | 0x48065fbBE25f71C9282ddf5e1cD6D6A887483D5e |
| WBTC β native bridge (token out) | 0x8aC2901Dd8A1F17a1A4768A6bA4C3751e3995B2D |
| Uniswap V3 SwapRouter02 | 0x5615CDAb10dc425a742d643d949a7F474C01abc4 |
Swaps route through the USDT/WBTC 0.3% Uniswap V3 pool. Protocol fee: 1% + $0.005 flat per execution, with on-chain hard caps (β€1%, β€$0.05 flat) and a revert if the fee would ever eat the installment.
Agent identity: ERC-8004 #9665 on Celo mainnet (8004scan). Every transaction carries ERC-8021 attribution tags.
DCAExecutor (cap = total plan budget) and creates a plan with on-chain limits (amount per run, minimum interval). Cancelling = one click (cancelPlan or approve(0)).PlanCreated events, and each cycle pays the execution API with an x402 micropayment before calling execute() β so every purchase is also an agent-to-agent payment.amountPerRun or execute before minInterval elapses.| Directory | What it is |
|---|---|
contracts/ | DCAExecutor.sol (Foundry) β 21 tests incl. mainnet fork tests, deploy script |
backend/ | Express API + keeper loop (viem) + x402 middleware + Supabase + Telegram bot |
frontend/ | Next.js PWA (wagmi/viem) β MiniPay auto-connect, plan creation, BTC portfolio |
docs/ | Unit economics, copy review |
PLAN.md | Full architecture plan and piece-by-piece feasibility verification |
Frontend (needs NEXT_PUBLIC_EXECUTOR_ADDRESS, NEXT_PUBLIC_API_URL, NEXT_PUBLIC_ATTRIBUTION_CODE, NEXT_PUBLIC_TELEGRAM_BOT in frontend/.env.local):
Backend + keeper (Node 22; see backend/src/config.ts for required env vars β executor address, keeper key, Supabase credentials, x402 API key; DB schema in backend/supabase/schema.sql + migrations in the same folder):
Locally the keeper runs as an in-process loop (setInterval). Deployed on Vercel the whole Express app is a single function and the keeper is driven by Vercel Cron hitting GET /api/cron/keeper (guarded by CRON_SECRET, schedule in backend/vercel.json) β serverless instances are frozen and reused, so an interval there would fire duplicated, off-schedule ticks. Anything the keeper needs to remember between ticks (alert cooldowns, digest cadence, last scanned block) lives in agent_keeper_state, not in memory.
Contracts:
An agent with its own funded wallet can set up a Bitcoin savings plan in two transactions β and so can an agent assisting a human (the web app handles the signing):
claude mcp add comprabtc -- npx -y comprabtc-mcp β tools to check status, create/renew/cancel the plan and track the portfolio, signing with the treasury's own wallet. See mcp/README.md.npx skills add csacanam/comprabtc β covers plan creation (viem), monitoring, budget math, cancelling, and the permissionless x402 execution trigger.GET https://comprabtc-api.vercel.app/ Β· LLM index: comprabtc.vercel.app/llms.txtOperator wallets (declared):
| Role | Address |
|---|---|
| Keeper (executes plans) | 0x2F6a8283546d28506B312013F77aA38e60AF99B0 |
| Treasury / payTo (receives fees) | 0x6Bd5c303b2ed7E264C1Ce9D3592457292a1F1c43 |
On-chain volume is real user capital. Each plan starts with a user's own approve; the keeper pulls one installment per run via transferFrom and the purchased WBTC goes straight to the user's wallet, where it stays. No custody, no round-trips β the volume is actual BTC purchases with real economic intent.
x402 is internal metering with an open door. The keeper pays x402 on every run, so each x402 payment maps to one real executed purchase β not standalone dust. /api/execute is permissionless and auto-registers plans from on-chain events, so any external agent or human can invoke it and settle their own x402; it is not a closed loop.
execute(), every tx tagged with ERC-8021 attribution./api/execute per run via the Celo x402 facilitator. The endpoint is permissionless β any agent can pay to trigger an execution.MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/comprabtc)<a href="https://allmcps.com/mcp/comprabtc"><img src="https://allmcps.com/api/badge/comprabtc?style=directory" alt="Comprabtc on AllMCPs" /></a>