Skip to main content
Glama

payfast-mcp

MCP server for PayFast payment gateway (South Africa).

Tools (8)

Tool

Description

create_payment

Create a payment request

query_transaction

Query transaction status

cancel_subscription

Cancel a subscription

update_subscription

Update a subscription

create_adhoc

Charge tokenized card (ad-hoc)

refund_payment

Refund a payment

get_balance

Get settlement balance

validate_signature

Validate a webhook signature

Related MCP server: paymongo-mcp

Quick Start

{
  "mcpServers": {
    "payfast": {
      "command": "npx",
      "args": ["-y", "@theyahia/payfast-mcp"],
      "env": {
        "PAYFAST_MERCHANT_ID": "<YOUR_PAYFAST_MERCHANT_ID>",
        "PAYFAST_MERCHANT_KEY": "<YOUR_PAYFAST_MERCHANT_KEY>",
        "PAYFAST_PASSPHRASE": "<YOUR_PAYFAST_PASSPHRASE>"
      }
    }
  }
}

Environment Variables

Variable

Required

Description

PAYFAST_MERCHANT_ID

Yes

Merchant ID

PAYFAST_MERCHANT_KEY

Yes

Merchant key

PAYFAST_PASSPHRASE

Yes

API passphrase

License

MIT

Available Tools

8 tools
cancel_subscriptionC

Cancel a subscription

Inputs: token (required).

create_adhocC

Charge tokenized card (ad-hoc)

Inputs: token (required), amount (required), item_name (required).

create_paymentC

Create a payment request

Inputs: amount (required), item_name (required), email_address (required), return_url.

get_balanceC

Get settlement balance

Inputs: no named parameters.

query_transactionC

Query transaction status

Inputs: pf_payment_id (required).

refund_paymentC

Refund a payment

Inputs: pf_payment_id (required), amount.

update_subscriptionC

Update a subscription

Inputs: token (required), amount, frequency.

validate_signatureC

Validate a webhook signature

Inputs: payload (required), signature (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.3/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose targeting specific payment operations: subscription management (cancel, update), payment processing (create, refund, query), balance checking, ad-hoc charging, and webhook validation. No ambiguity exists between tools as they cover non-overlapping actions on different resources.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with clear action verbs (cancel, create, get, query, refund, update, validate) paired with specific nouns (subscription, payment, balance, transaction, signature). The naming is uniform and predictable throughout the set.

    Tool Count5/5

    With 8 tools, the server is well-scoped for a payment processing domain. Each tool earns its place by covering essential operations like payment lifecycle, subscription management, balance inquiries, and security validation without being overly sparse or bloated.

    Completeness5/5

    The toolset provides complete coverage for core payment workflows: payment creation, status querying, refunds, subscription management (cancel/update), balance checks, ad-hoc charges, and webhook validation. No obvious gaps exist for the inferred payment processing domain, supporting full agent interaction.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with the PayFast payment gateway to manage transactions, subscriptions, and refunds. It provides a suite of 13 tools with built-in human-in-the-loop safety confirmations for high-risk financial operations.
      14
      52 npm
      2
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      MCP server for PayMongo payment gateway (Philippines). Supports payment intents, sources, payments, refunds, and checkout sessions via Basic Auth.
      24
      22 npm
      2
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for MAIB e-commerce payments (Moldova). Supports payments, refunds, recurring billing, one-click payments, and transaction status via OAuth 2.0.
      8
      13 npm
      MIT