MCP Hub
Back to servers

@theyahia/zarinpal-mcp

MCP server for Zarinpal — payment gateway, invoicing (Iran)

npm258/wk
Updated
Apr 1, 2026

Quick Install

npx -y @theyahia/zarinpal-mcp

zarinpal-mcp

MCP server for Zarinpal payment gateway (Iran). Supports payment creation, verification, refunds, sandbox mode, and transaction listing. Uses Merchant ID authentication in request body.

Tools (8)

ToolDescription
create_paymentCreate a payment request
verify_paymentVerify a completed payment
get_unverifiedList unverified payments
list_transactionsList payment transactions
refundRefund a payment
create_sandbox_paymentCreate a sandbox test payment
get_feesCalculate fees for an amount
get_authority_statusCheck payment status by authority

Quick Start

{
  "mcpServers": {
    "zarinpal": {
      "command": "npx",
      "args": ["-y", "@theyahia/zarinpal-mcp"],
      "env": {
        "ZARINPAL_MERCHANT_ID": "<YOUR_MERCHANT_ID>"
      }
    }
  }
}

Environment Variables

VariableRequiredDescription
ZARINPAL_MERCHANT_IDYesMerchant ID from Zarinpal dashboard

Demo Prompts

  • "Create a payment for 100000 IRR with callback to https://mysite.com/pay"
  • "Verify payment with authority A000..."
  • "List all unverified payments"
  • "Refund 50000 IRR for authority A000..."
  • "Create a sandbox test payment"

License

MIT

Reviews

No reviews yet

Sign in to write a review