trackmcp
Back to directory

x402 (HTTP 402 Payment Required) SDK + MCP server: let any API charge for itself and any AI agent pay for itself, USDC & stablecoins across EVM, Solana & 8 more chain families, in a couple of lines. Backendless, no fee, self-custodial, paid straight to your wallet. TypeScript, MIT.

8 stars TypeScriptOthers Updated Sep 2, 2026
agent-paymentsai-agentscrypto-paymentsevmpaymentssdksolanastablecointypescriptusdcweb3x402micropaymentsusdtagentic-commercemcpmodel-context-protocolapi-monetizationblockchainpay-per-call

Documentation


PipRail implements the open x402 "402 Payment Required" standard with no backend, no database, no account, no API key, and no fee. Payments settle straight into your wallet, verified locally against your own RPC β€” across every major EVM chain plus Solana, TON, Tron, NEAR, Sui, Aptos, Algorand, Stellar & the XRP Ledger. Self-custodial throughout.

How a payment moves

πŸ“Š The pitch deck

The whole thesis in one read: why agent payments are happening now, why chain & token fragmentation is the enemy, and how a single `chain:` parameter turns PipRail into the universal adapter. The payment path is 0% forever β€” the moat *and* the distribution; value accrues to the layer around the free rail, never the rail itself.

What's inside β€” the 16-slide arc

#Slide#Slide
1Hero β€” the universal payment rail for the agent economy9The MCP β€” give your agent a budget-bound wallet
2Why now β€” money is moving on-chain10Open Β· dual-rail Β· gasless
3The new buyer β€” autonomous agents11MPP vs PipRail β€” count the middlemen
4The standard β€” x402, "402 Payment Required"12Discovery + integrations
5The problem β€” chain & token fragmentation13Why PipRail wins β€” the moat
6The reveal β€” the universal adapter14Traction
7How it works β€” 402 β†’ pay β†’ verify β†’ 20015Business model β€” open core, 0% rail
8Two sides, one SDK β€” accept *and* pay16The ask

Source `.pptx` (fully editable, brand fonts embedded) lives in `.claude/skills/branding/design/deck/`. The root `PipRail-deck.pdf` is regenerated from it β€” don't hand-edit the PDF.

> ### πŸ“– Full documentation β†’ **docs.piprail.com**

> The single, searchable source of truth β€” every function, option, chain, and example. This README is just the front door.

What's here

**`@piprail/sdk`**The TypeScript SDK β€” accept & make x402 payments. The product.
**`@piprail/mcp`**An MCP server giving any AI agent a budget-bound wallet (`io.github.piprail/mcp`).
**`@piprail/create`**`npm create @piprail` β€” scaffolds a runnable, mainnet-by-default x402 merchant in one command. Paste a public address; no key, no backend.
**`integrations/`**First-party agent-framework integrations β€” OpenClaw, Hermes, elizaOS (`@piprail/elizaos-plugin`), n8n (`@piprail/n8n-nodes-piprail`) & Mastra. Each wraps `@piprail/sdk` or `@piprail/mcp`; nothing new to build.
**`site/` Β· `docs/` Β· `examples/`**piprail.com Β· the docs.piprail.com source Β· runnable demos.

Quick taste

bash
npm install @piprail/sdk viem
ts
import { requirePayment } from '@piprail/sdk'

app.get('/report',
  requirePayment({ chain: 'base', token: 'USDC', amount: '0.05', payTo: '0xYourWallet…' }),
  (_req, res) => res.json({ report: 'TOP SECRET' }),
)

That route now costs 0.05 USDC on Base, paid straight to your wallet. Point an agent at it and it pays itself β€” name any chain with a single `chain:` parameter. The full quickstart, every chain, the MCP server, spend controls, and the error model are in the **docs**.

Spread the word

PipRail is free, open-source, and has no backend to sell you β€” so word of mouth is how it grows. If it saved you from building a payments backend, the best way to give back is to help other developers (and their agents) find it:

License & trademark

Code: MIT β€” use it, fork it, ship it, commercially or otherwise.

Name & brand: PipRailβ„’, the logo, and the `@piprail` npm scope are trademarks of the PipRail project β€” MIT covers the *code*, not the *name*. Build on it freely; just don't call a fork "PipRail" or imply it's official. See TRADEMARK.md.

Frequently asked questions

What is piprail?

piprail is x402 (HTTP 402 Payment Required) SDK + MCP server: let any API charge for itself and any AI agent pay for itself, USDC & stablecoins across EVM, Solana & 8 more chain families, in a couple of lines. Backendless, no fee, self-custodial, paid straight to your wallet. TypeScript, MIT.

How do I install piprail?

Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

Is piprail open source?

Yes β€” it is hosted on GitHub at https://github.com/piprail/piprail and has 8 stars.

Related MCP tools

Run your own MCP server? See who uses it and what to fix.

Measure it with TrackMCP