npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

liqpay-mcp-server

v1.0.0

Published

MCP server for LiqPay payment gateway — payments, holds, refunds, subscriptions, payouts

Readme

MCP server for the LiqPay payment gateway — Ukraine's dominant payment platform operated by PrivatBank.

Exposes 11 tools for payments, holds, refunds, subscriptions, payouts, and webhook verification to AI agents and LLM workflows via the Model Context Protocol.

Features

  • 11 tools covering the full LiqPay API: payments, holds, refunds, subscriptions, P2P payouts, webhooks
  • PCI DSS safe — hosted checkout keeps card data on LiqPay's side
  • 2-step hold flow — freeze funds first, capture or cancel later
  • Recurring subscriptions — daily, weekly, monthly, yearly billing cycles
  • Webhook verification — SHA-1 signature validation for incoming callbacks
  • Truncation protection — large report responses are automatically truncated with guidance
  • TypeScript — full type safety, strict mode, zero any
  • Zero extra dependencies — uses Node.js built-in crypto and native fetch

Quick Start

Claude Desktop

Add to your claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "liqpay": {
      "command": "npx",
      "args": ["-y", "liqpay-mcp-server"],
      "env": {
        "LIQPAY_PUBLIC_KEY": "your_public_key",
        "LIQPAY_PRIVATE_KEY": "your_private_key"
      }
    }
  }
}

VS Code / Cursor

Install in VS Code

Or add to .vscode/mcp.json / .cursor/mcp.json manually:

{
  "servers": {
    "liqpay": {
      "command": "npx",
      "args": ["-y", "liqpay-mcp-server"],
      "env": {
        "LIQPAY_PUBLIC_KEY": "your_public_key",
        "LIQPAY_PRIVATE_KEY": "your_private_key"
      }
    }
  }
}

Claude Code (CLI)

Add to ~/.claude/settings.json (global) or .claude/settings.json (project):

{
  "mcpServers": {
    "liqpay": {
      "command": "npx",
      "args": ["-y", "liqpay-mcp-server"],
      "env": {
        "LIQPAY_PUBLIC_KEY": "your_public_key",
        "LIQPAY_PRIVATE_KEY": "your_private_key"
      }
    }
  }
}

Prerequisites

Tools

| Tool | Description | Annotations | |------|-------------|-------------| | liqpay_create_checkout_url | Generate a hosted checkout URL (PCI DSS safe) | idempotent open-world | | liqpay_get_payment_status | Fetch payment status by order ID | read-only idempotent open-world | | liqpay_get_payments_list | List payments by date range (max 31 days) | read-only idempotent open-world | | liqpay_create_hold | Pre-authorize funds on a card (2-step) | open-world | | liqpay_complete_hold | Capture previously held funds | destructive open-world | | liqpay_cancel_hold | Release held funds back to payer | destructive idempotent open-world | | liqpay_create_refund | Refund a completed payment (full/partial) | destructive open-world | | liqpay_create_subscription | Create recurring subscription via checkout | idempotent open-world | | liqpay_cancel_subscription | Cancel an active subscription | destructive idempotent open-world | | liqpay_create_payout | P2P transfer to a card | destructive open-world | | liqpay_verify_callback | Validate incoming webhook signature | read-only idempotent |

Environment Variables

| Variable | Required | Description | |----------|----------|-------------| | LIQPAY_PUBLIC_KEY | Yes | Merchant public key from LiqPay dashboard | | LIQPAY_PRIVATE_KEY | Yes | Merchant private key from LiqPay dashboard |

Rate Limits

| Scope | Limit | |-------|-------| | All API requests | ~100 req/min per merchant account | | Reports (liqpay_get_payments_list) | Max 31-day date range per request | | Checkout URL generation | No limit — computed locally, no API call | | Webhook verification | No limit — computed locally, no API call |

Docker

docker build -t liqpay-mcp-server .
docker run -e LIQPAY_PUBLIC_KEY=your_key -e LIQPAY_PRIVATE_KEY=your_secret liqpay-mcp-server

Or with docker-compose:

services:
  liqpay-mcp:
    build: .
    environment:
      LIQPAY_PUBLIC_KEY: your_key
      LIQPAY_PRIVATE_KEY: your_secret

Development

# Install dependencies
npm install

# Run in dev mode (auto-reload)
npm run dev

# Build
npm run build

# Run tests
npm test

# Test with MCP Inspector
LIQPAY_PUBLIC_KEY=test LIQPAY_PRIVATE_KEY=test \
  npx @modelcontextprotocol/inspector node dist/index.js

See docs/SANDBOX_TESTING.md for testing without real money.

Documentation

| Document | Description | |----------|-------------| | docs/AGENT_SETUP.md | Instructions for AI agents to install and configure this server | | docs/API_REFERENCE.md | Complete tool reference with request/response examples | | docs/SANDBOX_TESTING.md | How to test with LiqPay sandbox (no real money) |

Security

  • LiqPay API signature uses SHA-1: base64(sha1(private_key + data + private_key))
  • Private keys are never logged or included in tool responses
  • liqpay_create_hold and liqpay_create_payout accept raw card numbers — ensure PCI DSS compliance
  • For most payment use cases, prefer liqpay_create_checkout_url which handles card data on LiqPay's side

License

MIT