Back to MCP Servers
🧩

PipRail MCP Server

API key required

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

To add PipRail to Claude, run the install command below or copy the ready-made config for Claude Code, Claude Desktop, Cursor and VS Code further down. Restart your client after adding it and its tools show up in your next conversation. It needs 13 environment variables, listed below.

AIDevToolsFinance

Install

npx -y @piprail/mcp@0.10.0

Environment variables

PIPRAIL_PRIVATE_KEYSet in your MCP config
PIPRAIL_CHAINSet in your MCP config
PIPRAIL_CHAINSSet in your MCP config
PIPRAIL_MAX_AMOUNTSet in your MCP config
PIPRAIL_MAX_TOTALSet in your MCP config
PIPRAIL_MAX_TOTAL_DENOMSet in your MCP config
PIPRAIL_MAX_PAYMENTSSet in your MCP config
PIPRAIL_MAX_PAYMENTS_PER_WINDOWSet in your MCP config
PIPRAIL_WARN_AT_FRACTIONSet in your MCP config
PIPRAIL_SPEND_LOGSet in your MCP config
PIPRAIL_EVENT_LOGSet in your MCP config
PIPRAIL_TOKENSSet in your MCP config
PIPRAIL_SCHEMESSet in your MCP config

Install with your client

Terminal
claude mcp add piprail --env PIPRAIL_PRIVATE_KEY=<YOUR_PIPRAIL_PRIVATE_KEY> --env PIPRAIL_CHAIN=<YOUR_PIPRAIL_CHAIN> --env PIPRAIL_CHAINS=<YOUR_PIPRAIL_CHAINS> --env PIPRAIL_MAX_AMOUNT=<YOUR_PIPRAIL_MAX_AMOUNT> --env PIPRAIL_MAX_TOTAL=<YOUR_PIPRAIL_MAX_TOTAL> --env PIPRAIL_MAX_TOTAL_DENOM=<YOUR_PIPRAIL_MAX_TOTAL_DENOM> --env PIPRAIL_MAX_PAYMENTS=<YOUR_PIPRAIL_MAX_PAYMENTS> --env PIPRAIL_MAX_PAYMENTS_PER_WINDOW=<YOUR_PIPRAIL_MAX_PAYMENTS_PER_WINDOW> --env PIPRAIL_WARN_AT_FRACTION=<YOUR_PIPRAIL_WARN_AT_FRACTION> --env PIPRAIL_SPEND_LOG=<YOUR_PIPRAIL_SPEND_LOG> --env PIPRAIL_EVENT_LOG=<YOUR_PIPRAIL_EVENT_LOG> --env PIPRAIL_TOKENS=<YOUR_PIPRAIL_TOKENS> --env PIPRAIL_SCHEMES=<YOUR_PIPRAIL_SCHEMES> -- npx -y @piprail/mcp@0.10.0

Run this in a terminal to add the server to Claude Code.

What this does

PipRail exposes a set of tools to Claude over the Model Context Protocol. After you add it to claude_desktop_config.json (snippet above) and restart Claude Desktop, those tools become callable inside any conversation.

Requirements

This server needs the following environment variables to be set before it can run:

PIPRAIL_PRIVATE_KEY
PIPRAIL_CHAIN
PIPRAIL_CHAINS
PIPRAIL_MAX_AMOUNT
PIPRAIL_MAX_TOTAL
PIPRAIL_MAX_TOTAL_DENOM
PIPRAIL_MAX_PAYMENTS
PIPRAIL_MAX_PAYMENTS_PER_WINDOW
PIPRAIL_WARN_AT_FRACTION
PIPRAIL_SPEND_LOG
PIPRAIL_EVENT_LOG
PIPRAIL_TOKENS
PIPRAIL_SCHEMES

Set these via the env object in your MCP config (see claude_desktop_config.json snippet above).

Frequently asked questions

How do I install PipRail?

Run the Claude Code command in the install section to add PipRail to Claude Code, or copy the ready-made config for your client from the install section on this page. Restart your client afterwards and the tools appear in your next conversation.

Which clients work with PipRail?

This page carries setup and config for Claude Code, Claude Desktop, Cursor and VS Code. Any other MCP client that accepts a standard server config can connect to PipRail as well.

Does PipRail need an API key?

Yes. Before it can run, set these environment variables: PIPRAIL_PRIVATE_KEY, PIPRAIL_CHAIN, PIPRAIL_CHAINS, PIPRAIL_MAX_AMOUNT, PIPRAIL_MAX_TOTAL, PIPRAIL_MAX_TOTAL_DENOM, PIPRAIL_MAX_PAYMENTS, PIPRAIL_MAX_PAYMENTS_PER_WINDOW, PIPRAIL_WARN_AT_FRACTION, PIPRAIL_SPEND_LOG, PIPRAIL_EVENT_LOG, PIPRAIL_TOKENS, PIPRAIL_SCHEMES. They go in the env block of your MCP config.

Imported from the Official MCP Registry. The details above come from the registry entry; the maker can claim this listing to correct them, add docs, and see its traffic.

Is this your MCP server?

Claim this listing to see its traffic, fix details yourself, and skip the review queue on future updates.

Listed on clauderules.net

Add this badge to your README

Show visitors this server is listed in the ClaudeRules directory. The badge links straight to this listing.

Markdown
[![Listed on clauderules.net](https://clauderules.net/api/badge/io-github-piprail-mcp)](https://clauderules.net/mcp/io-github-piprail-mcp)
HTML
<a href="https://clauderules.net/mcp/io-github-piprail-mcp" target="_blank" rel="noopener noreferrer"><img src="https://clauderules.net/api/badge/io-github-piprail-mcp" alt="Listed on clauderules.net" /></a>