MyFatoorah MCP logo

MyFatoorah MCP

Connects MCP-compatible agents to MyFatoorah for payment links, verification, invoice lookup, and controlled refunds.

Install MyFatoorah MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "myfatoorah-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "myfatoorah-mcp"
      ],
      "env": {
        "MYFATOORAH_API_TOKEN": "YOUR_VALUE_HERE",
        "MYFATOORAH_ENVIRONMENT": "YOUR_VALUE_HERE",
        "MYFATOORAH_BASE_URL": "YOUR_VALUE_HERE",
        "MYFATOORAH_TIMEOUT_MS": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env MYFATOORAH_API_TOKEN=YOUR_VALUE_HERE --env MYFATOORAH_ENVIRONMENT=YOUR_VALUE_HERE --env MYFATOORAH_BASE_URL=YOUR_VALUE_HERE --env MYFATOORAH_TIMEOUT_MS=YOUR_VALUE_HERE --transport stdio myfatoorah-mcp -- npx -y myfatoorah-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

The install command started, but didn't respond the way we expected when we tried to talk to it.

npx -y myfatoorah-mcp

Internal server error

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

MyFatoorah MCP MCP server connects MCP hosts to the MyFatoorah API through focused payment, invoice, refund, and API request tools. It runs as a compiled Node.js stdio process, returns text summaries with structured response data, and supports test plus regional environments. Reach for it when an agent needs to create hosted checkout links, verify payment status, inspect invoices, or manage refunds without exposing API credentials in prompts.

Use cases

  • Discover enabled MyFatoorah payment methods
  • Create hosted checkout or invoice links
  • Verify payment status after a callback
  • Retrieve invoices by ID or external identifier
  • Request confirmed full or partial refunds

Key features

  • Payment-method discovery
  • Hosted payment and invoice link creation
  • Payment and invoice lookup
  • Confirmed full or partial refunds
  • Restricted v2/v3 API requests
  • Structured MCP tool responses

Tools7

What MyFatoorah MCP lets your agent do. Expand a tool for its parameters.

Self-reported~139 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

18/18 checks healthy over the last 84d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 6d ago via OSV.dev · myfatoorah-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads155Package downloads in the last 30 days.
Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveStarted but did not complete the MCP handshake in our test.
Tools exposed7Callable tools this server registers over MCP.

How MyFatoorah MCP works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MyFatoorah MCP

MyFatoorah MCP is an MCP server that connects AI agents to the MyFatoorah API through focused tools for payment methods, hosted payment or invoice links, payment and invoice lookup, refunds, and restricted API requests. It returns concise summaries with structured response data and supports test and regional environments.

Install it with Node.js 20 or newer by running `npm install`, copying `.env.example` to `.env`, and running `npm run build`. Configure the host to launch `dist/index.js` with `node` and provide the required API token in its environment.

Yes, MyFatoorah MCP works with Cursor through a standard stdio configuration. Use the same `command`, `args`, and environment values as the Claude Desktop example, including an absolute path to the compiled `dist/index.js` file.

It verifies a payment by calling `myfatoorah_get_payment` with the returned `PaymentId` after the callback. A redirect is not sufficient; the documented workflow requires invoice status `PAID` and transaction status `SUCCESS`.

Create a refund with `myfatoorah_create_refund` and pass `confirm: true` after obtaining approval for the exact payment and amount. The tool supports full or partial refunds, and refunds can move money when the server uses live mode.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMyFatoorah MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/myfatoorah-mcp?style=directory)](https://allmcps.com/mcp/myfatoorah-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/myfatoorah-mcp"><img src="https://allmcps.com/api/badge/myfatoorah-mcp?style=directory" alt="MyFatoorah MCP on AllMCPs" /></a>