Self-custodial Bitcoin payments โ for websites and AI agents
Open-source infrastructure. Your keys, your node, your coins. No third party ever touches your funds.
FunkPay works both as an embeddable checkout widget for any website, and as an autonomous payment tool for AI agents.
Add one <script> tag to your website. FunkPay renders a checkout UI, monitors the Bitcoin address, and fires a webhook to your server when payment is confirmed.
Works on any site โ static HTML, React, Shopify, WordPress. No plugin required. Shadow DOM isolation keeps styles clean.
<div id="funkpay"
data-server="https://your-server.com/pay"
data-amount="25.00"
data-currency="USD"></div>
<script src="https://btcfunk.com/pay/funkpay.js"></script>
btcfunkpay server โ
FunkPayAI exposes a Model Context Protocol server that Claude Code and other MCP-compatible agents use to pay in Bitcoin autonomously โ no human intervention required per transaction.
Configure approval rules: always ask, never ask, or ask above a threshold. The agent operates within your limits.
{
"mcpServers": {
"funkpayai": {
"command": "node",
"args": ["~/.funkpay/mcp-stdio.mjs"]
}
}
}
FunkPayAI wallet โ
FunkPay connects two sides: a payer wallet (FunkPayAI) and a merchant server (btcfunkpay). Both run on self-hosted infrastructure โ no shared service in the middle.
The merchant server generates a Bitcoin address and a BIP-21 payment URI. The widget or AI agent receives it.
FunkPayAI signs the transaction with the local keys and broadcasts it via the local Bitcoin Core node. Keys never leave the machine.
The merchant server monitors the Bitcoin network. It fires your webhook instantly on mempool detection, and again on each confirmation milestone.
Your backend receives the webhook and completes the order โ ship goods, unlock content, or trigger any server-side action.
Electron desktop app for macOS, Windows, Linux. Runs a local Bitcoin Core node (pruned, ~10 GB). Exposes a stdio MCP proxy and a REST API on localhost. Approval policy configurable: always ask, threshold, never ask.
github โPython/FastAPI server you self-host. Generates addresses, monitors the mempool and confirmed blocks, fires webhooks on payment events. Includes funkpay.js โ a drop-in checkout widget with multi-currency fiat display and QR code.
FunkPayAI exposes 10 MCP tools: get_balance, send_payment, create_invoice, get_invoice_status, wait_for_payment, and more. Works with Claude Code, Cursor, and any MCP-compatible client.
Both components are open source and MIT-licensed. Run your own stack or try the testnet demo first.
Download FunkPayAI, install Bitcoin Core, add the MCP config to Claude. Your agent can start paying in minutes.
Download FunkPayAIDeploy btcfunkpay on your server, add one script tag to your site, configure your webhook endpoint. Done.
btcfunkpay serverNo real money. Test the full flow โ widget checkout, AI agent purchase, on-chain confirmation โ on Bitcoin testnet.
Testnet demo โ