FawryPay cash payments (unofficial)

v0.1.0
io.github.mohamedaly-cloud/masr-pay-mcp-unofficial Checked 3 days ago Published 1 month ago

Unofficial MCP server for FawryPay Pay-at-Fawry cash payments in Egypt.

Values you need

VariableWhat it is
FAWRY_MERCHANT_CODErequired Your FawryPay merchant code
FAWRY_SECURE_KEYrequired secret Your FawryPay secure key
FAWRY_ENVoptional mock (default), staging or production Default: mock
MASR_PAY_ENABLE_DESTRUCTIVE_TOOLSoptional true adds refund and cancel tools (merchant staff only). Default off. Default: false

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add masr-pay-mcp-unofficial -e 'FAWRY_MERCHANT_CODE=<FAWRY_MERCHANT_CODE>' -e 'FAWRY_SECURE_KEY=<FAWRY_SECURE_KEY>' -- uvx masr-pay-mcp-unofficial==0.1.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "masr-pay-mcp-unofficial": {
      "args": [
        "masr-pay-mcp-unofficial==0.1.0"
      ],
      "command": "uvx",
      "env": {
        "FAWRY_MERCHANT_CODE": "<FAWRY_MERCHANT_CODE>",
        "FAWRY_SECURE_KEY": "<FAWRY_SECURE_KEY>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "masr-pay-mcp-unofficial": {
      "args": [
        "masr-pay-mcp-unofficial==0.1.0"
      ],
      "command": "uvx",
      "env": {
        "FAWRY_MERCHANT_CODE": "<FAWRY_MERCHANT_CODE>",
        "FAWRY_SECURE_KEY": "<FAWRY_SECURE_KEY>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "FAWRY_MERCHANT_CODE",
      "id": "fawry-merchant-code",
      "password": true,
      "type": "promptString"
    },
    {
      "description": "FAWRY_SECURE_KEY",
      "id": "fawry-secure-key",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "masr-pay-mcp-unofficial": {
      "args": [
        "masr-pay-mcp-unofficial==0.1.0"
      ],
      "command": "uvx",
      "env": {
        "FAWRY_MERCHANT_CODE": "${input:fawry-merchant-code}",
        "FAWRY_SECURE_KEY": "${input:fawry-secure-key}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.masr-pay-mcp-unofficial]
command = "uvx"
args = ["masr-pay-mcp-unofficial==0.1.0"]
env = { "FAWRY_MERCHANT_CODE" = "<FAWRY_MERCHANT_CODE>", "FAWRY_SECURE_KEY" = "<FAWRY_SECURE_KEY>" }

For AI agents

  1. Ask the user for: FAWRY_MERCHANT_CODE, FAWRY_SECURE_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: create_cash_payment, get_payment_status.
  5. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json