Koskamo

PipRail MCP

An open-source, local-only MCP server that enables AI agents to autonomously pay for x402-gated HTTP APIs across 37 blockchain families. It provides budget-bound wallets with strict spend policies, allowing agents to discover, quote, plan, and execute payments without backend custody or fees.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

PipRail MCP logo, by PipRailCommunity listingLocal stdioSource reviewed; not executedPublished by PipRail
You need:Drop this into your MCP client with your wallet key and a budget
Vendor documentation

What you can do with it

  • Discover payable x402 APIs on open indexes
  • Quote the exact price of a gated URL
  • Plan payments by checking balance and gas across rails
  • Execute payments on the cheapest affordable rail

Source and maintenance

Community listingRegistry 0.10.0
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

@piprail/mcp 0.10.0

npm
@piprail/mcp package definition
{
  "version": "0.10.0",
  "transport": "stdio",
  "identifier": "@piprail/mcp",
  "registryType": "npm",
  "environmentVariables": [
    {
      "name": "PIPRAIL_PRIVATE_KEY",
      "format": "string",
      "description": "Your wallet's private key/seed for the chosen chain. Optional: omit it to run read-only (discover/quote/register/budget/guide); set it to let the agent pay. Stays on your machine; the spend policy caps every payment."
    },
    {
      "name": "PIPRAIL_CHAIN",
      "format": "string",
      "description": "Chain to pay on (default: base)."
    },
    {
      "name": "PIPRAIL_CHAINS",
      "format": "string",
      "description": "Pay across several chains (instead of PIPRAIL_CHAIN): a comma-separated list, e.g. base,polygon,solana. Give each its own PIPRAIL_<CHAIN>_KEY (+ optional PIPRAIL_<CHAIN>_RPC_URL). The agent pays whichever chain a 402 asks for — the first listed that can settle — under one shared budget."
    },
    {
      "name": "PIPRAIL_MAX_AMOUNT",
      "format": "string",
      "description": "Max spend per single payment, in token units (default: 0.10)."
    },
    {
      "name": "PIPRAIL_MAX_TOTAL",
      "format": "string",
      "description": "Lifetime spend cap per token, in token units (default: 10.00)."
    },
    {
      "name": "PIPRAIL_MAX_TOTAL_DENOM",
      "format": "string",
      "description": "Cross-token GRAND TOTAL: one spend cap per denomination across every stablecoin and chain, e.g. USD:20.00,EUR:5.00. Not a price oracle — sums tokens of the same unit, each counted 1:1. Native coins are excluded."
    },
    {
      "name": "PIPRAIL_MAX_PAYMENTS",
      "format": "string",
      "description": "Lifetime cap on the NUMBER of payments, across every chain + token (e.g. 100)."
    },
    {
      "name": "PIPRAIL_MAX_PAYMENTS_PER_WINDOW",
      "format": "string",
      "description": "Cap on the number of payments within PIPRAIL_WINDOW_SECONDS (a rolling rate limit; set PIPRAIL_WINDOW_SECONDS too)."
    },
    {
      "name": "PIPRAIL_WARN_AT_FRACTION",
      "format": "string",
      "description": "Emit an early-warning event when spend crosses this fraction of any cap, e.g. 0.8 (80%). Needs PIPRAIL_EVENT_LOG to be visible."
    },
    {
      "name": "PIPRAIL_SPEND_LOG",
      "format": "string",
      "description": "Path to a local append-only spend log. When set, the budget (lifetime, grand total, counts) SURVIVES a restart — hydrated from this file. No backend; you own the file."
    },
    {
      "name": "PIPRAIL_EVENT_LOG",
      "format": "string",
      "description": "Mirror payment events (settled / declined / budget-threshold) as one-line JSON to 'stderr' or a file path — the operator's notification stream. Default: off."
    },
    {
      "name": "PIPRAIL_TOKENS",
      "format": "string",
      "description": "Comma-separated allowed token symbols, plus the alias 'native' for the chain's coin (default: USDC)."
    },
    {
      "name": "PIPRAIL_SCHEMES",
      "format": "string",
      "description": "Comma-separated payment schemes to settle (default: onchain-proof). Add 'exact' (onchain-proof,exact) to also pay standard x402 servers GASLESS on EVM + Solana (method auto-selected). Add 'upto' to also pay metered x402 servers on EVM (Permit2): sign a MAX, the server settles the actual <= max."
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "piprail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@piprail/mcp@0.10.0"
      ],
      "env": {
        "PIPRAIL_PRIVATE_KEY": "<YOUR_PIPRAIL_PRIVATE_KEY>",
        "PIPRAIL_CHAIN": "<YOUR_PIPRAIL_CHAIN>",
        "PIPRAIL_CHAINS": "<YOUR_PIPRAIL_CHAINS>",
        "PIPRAIL_MAX_AMOUNT": "<YOUR_PIPRAIL_MAX_AMOUNT>",
        "PIPRAIL_MAX_TOTAL": "<YOUR_PIPRAIL_MAX_TOTAL>",
        "PIPRAIL_MAX_TOTAL_DENOM": "<YOUR_PIPRAIL_MAX_TOTAL_DENOM>",
        "PIPRAIL_MAX_PAYMENTS": "<YOUR_PIPRAIL_MAX_PAYMENTS>",
        "PIPRAIL_MAX_PAYMENTS_PER_WINDOW": "<YOUR_PIPRAIL_MAX_PAYMENTS_PER_WINDOW>",
        "PIPRAIL_WARN_AT_FRACTION": "<YOUR_PIPRAIL_WARN_AT_FRACTION>",
        "PIPRAIL_SPEND_LOG": "<YOUR_PIPRAIL_SPEND_LOG>",
        "PIPRAIL_EVENT_LOG": "<YOUR_PIPRAIL_EVENT_LOG>",
        "PIPRAIL_TOKENS": "<YOUR_PIPRAIL_TOKENS>",
        "PIPRAIL_SCHEMES": "<YOUR_PIPRAIL_SCHEMES>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "piprail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@piprail/mcp@0.10.0"
      ],
      "env": {
        "PIPRAIL_PRIVATE_KEY": "<YOUR_PIPRAIL_PRIVATE_KEY>",
        "PIPRAIL_CHAIN": "<YOUR_PIPRAIL_CHAIN>",
        "PIPRAIL_CHAINS": "<YOUR_PIPRAIL_CHAINS>",
        "PIPRAIL_MAX_AMOUNT": "<YOUR_PIPRAIL_MAX_AMOUNT>",
        "PIPRAIL_MAX_TOTAL": "<YOUR_PIPRAIL_MAX_TOTAL>",
        "PIPRAIL_MAX_TOTAL_DENOM": "<YOUR_PIPRAIL_MAX_TOTAL_DENOM>",
        "PIPRAIL_MAX_PAYMENTS": "<YOUR_PIPRAIL_MAX_PAYMENTS>",
        "PIPRAIL_MAX_PAYMENTS_PER_WINDOW": "<YOUR_PIPRAIL_MAX_PAYMENTS_PER_WINDOW>",
        "PIPRAIL_WARN_AT_FRACTION": "<YOUR_PIPRAIL_WARN_AT_FRACTION>",
        "PIPRAIL_SPEND_LOG": "<YOUR_PIPRAIL_SPEND_LOG>",
        "PIPRAIL_EVENT_LOG": "<YOUR_PIPRAIL_EVENT_LOG>",
        "PIPRAIL_TOKENS": "<YOUR_PIPRAIL_TOKENS>",
        "PIPRAIL_SCHEMES": "<YOUR_PIPRAIL_SCHEMES>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "piprail-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@piprail/mcp@0.10.0"
      ],
      "env": {
        "PIPRAIL_PRIVATE_KEY": "<YOUR_PIPRAIL_PRIVATE_KEY>",
        "PIPRAIL_CHAIN": "<YOUR_PIPRAIL_CHAIN>",
        "PIPRAIL_CHAINS": "<YOUR_PIPRAIL_CHAINS>",
        "PIPRAIL_MAX_AMOUNT": "<YOUR_PIPRAIL_MAX_AMOUNT>",
        "PIPRAIL_MAX_TOTAL": "<YOUR_PIPRAIL_MAX_TOTAL>",
        "PIPRAIL_MAX_TOTAL_DENOM": "<YOUR_PIPRAIL_MAX_TOTAL_DENOM>",
        "PIPRAIL_MAX_PAYMENTS": "<YOUR_PIPRAIL_MAX_PAYMENTS>",
        "PIPRAIL_MAX_PAYMENTS_PER_WINDOW": "<YOUR_PIPRAIL_MAX_PAYMENTS_PER_WINDOW>",
        "PIPRAIL_WARN_AT_FRACTION": "<YOUR_PIPRAIL_WARN_AT_FRACTION>",
        "PIPRAIL_SPEND_LOG": "<YOUR_PIPRAIL_SPEND_LOG>",
        "PIPRAIL_EVENT_LOG": "<YOUR_PIPRAIL_EVENT_LOG>",
        "PIPRAIL_TOKENS": "<YOUR_PIPRAIL_TOKENS>",
        "PIPRAIL_SCHEMES": "<YOUR_PIPRAIL_SCHEMES>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "piprail-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@piprail/mcp@0.10.0"
      ],
      "env": {
        "PIPRAIL_PRIVATE_KEY": "<YOUR_PIPRAIL_PRIVATE_KEY>",
        "PIPRAIL_CHAIN": "<YOUR_PIPRAIL_CHAIN>",
        "PIPRAIL_CHAINS": "<YOUR_PIPRAIL_CHAINS>",
        "PIPRAIL_MAX_AMOUNT": "<YOUR_PIPRAIL_MAX_AMOUNT>",
        "PIPRAIL_MAX_TOTAL": "<YOUR_PIPRAIL_MAX_TOTAL>",
        "PIPRAIL_MAX_TOTAL_DENOM": "<YOUR_PIPRAIL_MAX_TOTAL_DENOM>",
        "PIPRAIL_MAX_PAYMENTS": "<YOUR_PIPRAIL_MAX_PAYMENTS>",
        "PIPRAIL_MAX_PAYMENTS_PER_WINDOW": "<YOUR_PIPRAIL_MAX_PAYMENTS_PER_WINDOW>",
        "PIPRAIL_WARN_AT_FRACTION": "<YOUR_PIPRAIL_WARN_AT_FRACTION>",
        "PIPRAIL_SPEND_LOG": "<YOUR_PIPRAIL_SPEND_LOG>",
        "PIPRAIL_EVENT_LOG": "<YOUR_PIPRAIL_EVENT_LOG>",
        "PIPRAIL_TOKENS": "<YOUR_PIPRAIL_TOKENS>",
        "PIPRAIL_SCHEMES": "<YOUR_PIPRAIL_SCHEMES>"
      }
    }
  }
}

Let your agent find its tools

Find servers like PipRail MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.