Skip to content
MCP server

Payfast

MCP server for PayFast — AI assistants interact with South Africa's payment gateway

Runs locallyStatus and history
Install
Pricing
Open source
Runs
Locally
Version
1.0.1
Listing updated
5 days ago

About Payfast

Payfast is an open-source MCP server. It runs locally on your machine and is started by your AI client.

Install

Run in a terminal

claude mcp add payfast --env PAYFAST_MERCHANT_ID='<PAYFAST_MERCHANT_ID>' --env PAYFAST_MERCHANT_KEY='<PAYFAST_MERCHANT_KEY>' --env PAYFAST_PASSPHRASE='<PAYFAST_PASSPHRASE>' -- npx -y payfast-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "payfast": {
      "command": "npx",
      "args": [
        "-y",
        "payfast-mcp"
      ],
      "env": {
        "PAYFAST_MERCHANT_ID": "<PAYFAST_MERCHANT_ID>",
        "PAYFAST_MERCHANT_KEY": "<PAYFAST_MERCHANT_KEY>",
        "PAYFAST_PASSPHRASE": "<PAYFAST_PASSPHRASE>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "payfast": {
      "command": "npx",
      "args": [
        "-y",
        "payfast-mcp"
      ],
      "env": {
        "PAYFAST_MERCHANT_ID": "<PAYFAST_MERCHANT_ID>",
        "PAYFAST_MERCHANT_KEY": "<PAYFAST_MERCHANT_KEY>",
        "PAYFAST_PASSPHRASE": "<PAYFAST_PASSPHRASE>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "payfast": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "payfast-mcp"
      ],
      "env": {
        "PAYFAST_MERCHANT_ID": "<PAYFAST_MERCHANT_ID>",
        "PAYFAST_MERCHANT_KEY": "<PAYFAST_MERCHANT_KEY>",
        "PAYFAST_PASSPHRASE": "<PAYFAST_PASSPHRASE>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "payfast": {
      "command": "npx",
      "args": [
        "-y",
        "payfast-mcp"
      ],
      "env": {
        "PAYFAST_MERCHANT_ID": "<PAYFAST_MERCHANT_ID>",
        "PAYFAST_MERCHANT_KEY": "<PAYFAST_MERCHANT_KEY>",
        "PAYFAST_PASSPHRASE": "<PAYFAST_PASSPHRASE>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "payfast": {
      "command": "npx",
      "args": [
        "-y",
        "payfast-mcp"
      ],
      "env": {
        "PAYFAST_MERCHANT_ID": "<PAYFAST_MERCHANT_ID>",
        "PAYFAST_MERCHANT_KEY": "<PAYFAST_MERCHANT_KEY>",
        "PAYFAST_PASSPHRASE": "<PAYFAST_PASSPHRASE>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • PAYFAST_MERCHANT_IDYour PayFast merchant IDRequired
  • PAYFAST_MERCHANT_KEYYour PayFast merchant keyRequired
  • PAYFAST_PASSPHRASEYour PayFast API passphraseRequired
  • PAYFAST_ENVIRONMENTPayFast environment: 'sandbox' or 'production' (defaults to sandbox)

Pricing

Open source

Payfast FAQ

Is Payfast free?

Yes. Payfast is open source, so you can use and self-host it for free.

How do I add Payfast to Claude Code?

Run this command in your terminal: claude mcp add payfast --env PAYFAST_MERCHANT_ID='<PAYFAST_MERCHANT_ID>' --env PAYFAST_MERCHANT_KEY='<PAYFAST_MERCHANT_KEY>' --env PAYFAST_PASSPHRASE='<PAYFAST_PASSPHRASE>' -- npx -y payfast-mcp

Where this comes from

  • Description: from the official MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers