
BTCPay Server MCP
xyz.draket由 draket.xyz 发布v0.3.0更新于 Oct 24, 2026
21 tools for AI agents to manage BTCPay Server: invoices, payments, stores, webhooks, Lightning
概览
让助手管理 BTCPay Server 商户账户:创建发票、跟踪付款,并处理商店、Webhook、闪电网络和钱包数据。
- 可以做什么
- 通过 BTCPay Server Greenfield REST API 提供 21 个工具。读取类工具涵盖服务器信息、商店、支付方式、发票、拉取付款、打款、付款请求、Webhook、闪电节点信息与通道、钱包余额与交易以及汇率。写入类工具可创建发票、拉取付款、付款请求和 Webhook,并可对发票退款。它以 stdio 方式在本地运行,面向商户收款处理,而非区块链数据或节点 RPC。
- 适用场景
- 当助手需要操作 BTCPay Server 商户账户时使用:开具发票、查询付款状态、列出商店与支付方式、设置付款链接或 Webhook,或查看闪电网络与链上钱包数据。它是对区块链数据类服务器的补充,而非替代。
- 运行要求
- 需要本地 Python 3.10+ 运行环境,可通过 pip 安装或用 uvx 运行。需要可访问的 BTCPay Server 实例,以及权限合适的 API 密钥,通过环境变量 BTCPAY_BASE_URL、BTCPAY_API_KEY 和 BTCPAY_STORE_ID 提供。需要能访问该服务器的网络。未设置基础地址时默认指向公开的测试网演示实例。
安装
在 SourceWeft 中
- 打开 控制台中的 BTCPay Server MCP,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
btcpay-mcp
[PyPI] [License: MIT] [Python 3.10+]
MCP server for BTCPay Server — let AI agents create invoices, manage stores, track payments, and check exchange rates through the Greenfield REST API.
21 tools · MIT licensed · Zero hardcoded credentials
The only MCP server for BTCPay Server. While other Bitcoin MCP servers cover blockchain data and node RPC,
btcpay-mcpis the first to expose full merchant payment processing — invoice creation, store management, pull payments, payment requests, Lightning operations, wallet management, webhooks, and exchange rates — to AI agents.
Quick Start
Claude Desktop
Add to your claude_desktop_config.json:
Claude Code
Cursor / VS Code
Add to .cursor/mcp.json or .vscode/mcp.json:
Manual / pip install
Or with pip install from source:
Tools
Top Use Cases
Ask your AI agent:
Configuration
Creating a BTCPay API Key
- Navigate to your BTCPay Server instance
- Go to Account → API Keys or Store Settings → API Keys
- Create a new API key with appropriate permissions
- Note the API key and your store ID
API Endpoints
All from the BTCPay Server Greenfield API v1:
GET /api/v1/server/info— server version and infoGET /api/v1/stores— list storesGET /api/v1/stores/{storeId}— store configurationGET /api/v1/stores/{storeId}/payment-methods— enabled payment methodsPOST /api/v1/stores/{storeId}/invoices— create invoiceGET /api/v1/stores/{storeId}/invoices— list invoicesGET /api/v1/stores/{storeId}/invoices/{invoiceId}— invoice detailsGET /api/v1/stores/{storeId}/invoices/{invoiceId}/payment-methods— payment addressesPOST /api/v1/stores/{storeId}/invoices/{invoiceId}/refund— refund invoiceGET /api/v1/stores/{storeId}/pull-payments— list pull paymentsPOST /api/v1/stores/{storeId}/pull-payments— create pull paymentGET /api/v1/stores/{storeId}/payouts— list payoutsGET /api/v1/stores/{storeId}/payment-requests— list payment requestsPOST /api/v1/stores/{storeId}/payment-requests— create payment requestGET /api/v1/stores/{storeId}/payment-requests/{id}— payment request detailsGET /api/v1/stores/{storeId}/webhooks— list webhooksPOST /api/v1/stores/{storeId}/webhooks— create webhookGET /api/v1/stores/{storeId}/lightning/{cryptoCode}/info— LN node infoGET /api/v1/stores/{storeId}/lightning/{cryptoCode}/balance— LN balanceGET /api/v1/stores/{storeId}/lightning/{cryptoCode}/channels— LN channelsGET /api/v1/stores/{storeId}/payment-methods/{pmId}/wallet— wallet balanceGET /api/v1/stores/{storeId}/payment-methods/{pmId}/wallet/transactions— wallet transactionsGET /api/v1/rates— exchange rates
How This Differs from Other Bitcoin MCP Servers
btcpay-mcp is complementary to blockchain data servers like bitcoin-mcp. Use both for complete Bitcoin coverage: blockchain data from bitcoin-mcp, payment processing from btcpay-mcp.
Run Tests
All 77 tests pass with mock-based testing (no BTCPay instance needed).
Technical Details
- Python 3.10+ compatible
- FastMCP SDK (official Anthropic MCP Python SDK)
- Authentication: Bearer token via
BTCPAY_API_KEYenvironment variable - Transport: stdio (for Claude Desktop, Cursor, VS Code, Windsurf, etc.)
- Default testnet: Points to
https://testnet.demo.btcpayserver.orgby default
License
MIT
来源:README.md,提交 a87de3b
工具
0版本历史
1- v0.3.0最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分