PipRail

io.github.piprailPublished by GitHub account piprailv0.10.0Updated Oct 24, 2026

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

VerifiedSTDIODesktop onlyFinanceDeveloper Tools

Overview

AI-generated overview

A local MCP wallet that lets an AI agent pay x402 HTTP 402 URLs with its own crypto wallet, capped by a spend policy the model cannot exceed.

What you can do
Discover x402-payable URLs and quote or plan a payment before committing funds, then pay a request within the configured budget and verify the receipt afterward; check remaining budget and read a usage guide; register a listing to an external index; in sovereign mode, also swap, sell, collect earnings and inspect the wallet.
When to use it
Use it when an agent needs to pay for metered or paywalled HTTP resources on its own, with hard local caps on per-payment, lifetime and rate spend, and you are willing to give the server a funded wallet key.
Requirements
Runs locally over stdio via npx (Node.js). A wallet private key in PIPRAIL_PRIVATE_KEY is optional: without it the server runs read-only. Chain selection via PIPRAIL_CHAIN or PIPRAIL_CHAINS, with per-chain keys for multi-chain use; spend caps and logs are configured through environment variables. Network access to the chosen chains is needed.
Before you install
PIPRAIL_PRIVATE_KEY is a wallet private key or seed that stays on your machine but controls real funds; never commit it. The agent can move money: only piprail_pay_request pays by default, and sovereign mode adds swaps, which the payment caps do not govern and which require PIPRAIL_MAX_PER_SWAP. piprail_register writes a listing to an external index. Budgets persist across restarts only if PIPRAIL_SPEND_LOG is set.

Installation

In SourceWeft

  1. Open PipRail in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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.

Source: mcp/README.md at commit a8d7c35

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.10.0LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts