Skip to main content
Glama
kuwaitdevs

MyFatoorah MCP

by kuwaitdevs

MyFatoorah MCP

MyFatoorah API向けの、LLMフレンドリーなModel Context Protocolサーバーです。Claude、VS Code、Cursor、その他のMCPホストは、専用ツールを通じて、決済手段の検出、支払いリンクの作成、支払いの検証、請求書の確認、返金の管理を行うことができます。

これは独立したコミュニティプロジェクトであり、MyFatoorahの公式製品ではありません。本番アカウントを使用する前に、サンドボックスでテストしてください。

ホストのセットアップ手順、Inspectorでのテスト、エージェントプロンプト、支払い検証、返金、トラブルシューティングについては、使用ガイドを参照してください。

要件

  • Node.js 20以降

  • 使用するツールに必要な権限のみを持つMyFatoorah APIトークン

Related MCP server: AgentPay

セットアップ

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

MCPホストの環境でMYFATOORAH_API_TOKENを設定してください。サーバーは.envを自動的には読み込みません。読み込むのはVS Codeのデバッグ構成です。

環境変数

変数

必須

デフォルト

説明

MYFATOORAH_API_TOKEN

はい(API呼び出し時)

Bearerトークン。エージェントプロンプトに絶対に公開しないでください。

MYFATOORAH_ENVIRONMENT

いいえ

test

testkuwaituaesaudi_arabiaqataregyptのいずれか

MYFATOORAH_BASE_URL

いいえ

環境URL

サポート対象のMyFatoorahデプロイメントまたはテストプロキシ用のHTTPS上書き設定

MYFATOORAH_TIMEOUT_MS

いいえ

30000

リクエストタイムアウト(1〜300000ミリ秒)

クウェートの環境は、バーレーン、ヨルダン、オマーン共通のAPIオリジンもカバーします。複数国対応アカウントでは、国ごとに個別のトークンを使用します。

MCPホストを接続する

ホスト構成では絶対パスを使用してください。/absolute/path/to/myfatoorah-mcpとトークンのプレースホルダーは、ローカル環境に合わせて置き換えてください。

Claude Desktop

Claude DesktopのMCP構成にこのサーバーを追加します:

{
  "mcpServers": {
    "myfatoorah": {
      "command": "node",
      "args": ["/absolute/path/to/myfatoorah-mcp/dist/index.js"],
      "env": {
        "MYFATOORAH_API_TOKEN": "YOUR_TOKEN",
        "MYFATOORAH_ENVIRONMENT": "test"
      }
    }
  }
}

構成を保存したら、Claude Desktopを再起動してください。

Claude Code

プロジェクトスコープの構成では.mcp.jsonを使用できます(トークンを含む場合はコミットしないでください):

{
  "mcpServers": {
    "myfatoorah": {
      "type": "stdio",
      "command": "node",
      "args": ["/absolute/path/to/myfatoorah-mcp/dist/index.js"],
      "env": {
        "MYFATOORAH_API_TOKEN": "YOUR_TOKEN",
        "MYFATOORAH_ENVIRONMENT": "test"
      }
    }
  }
}

VS Code / GitHub Copilot

同梱の.vscode/mcp.jsonは、ビルド済みのサーバーを起動し、トークンを安全に入力するよう促します。一度ビルドしてから、MCPサーバービューを開き、myfatoorahを起動してください。トークンはリポジトリに保存されません。

Cursorおよび一般的なstdioホスト

Claude Desktopの例と同じcommandargsenvの値を使用してください。MCPプロトコルのメッセージはstdin/stdoutを使用し、サーバーの診断情報はstderrを使用する必要があります。

npmに公開した後は、ホストは代わりにnpx -y myfatoorah-mcpで起動することもできます。

ツール

ツール

効果

目的

myfatoorah_get_payment_methods

読み取り専用

有効な決済手段とそのApiName値を一覧表示します

myfatoorah_create_payment

データ作成

POST /v3/paymentsでホスト型チェックアウトまたは請求書リンクを作成します

myfatoorah_get_payment

読み取り専用

PaymentIdで正規の支払い詳細を取得します

myfatoorah_get_invoice

読み取り専用

InvoiceIdまたは外部識別子で請求書を取得します

myfatoorah_create_refund

破壊的

全額または一部の返金を作成します。confirm: trueが必要です

myfatoorah_get_refund

読み取り専用

RefundIdで返金の詳細を取得します

myfatoorah_api_request

状況による

相対/v2/または/v3/パス用の制限付きエスケープハッチ。変更操作には確認が必要です

サーバーは以下も公開しています:

  • リソースmyfatoorah://configuration:環境、ベースURL、タイムアウト、トークンが設定されているかどうか。トークン自体は含まれません。

  • プロンプトcreate-payment-safely:再利用可能なガイド付き支払いリンクワークフロー。

成功したツールは、簡潔なテキスト要約と、MyFatoorahのレスポンスを含む機械可読なstructuredContentを返します。

安全な支払いワークフロー

  1. myfatoorah://configurationを読み取り、テスト環境と本番環境を確認します。

  2. ゲートウェイを選択する場合は、myfatoorah_get_payment_methodsを呼び出して、そのApiNameを使用します。

  3. 金額、通貨、顧客、通知方法、コールバックURLを確認します。

  4. myfatoorah_create_paymentを呼び出し、顧客にそのPaymentURLを渡します。

  5. コールバック後、返されたPaymentIdを指定してmyfatoorah_get_paymentを呼び出します。リダイレクトは支払いの証明にはなりません。請求書ステータスがPAID、取引ステータスがSUCCESSであることを確認してください。

返金は本番モードで資金を移動させます。confirm: trueを渡す前に、正確なPaymentIdと金額についてユーザーの明示的な承認を得てください。

開発

npm run format
npm run lint
npm run typecheck
npm test
npm run build
npm run inspect

npm run inspectは、コンパイル済みのstdioサーバーに対して公式のMCP Inspectorを起動します。VS Codeにはビルド/テストタスクとデバッグ構成も含まれています。

テストはすべてのMyFatoorahリクエストをモックします。ネットワーク呼び出しやトークンは必要ありません。

セキュリティ

  • 最小権限のMyFatoorah APIキーを使用し、定期的にローテーションしてください。

  • 認証情報はホスト環境またはシークレットマネージャーに保管し、ソース管理やモデルコンテキストには絶対に置かないでください。

  • 汎用リクエストツールは、認証情報の外部流出を防ぐため、絶対URL、プロトコル相対URL、トラバーサル、/v2//v3/以外のパスを拒否します。

  • APIエラーとBearer値は、モデルに到達する前にマスクされます。

  • サポート対象の変更操作では冪等性キーを優先し、安定した注文識別子を使用してください。

  • このstdioプロセスを、認証なしのネットワークサービスとして公開しないでください。

  • 直接のカード処理は、意図的に専用ツールとしてはモデル化されていません。PCI準拠が必要です。

APIスコープとリファレンス

専用ツールは、2026年8月時点でMyFatoorahが公開しているv3ルートを使用します:

  • GET /v3/payment-methods

  • POST /v3/payments

  • GET /v3/payments/{paymentId}

  • GET /v3/invoices/{invoiceId}

  • GET /v3/invoices/externalIdentifier/{externalIdentifier}

  • POST /v3/refunds

  • GET /v3/refunds/{refundId}

リファレンス:

ライセンス

MIT

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    Not graded
    quality
    Not graded
    maintenance
    Enables AI agents to interact with multiple payment providers (Stripe, Paystack) through a unified API. Supports payment initialization, verification, refunds, customer management, and invoicing without requiring knowledge of specific provider implementations.
    2
  • A
    license
    Not graded
    quality
    C
    maintenance
    MCP server for AgentPay — the payment gateway for autonomous AI agents. Fund a wallet once, give your agent the key, and it discovers, provisions, and pays for tool APIs on its own. One key, every tool.
    112
    1
    MIT
  • F
    license
    Not graded
    quality
    C
    maintenance
    Provides AI agents with 220+ tools for building websites, sending email, managing contacts, invoicing, databases, automation, and more through a single secure connection. Features hardware-bound authentication and works with Claude Desktop, Claude Code, Cursor, and other MCP-compatible clients.

View all related MCP servers

Related MCP Connectors

  • Agent Commerce Protocol MCP — bridges Stripe ACP + Google AP2 + Coinbase x402 for agent payments

  • A paid remote MCP for AI agent browser DevTools MCP, built to return verdicts, receipts, usage logs,

  • Agent Commerce MCP — agent-native A2A storefront. Discovery, Stripe checkout, affiliate program.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kuwaitdevs/myfatoorah-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server