# MyFatoorah MCP [Health: Active]

**Category:** 💰 Finance & Fintech  
**Repository:** https://github.com/kuwaitdevs/myfatoorah-mcp  
**GitHub Stars:** 0  
**npm Downloads (last month):** 155  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/myfatoorah-mcp

## Description
Safely connect AI agents to MyFatoorah payments, invoices, payment methods, and refunds.

## Tools
Capabilities this server exposes over MCP:

- **myfatoorah_get_payment_methods** — Lists enabled methods and their `ApiName` values
- **myfatoorah_create_payment** — Creates a hosted checkout or invoice link with `POST /v3/payments
- **myfatoorah_get_payment** — Gets authoritative payment details by PaymentId
- **myfatoorah_get_invoice** — Gets an invoice by InvoiceId or external identifier
- **myfatoorah_create_refund** — Creates a full or partial refund; requires `confirm: true
- **myfatoorah_get_refund** — Gets refund details by RefundId
- **myfatoorah_api_request** — Restricted escape hatch for relative `/v2/` or `/v3/` paths; mutations require confirmation

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "myfatoorah-mcp": {
    "command": "npx",
    "args": ["-y","myfatoorah-mcp"],
    "env": {
      "MYFATOORAH_API_TOKEN": "",
      "MYFATOORAH_ENVIRONMENT": "",
      "MYFATOORAH_BASE_URL": "",
      "MYFATOORAH_TIMEOUT_MS": ""
    }
  }
}
```

**Requires environment variables:** `MYFATOORAH_API_TOKEN`, `MYFATOORAH_ENVIRONMENT`, `MYFATOORAH_BASE_URL`, `MYFATOORAH_TIMEOUT_MS` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What MyFatoorah MCP MCP server does

MyFatoorah MCP connects an MCP-compatible host to the MyFatoorah API. Its focused tools cover enabled payment methods, hosted checkout or invoice link creation, payment verification, invoice retrieval, and refund operations. A restricted general request tool is also available for relative paths under `/v2/` and `/v3/`.

The project is an independent community implementation, not an official MyFatoorah product. It is intended for agents that need to work with payment workflows while keeping API credentials in the host environment rather than in model prompts.

## How it works

The server runs over MCP using standard input and output. A host starts the compiled Node.js entry point, and the server makes HTTPS requests to the configured MyFatoorah deployment. Successful calls provide a concise text result alongside machine-readable `structuredContent` containing the API response.

Read-only tools include payment-method discovery, payment lookup, invoice lookup, and refund lookup. Payment creation uses `POST /v3/payments`. Refund creation supports full or partial refunds and requires `confirm: true`; mutations through the generic request tool also require confirmation.

For payment verification, a redirect alone is not treated as proof of payment. The documented workflow checks the returned payment using its `PaymentId` and requires invoice status `PAID` and transaction status `SUCCESS`. The server also provides the `myfatoorah://configuration` resource, which reports the selected environment, base URL, timeout, and whether a token is configured without revealing the token. The `create-payment-safely` prompt provides a reusable guided workflow.

## Setup and configuration

MyFatoorah MCP MCP server requires Node.js 20 or newer and a MyFatoorah API token with only the permissions needed by the selected tools. Install dependencies, copy the example environment file, and build the project:

- `npm install`
- `cp .env.example .env`
- `npm run build`

The host must provide `MYFATOORAH_API_TOKEN`. The server does not automatically load `.env`; the included VS Code debug configuration does. `MYFATOORAH_ENVIRONMENT` defaults to `test` and accepts `test`, `kuwait`, `uae`, `saudi_arabia`, `qatar`, or `egypt`. `MYFATOORAH_BASE_URL` can override the HTTPS endpoint for a supported deployment or test proxy. `MYFATOORAH_TIMEOUT_MS` defaults to 30,000 milliseconds and accepts values from 1 to 300,000.

Configure the host with an absolute path to `dist/index.js`, using `node` and the required environment values. Claude Desktop, Claude Code, VS Code, and Cursor examples are provided. After npm publication, a host can launch the package with `npx -y myfatoorah-mcp`.

## Tools and capabilities

The available tools are:

- `myfatoorah_get_payment_methods` lists enabled methods and their `ApiName` values.
- `myfatoorah_create_payment` creates a hosted checkout or invoice link.
- `myfatoorah_get_payment` retrieves authoritative payment details by `PaymentId`.
- `myfatoorah_get_invoice` retrieves an invoice by invoice ID or external identifier.
- `myfatoorah_create_refund` creates a full or partial refund after confirmation.
- `myfatoorah_get_refund` retrieves refund details by `RefundId`.
- `myfatoorah_api_request` permits constrained relative requests under `/v2/` or `/v3/`.

## Limitations and notes

Use a least-privilege token, keep credentials out of source control and model context, and avoid exposing the stdio process as an unauthenticated network service. The generic request tool rejects absolute URLs, protocol-relative URLs, traversal, and paths outside the allowed API prefixes. API errors and bearer values are redacted before reaching the model.

Direct card handling is not modeled as a focused tool because it requires PCI compliance. Refunds move money in live mode, so obtain approval for the exact payment and amount before confirmation. Multi-country accounts require a separate token for each country; the Kuwait setting also covers the shared Bahrain, Jordan, and Oman API origin. Test in the sandbox before using a live account.

_Full upstream README: https://allmcps.com/mcp/myfatoorah-mcp/readme_

