Moyasar MCP Server

Moyasar MCP Server

Payments for AI agents. A Stripe-style MCP server for Moyasar — Saudi Arabia's payment gateway — that lets Claude create payment links, check transactions, and issue refunds in plain Arabic or English.

Category
访问服务器

README

Moyasar MCP Server

Payments for AI agents. A Stripe-style MCP server for Moyasar — Saudi Arabia's payment gateway — that lets Claude create payment links, check transactions, and issue refunds in plain Arabic or English. Built with Skybridge, so every tool renders a live React widget inside the conversation.

No regional payment provider offers this today. This repo is the proof that Moyasar can be first.

<br>

<p align="center"> <img src="docs/assets/payment-link-demo.png" alt="Claude creating a 150 SAR Moyasar payment link — the tool renders a live widget with a scannable QR code and an Open payment page button, right inside the conversation" width="920"> </p>

<p align="center"> <em>One sentence in — a scannable payment link out. Live widget, rendered by this server inside Claude.</em> </p>


The demo

Connect the server to Claude and the pitch plays out in five beats — live against Moyasar's sandbox, QR scan and all:

You: Create a 150 SAR payment link for a consultation session.

Claude → moyasar_create_payment_link(amount: 15000, currency: "SAR", description: "Consultation session")

🧾 150.00 SAR — INITIATED Consultation session ▪️▪️▪️ [scannable QR code] ▪️▪️▪️ https://moyasar.com/i/… — scan with a phone, pay with a test card, right there on the call.

You: Has it been paid yet?

Claude → moyasar_fetch_invoice(invoice_id: "…")

🧾 150.00 SAR — PAID ✅ Paid by payment a1b2c3…

You: Show me today's transactions.

Claude → moyasar_list_payments(created_after: "…")

Date Description Source Amount Status
2026-07-15 Consultation session visa •••• 1111 150.00 SAR PAID

You: Refund that payment.

Claude → moyasar_create_refund(payment_id: "…")

💸 Refund complete — payment is REFUNDED, refunded 150.00 SAR

You: How is this account doing this week?

Claude → moyasar_get_account_summary(days: 7)

📊 12 payments · 1,840.00 SAR volume · 8% refund rate

Five sentences. Zero dashboards. That's the pitch.

Why it matters

  • Agents are the new integration surface. Stripe ships an MCP server. Every AI assistant that touches money will route through servers like this one. This is Moyasar, AI-native, today.
  • Errors teach the agent. Every failure returns recovery guidance instead of a stack trace — "This payment has status 'initiated' — only 'paid' payments can be refunded." The agent self-corrects mid-conversation.
  • Card numbers never transit chat. The recommended flow is hosted payment links; the direct-card tool exists for sandbox demos and says so in its own description.

The 11 tools

Tool What it does
moyasar_create_payment_link Hosted payment link + QR widget — the flagship flow
moyasar_fetch_invoice Poll a link: paid or not?
moyasar_list_invoices All payment links, as a table widget
moyasar_cancel_invoice Kill an unpaid link
moyasar_create_payment Direct card charge (sandbox test cards only)
moyasar_fetch_payment Payment status card
moyasar_list_payments Transactions table with status/date filters
moyasar_create_refund Full or partial refund
moyasar_capture_payment Capture a manual authorization (fetches the hold amount automatically)
moyasar_void_payment Release a hold without charging
moyasar_get_account_summary Counts, volume, refund rate — stat-tile dashboard

Design follows our published MCP server design principles: curated responses instead of raw API JSON, tool descriptions written as agent prompts, a focused 11-tool surface, moyasar_ prefixes throughout.

Quick start

npm install
MOYASAR_SECRET_KEY=sk_test_xxx npm run dev          # DevTools on http://localhost:3000
MOYASAR_SECRET_KEY=sk_test_xxx npm run dev:tunnel   # public URL → add as Claude connector

Keys are never hardcoded. Sandbox sk_test_ keys only — sk_live_ is refused unless you explicitly set ALLOW_LIVE=true, so the demo can never accidentally move real money.

npm test        # 28 unit tests, no network
npm run smoke   # real sandbox round-trip: link → fetch → list → cancel (skips without a key)

The full presenter script lives in DEMO.md.

Architecture

Claude ⇄ Skybridge MCP app (11 tools + React widgets)
              └── tool-runner (errors → agent guidance)
                    └── typed Moyasar client (Basic auth, curated responses)
                          └── api.moyasar.com/v1

Productization roadmap (out of scope for the demo)

OAuth per-merchant auth · webhooks/callbacks · Apple Pay / Samsung Pay / STC Pay sources · bulk invoices · hosted deployment.


Built by Software Savants.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选