btcpay-mcp

btcpay-mcp is a skill for Claude Code, Codex from ThomsenDrake/btcpay-mcp. It costs 37 tokens per session (644 once invoked), scanned A, original, MIT.

A Model Context Protocol (MCP) server that connects AI agents to BTCPay Server, a self-hosted service for accepting Bitcoin and Lightning payments. It provides access to merchant payment and wallet-management operations.

In plain words
What is it for?
It is for managing stores, invoices, refunds, pull payments, payment requests, webhooks, Lightning nodes, and wallet balances through BTCPay Server.
Why use it?
It lets an agent work with payment data and settings through BTCPay Server instead of requiring each operation to be performed manually.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit It is for managing stores, invoices, refunds, pull payments, payment requests, webhooks, Lightning nodes, and wallet balances through BTCPay Server.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thomsendrake/btcpay-mcp/clawhub
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ThomsenDrake/btcpay-mcp --skill clawhub
Clone the repo
git clone --depth 1 https://github.com/ThomsenDrake/btcpay-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for btcpay-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/thomsendrake/btcpay-mcp/clawhub/github.svg)](https://agentmods.dev/skills/thomsendrake/btcpay-mcp/clawhub)
Your own site
<a href="https://agentmods.dev/skills/thomsendrake/btcpay-mcp/clawhub"><img src="https://agentmods.dev/badge/skills/thomsendrake/btcpay-mcp/clawhub/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for btcpay-mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/thomsendrake/btcpay-mcp/clawhub"><img src="https://agentmods.dev/badge/skills/thomsendrake/btcpay-mcp/clawhub.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 644 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.00644
Opus 5 $0.00018 $0.00322
Sonnet 5 $0.00007 $0.00129
Haiku 4.5 $0.00004 $0.00064

Measured 9d ago against content hash 5fcc198de618, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

btcpay-mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (publish.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

clawhub/SKILL.md · 91 lines

What it actually says

BTCPay Server MCP

MCP server enabling AI agents (Claude, Cursor, VS Code, Windsurf) to manage BTCPay Server merchant payments via 21 tools across 23 Greenfield API endpoints.

What It Does

Connects AI assistants to BTCPay Server — the leading self-hosted Bitcoin payment processor (7,500+ GitHub stars). AI agents can create invoices, process payments, manage stores, handle pull payments, configure webhooks, monitor Lightning nodes, and track wallet balances.

This is the only MCP server covering the BTCPay Server merchant payment lifecycle.

Installation

pip install btcpay-mcp

Set environment variables:

  • BTCPAY_BASE_URL — Your BTCPay Server Greenfield API URL
  • BTCPAY_API_KEY — API key from Store → API Keys

Run:

btcpay-mcp

Tools (21)

Category Tools
Server get_server_info
Store Management list_stores, get_store_info, get_store_payment_methods
Invoices create_invoice, get_invoice, list_invoices, refund_invoice
Pull Payments create_pull_payment, list_pull_payments, list_payouts
Payment Requests create_payment_request, get_payment_request, list_payment_requests
Webhooks create_webhook, list_webhooks
Lightning get_lightning_info, list_lightning_channels
Wallet get_wallet_balance, list_wallet_transactions
Exchange get_exchange_rate

Requirements

  • Python 3.10+
  • A running BTCPay Server instance
  • MCP-compatible AI client (Claude Desktop, Cursor, VS Code with Copilot, Windsurf)

Architecture

  • server.py — FastMCP server with 21 tool definitions
  • client.py — BTCPay Greenfield API HTTP client
  • __main__.py — CLI entry point

Testing

77 tests, 100% pass rate. Run with:

pip install btcpay-mcp[dev]
pytest tests/ -v

License

MIT

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 91 lines · 37 tokens per session scan A 5fcc198de618

Subscribe to this mod's changes

btcpay-mcp is a skill published in the GitHub repository ThomsenDrake/btcpay-mcp (0 stars, last pushed 23d ago), licensed MIT. It adds 37 tokens to every session and 644 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

starknet-mini-pay

Simple P2P payments on Starknet. Generate QR codes, payment links, invoices, and transfer ETH/STRK/USDC. Like Lightning, but native.

keep-starknet-strange/starknet-agentic · 40 tokens

sparkbtcbot

Give an AI agent a self-custodial Bitcoin wallet on the Spark L2. Covers wallet init from a BIP39 mnemonic, zero-fee Spark and BTKN/LRC20 token transfers, Lightning invoices (create and pay), Spark native invoices, L402 paywall payment, L1 deposits and cooperative withdrawals, and message signing. Make sure to use…

echennells/sparkbtcbot · 215 tokens

saturnzap

Non-custodial Lightning wallet for AI agents via sz CLI: send/receive sats, pay invoices, auto-pay HTTP 402 (L402), manage channels and liquidity. Use when: (1) paying for API access with Lightning, (2) creating or paying BOLT11 invoices, (3) checking wallet balance or channel health, (4) managing peers and channels.…

lqwdtech/SaturnZap · 98 tokens

satrank-l402

Discover and score L402 endpoints on Bitcoin Lightning before paying. Use when an agent needs to call a paid API and wants a Bayesian trust posterior + offline-verifiable Nostr assertion. Bitcoin-pure, no x402/EVM.

proofoftrust21/satrank · 52 tokens

blocknative-openapi-skill

Operate Blocknative gas intelligence APIs through UXC with a curated OpenAPI schema, API-key auth, and read-first guardrails.

holon-run/uxc · 33 tokens

coingecko-openapi-skill

Operate CoinGecko and GeckoTerminal market data APIs through UXC with a curated OpenAPI schema, API-key auth, and read-first guardrails.

holon-run/uxc · 38 tokens