
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 分