PipRail

io.github.piprail由 GitHub 帳號 piprail 發布v0.10.0更新於 Oct 24, 2026

Budget-bound x402 payment wallet for AI agents — pays HTTP 402 URLs, capped locally. No backend.

已驗證STDIO僅桌面金融開發者工具

概覽

AI 產生的概覽

一個本機 MCP 錢包,讓 AI 代理用自己的加密錢包支付 x402 的 HTTP 402 連結,並受模型無法突破的支出策略限制。

可以做什麼
探索可付費的 x402 連結,並在付款前報價或規劃支付;在預算內發起付款並驗證收據;查看剩餘預算與使用指南;向外部索引登錄項目;在 sovereign 模式下還可兌換、販售、收取收益並檢視錢包。
適用情境
當代理需要自行付費存取按量計費或付費牆後的 HTTP 資源,且你希望以本機硬性上限控管單筆、累計與頻率支出,並願意向此伺服器提供有資金的私鑰時使用。
執行需求
透過 npx 以 stdio 在本機執行(需要 Node.js)。PIPRAIL_PRIVATE_KEY 中的錢包私鑰為選用,未設定則以唯讀模式執行。以 PIPRAIL_CHAIN 或 PIPRAIL_CHAINS 選擇鏈,多鏈時需為每條鏈提供金鑰;支出上限與日誌透過環境變數設定。需要存取所選鏈的網路。
安裝前請注意
PIPRAIL_PRIVATE_KEY 是錢包私鑰或助記詞,雖留在本機但控制真實資金,切勿提交到程式碼庫。代理可以動用資金:預設只有 piprail_pay_request 會付款,sovereign 模式還會加入兌換,而支付上限並不約束兌換,需設定 PIPRAIL_MAX_PER_SWAP。piprail_register 會向外部索引寫入項目。只有設定 PIPRAIL_SPEND_LOG 後預算才能在重新啟動後保留。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 PipRail,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

@piprail/mcp

Hand any AI agent a budget-bound payment wallet. An MCP server wrapping @piprail/sdk so any MCP client — Claude Desktop, Cursor, Claude Code, Windsurf, VS Code, Cline, OpenClaw, Hermes — can pay x402 URLs on its own, capped by a spend policy the model cannot exceed. Runs locally with your wallet and your limits — no backend, no custody, no facilitator.

bash
npx -y @piprail/mcp        # speaks MCP over stdio

📖 Full documentation → docs.piprail.com/mcp

The docs are the single source of truth — every client's config, the complete env-var reference, the modes, per-chain setup, and the tools reference. This README is just the front door.


Add it to your client

Two things: your wallet private key and (optionally) a budget. The defaults are deliberately small and safe (0.10 per payment, 10.00 lifetime per token, USDC on Base).

jsonc
{ "mcpServers": { "piprail": {  "command": "npx", "args": ["-y", "@piprail/mcp"],  "env": { "PIPRAIL_PRIVATE_KEY": "0xYOUR_KEY", "PIPRAIL_CHAIN": "base", "PIPRAIL_MAX_AMOUNT": "0.10" }} } }

Restart the client and the PipRail tools appear (VS Code uses servers, not mcpServers). Never commit your key — keep it in the client's env block. → Per-client setup · Configuration

8 tools — piprail_discover · piprail_quote_payment · piprail_plan_payment · piprail_pay_request · piprail_register · piprail_budget · piprail_guide · piprail_verify_receipt. Only piprail_pay_request moves money; piprail_register writes a listing to an external index; the other six are read-only. → Tools reference

14 tools in sovereign mode. PIPRAIL_MODE=sovereign appends the swap tools, the seller tools (piprail_sell · piprail_collect · piprail_earnings) and piprail_wallet (what it holds, and the address it gets paid at), so the agent owns both halves of its wallet: it can be paid, not only pay. It appends rather than replaces, so the default above is untouched. → Modes

No key? It still runs. Without PIPRAIL_PRIVATE_KEY the server boots in read-only mode — discover, quote, register, budget, and guide all work; only piprail_pay_request (and piprail_plan_payment) ask for a wallet. Add a key when you're ready to actually pay.

Pay across chains? List several chains and give each its own key — the tools then pay whichever chain a 402 asks for (one server, one budget):

jsonc
"env": {  "PIPRAIL_CHAINS": "base,polygon,solana",  "PIPRAIL_BASE_KEY": "0x…", "PIPRAIL_POLYGON_KEY": "0x…", "PIPRAIL_SOLANA_KEY": "<base58-secret>",  "PIPRAIL_MAX_AMOUNT": "1.00"}

One EVM key works on every EVM chain; non-EVM families each need their own key (and that family's peer libs). A chain with no key is read-only. → Configuration

Listed in the official MCP registry as io.github.piprail/mcp.


What it will not do by default

There is no swap tool in the default set, and that is deliberate: the spend policy does not govern swaps. Every budget cap here governs paying a merchant, while a swap moves your own funds between denominations, so an agent able to swap could drain a wallet through fees and slippage without tripping a single budget check.

That is a reason to bound the capability, not to pretend it does not exist. PIPRAIL_MODE=sovereign unlocks it for an operator who says the agent owns this wallet, and requires PIPRAIL_MAX_PER_SWAP before the server will start, because the payment caps cannot bound a swap. A model can never set its own mode.

Sovereign also unlocks selling, which needs no ceiling: it takes money rather than spending it, and the receiving side holds no private key at all.

Documentation

Overview · Getting startedWhat it is · first run
Client setup · ConfigurationPer-client config · every env var
Tools · ModesThe 8 default tools (14 in sovereign) · headless vs supervised
Security · ChainsWhy it's safe · per-chain setup
Use as a library · FAQEmbed it · common questions

Spread the word

Free, open-source, self-custodial — no backend to sell you. If PipRail gave your agent a wallet it can trust, help others find it:

⭐ Star on GitHub  ·  𝕏 Follow @piprailhq  ·  🌐 piprail.com  ·  📖 docs.piprail.com


Docs · PipRail · @piprail/sdk · x402 · Model Context Protocol

MIT · no backend, no fee, ever.

來源:mcp/README.md,提交 a8d7c35

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.10.0最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分