World Monitor
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.
Unofficial MCP server for FawryPay Pay-at-Fawry cash payments in Egypt. Not affiliated with Fawry.
列表按使用分(满分 100)排序,由以下部分组成
| 热度 | 0/80 | GitHub 星标或每周下载量:较大的计 60,较小的计 20 |
|---|---|---|
| 新鲜度 | 12/12 | 30 天内有发布或代码更新得满分 |
| 仍在响应 | 0/8 | 上次检查时云端端点有响应 |
| 使用分 | 12/100 |
质量: 基础检查通过 3/3 项(仅展示,不用于排序) · 上升势头: 暂无数据 (只用于“上升中”标签)
选择你使用的 AI 应用,然后复制设置。
用一句话让 AI 帮你安装
请帮我安装 FawryPay cash payments (unofficial)。按照 https://mcp.popnx.com/i/mohamedaly-cloud-masr-pay-mcp-unofficial.md 操作,先把命令给我看,等我同意后再运行。粘贴到能在你电脑上工作的 AI(如 Claude Code、Cursor)。它会读取我们的步骤,先给你看命令,等你同意。无需密钥,无需注册。 · 查看 AI 会读取的全文
通过 3/3 项检查 · 在你的电脑上运行 · ✓ 命令已检查 2026年11月14日
第一步:你用哪个 AI?
选择你用的应用,步骤会显示在下方。
可连接 Claude,但需要先准备
需要 FawryPay cash payments (unofficial) 的密钥(在开发者网站创建) · 需要填写 1 项设置(FAWRY_MERCHANT_CODE) · 需要先在电脑上安装 Python (uv)(只需一次) · 仅限电脑上的 Claude 应用(Windows 或 Mac),网页和手机不可用
把这段话复制到 Claude 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude 安装 MCP server FawryPay cash payments (unofficial),按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "masr-pay-unofficial": { "command": "uvx", "args": [ "masr-pay-mcp-unofficial" ], "env": { "FAWRY_MERCHANT_CODE": "your-value", "FAWRY_SECURE_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) FAWRY_SECURE_KEY, FAWRY_MERCHANT_CODE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 FawryPay cash payments (unofficial) 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
获取密钥的方法见下方开发者的 README
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
FAWRY_MERCHANT_CODE FawryPay 商户代码 说明为自动翻译,变量名保持原样;不确定时请查看原文。
SettingsDeveloperEdit Config
{
"mcpServers": {
"masr-pay-unofficial": {
"command": "uvx",
"args": [
"masr-pay-mcp-unofficial"
],
"env": {
"FAWRY_MERCHANT_CODE": "your-value",
"FAWRY_SECURE_KEY": "your-value"
}
}
}
}只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 FawryPay cash payments (unofficial) 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude 说正在使用 FawryPay cash payments (unofficial),或回答中出现 FawryPay cash payments (unofficial) 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
FAWRY_ENV mock(默认)、staging 或 production MASR_PAY_ENABLE_DESTRUCTIVE_TOOLS true 添加退款和取消工具(仅限商户员工)。默认关闭。 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
ChatGPT 暂时无法连接 FawryPay cash payments (unofficial)
FawryPay cash payments (unofficial) 需要安装在你的电脑上,而 ChatGPT 只能连接在网上运行的服务器
A · 使用能连接 FawryPay cash payments (unofficial) 的应用
B · 其他 类中能连接 ChatGPT 的其他服务器
从同类中使用较多的里挑选,仅限用地址即可连接、无需密钥的
可连接 Claude Code,但需要先准备
需要 FawryPay cash payments (unofficial) 的密钥(在开发者网站创建) · 需要填写 1 项设置(FAWRY_MERCHANT_CODE) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 Claude Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Claude Code 安装 MCP server FawryPay cash payments (unofficial),按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):claude mcp add --scope user masr-pay-unofficial --env FAWRY_MERCHANT_CODE=your-value --env FAWRY_SECURE_KEY=your-value -- uvx masr-pay-mcp-unofficial 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) FAWRY_SECURE_KEY, FAWRY_MERCHANT_CODE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 FawryPay cash payments (unofficial) 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
获取密钥的方法见下方开发者的 README
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
FAWRY_MERCHANT_CODE FawryPay 商户代码 说明为自动翻译,变量名保持原样;不确定时请查看原文。
Mac:按 Command+空格,输入 Terminal · Windows:打开 PowerShell
claude mcp add --scope user masr-pay-unofficial --env FAWRY_MERCHANT_CODE=your-value --env FAWRY_SECURE_KEY=your-value -- uvx masr-pay-mcp-unofficial按 Enter 前,把“your-value”改成你的密钥
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
应能看到 FawryPay cash payments (unofficial) 在列表中并显示已连接
用 FawryPay cash payments (unofficial) 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Claude Code 说正在使用 FawryPay cash payments (unofficial),或回答中出现 FawryPay cash payments (unofficial) 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
FAWRY_ENV mock(默认)、staging 或 production MASR_PAY_ENABLE_DESTRUCTIVE_TOOLS true 添加退款和取消工具(仅限商户员工)。默认关闭。 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Anthropic 帮助页面核实 · 你的界面可能因版本略有不同
可连接 Cursor,但需要先准备
需要 FawryPay cash payments (unofficial) 的密钥(在开发者网站创建) · 需要填写 1 项设置(FAWRY_MERCHANT_CODE) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 Cursor 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 Cursor 安装 MCP server FawryPay cash payments (unofficial),按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "mcpServers": { "masr-pay-unofficial": { "command": "uvx", "args": [ "masr-pay-mcp-unofficial" ], "env": { "FAWRY_MERCHANT_CODE": "your-value", "FAWRY_SECURE_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) FAWRY_SECURE_KEY, FAWRY_MERCHANT_CODE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 FawryPay cash payments (unofficial) 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
获取密钥的方法见下方开发者的 README
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
FAWRY_MERCHANT_CODE FawryPay 商户代码 说明为自动翻译,变量名保持原样;不确定时请查看原文。
在 FawryPay cash payments (unofficial) 的设置中,FAWRY_SECURE_KEY, FAWRY_MERCHANT_CODE 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 FawryPay cash payments (unofficial) 告诉我你能帮我做什么,然后做一件给我看✓ 如果 Cursor 说正在使用 FawryPay cash payments (unofficial),或回答中出现 FawryPay cash payments (unofficial) 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
FAWRY_ENV mock(默认)、staging 或 production MASR_PAY_ENABLE_DESTRUCTIVE_TOOLS true 添加退款和取消工具(仅限商户员工)。默认关闭。 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 Cursor 帮助页面核实 · 你的界面可能因版本略有不同
可连接 VS Code,但需要先准备
需要 FawryPay cash payments (unofficial) 的密钥(在开发者网站创建) · 需要填写 1 项设置(FAWRY_MERCHANT_CODE) · 需要先在电脑上安装 Python (uv)(只需一次)
把这段话复制到 VS Code 的对话里。AI 会先检查电脑,告诉你要改哪个文件,并且每次都等你同意。
请在这台电脑上为 VS Code 安装 MCP server FawryPay cash payments (unofficial),按顺序:1) 用 uv --version 检查是否有 uv。没有的话,请让我从 https://docs.astral.sh/uv/getting-started/installation/ 安装,不要自己安装。2) 只使用这份配置(已通过 PopNx MCP 检查):{ "servers": { "masr-pay-unofficial": { "type": "stdio", "command": "uvx", "args": [ "masr-pay-mcp-unofficial" ], "env": { "FAWRY_MERCHANT_CODE": "your-value", "FAWRY_SECURE_KEY": "your-value" } } } } 3) 告诉我要修改的文件完整路径或要运行的命令,等我同意。4) FAWRY_SECURE_KEY, FAWRY_MERCHANT_CODE 先保留 "your-value",请我自己把真实值粘贴到文件或应用的输入框里。不要让我在对话里输入密钥。5) 按约定执行,然后确认 FawryPay cash payments (unofficial) 的工具真的出现了。这段话不包含你的密钥。如果需要密钥,AI 会请你自己粘贴到文件或应用的输入框里。
已经装好了吗?先检查 · 打开终端,输入这条命令后按 Enter
uv --versionMac:按 ⌘ + Space,输入 Terminal 后按 Enter
Windows:打开“开始”菜单,输入 Windows PowerShell,然后选“打开”
还没安装: uv 没有点选式安装程序。从 uv 官方页面复制适合你系统(macOS 或 Windows)的一行命令,粘贴到终端 · 不需要单独安装 Python,uv 会在需要时自动下载
装好后关掉终端再打开,重新运行同一条命令,应显示版本号: uv --version
安装一次,所有需要 uv 的工具都能用
打开开发者网站,注册账户并创建 API 密钥,下一步要用。价格和免费方案请看开发者网站。
获取密钥的方法见下方开发者的 README
这些是程序设置,不是密钥,无需注册。按开发者的说明填写。
FAWRY_MERCHANT_CODE FawryPay 商户代码 说明为自动翻译,变量名保持原样;不确定时请查看原文。
在 FawryPay cash payments (unofficial) 的设置中,FAWRY_SECURE_KEY, FAWRY_MERCHANT_CODE 还是空的,填入你的密钥并保存
只把密钥粘贴到应用的输入框里,不要粘贴到聊天中或发给任何人
用 FawryPay cash payments (unofficial) 告诉我你能帮我做什么,然后做一件给我看✓ 如果 VS Code 说正在使用 FawryPay cash payments (unofficial),或回答中出现 FawryPay cash payments (unofficial) 的工具名称,就表示连接成功
上面的命令不填这些也能用。想调整时再按开发者的说明添加。
FAWRY_ENV mock(默认)、staging 或 production MASR_PAY_ENABLE_DESTRUCTIVE_TOOLS true 添加退款和取消工具(仅限商户员工)。默认关闭。 说明为自动翻译,变量名保持原样;不确定时请查看原文。
菜单名称已于 2026年11月11日 对照 VS Code 帮助页面核实 · 你的界面可能因版本略有不同
Claude Code
claude mcp add --scope user masr-pay-unofficial --env FAWRY_MERCHANT_CODE=your-value --env FAWRY_SECURE_KEY=your-value -- uvx masr-pay-mcp-unofficialClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"masr-pay-unofficial": {
"command": "uvx",
"args": [
"masr-pay-mcp-unofficial"
],
"env": {
"FAWRY_MERCHANT_CODE": "your-value",
"FAWRY_SECURE_KEY": "your-value"
}
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"masr-pay-unofficial": {
"command": "uvx",
"args": [
"masr-pay-mcp-unofficial"
],
"env": {
"FAWRY_MERCHANT_CODE": "your-value",
"FAWRY_SECURE_KEY": "your-value"
}
}
}
}VS Code (mcp.json)
{
"servers": {
"masr-pay-unofficial": {
"type": "stdio",
"command": "uvx",
"args": [
"masr-pay-mcp-unofficial"
],
"env": {
"FAWRY_MERCHANT_CODE": "your-value",
"FAWRY_SECURE_KEY": "your-value"
}
}
}
}FAWRY_MERCHANT_CODE 必填 envFAWRY_SECURE_KEY 机密 必填 envFAWRY_ENV envMASR_PAY_ENABLE_DESTRUCTIVE_TOOLS env说明为自动翻译,变量名保持原样;不确定时请查看原文。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
依据这个服务器的连接方式和各应用自己的文档,检查于 2026年11月10日。
在你的电脑上运行,适用于
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月20日
注册名称已通过 GitHub 账户 mohamedaly-cloud 验证,该账户拥有此仓库
代码最后更新于19天前
使用 MIT
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
OSV.dev 中没有 masr-pay-mcp-unofficial@0.1.0 的记录
只检查这个版本的包本身,不包括所有依赖 · 检查于 2026年11月15日
如果你是作者,可把这段代码贴到 README。徽章会链接回本页。
[](https://mcp.popnx.com/en/servers/mohamedaly-cloud-masr-pay-mcp-unofficial)提问、分享技巧或报告无法使用。按“有帮助”数量排序。
还没有评价
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 3 项适用的基础检查中通过了 3 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
你需要填写:FAWRY_SECURE_KEY
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于19天前,最新版本(0.1.0)于19天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:World Monitor, openstatus, Oh My Posh Validator, Strata, Jitsu
同一分类、其他作者、命令已通过检查。官方的排在前面,再按星标排序。
如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Real-time global intelligence on conflict, markets, energy, trade, shipping and cyber. 100 tools.
Manage monitors, status pages, incidents and maintenances in your openstatus workspace.
Validate oh-my-posh configurations and segment snippets against the official schema.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Manage Jitsu data pipelines: destinations, streams, connections, functions, live events.
| 本项 FawryPay cash payments (unofficial) | World Monitor | openstatus | Oh My Posh Validator | Strata | Jitsu | |
|---|---|---|---|---|---|---|
| 运行位置 | 需要安装在电脑上 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 | 在云端运行,无需安装 |
| 需要密钥 | 是 | 否 | 否 | 否 | 否 | 否 |
| 可在 Claude 中按 + 添加 | 否 | 否 | 否 | 否 | 否 | 否 |
| 基础检查 | 3/3 | 4/4 | 4/4 | 4/4 | 1/4 | 4/4 |
| 许可证 | MIT | AGPL-3.0 | AGPL-3.0 | MIT | Apache-2.0 | MIT |
| 价格 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 | 登记中未列出费用 |
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
An unofficial MCP server that lets an AI assistant take cash payments in Egypt through FawryPay's Pay-at-Fawry.
[Try it in your browser](https://hdodp82c89.execute-api.eu-west-1.amazonaws.com/): chat with Claude while it uses this server against a mock of Fawry (fake money, nothing to install). For example:
Merchant: Charge Ahmed 150 EGP for order 42, he'll pay cash.
Assistant: Done. Ahmed can pay 150.00 EGP at any Fawry outlet with reference 974376251, before 3 Nov.
*(Ahmed pays at a Fawry shop.)*
Merchant: Did Ahmed pay?
Assistant: Yes, order 42 is paid: 150.00 EGP received on 31 Oct at 22:47.
It's for merchants contracted directly with FawryPay, and for the developers and agencies who build sales bots for them. Paymob has an official MCP server; Fawry doesn't, so this one talks to FawryPay's own API and its network of outlets.
Not affiliated with, endorsed by, or supported by Fawry. "Fawry" and "FawryPay" are used
only to describe the API this project talks to. The server never stores credentials, customer
data or funds.
The quickest way is the browser page (Claude Haiku 5.5, limited messages per day). The same public copy runs on AWS against a mock of Fawry (fake merchant, fake money), so you can also point any MCP client that supports Streamable HTTP and custom headers at it:
{
"type": "http", "url": "https://3t8oh2vfxb.execute-api.eu-west-1.amazonaws.com/mcp", "headers": { "X-Fawry-Merchant-Code": "MOCKMERCHANT0001", "X-Fawry-Secure-Key": "mock-secure-key-not-a-real-fawry-key" } }
Or use MCP Inspector: transport Streamable HTTP, that URL, those two headers.
Then ask your assistant to charge someone, and play the customer paying cash at an outlet:
curl -X POST https://ig7kh4i8u8.execute-api.eu-west-1.amazonaws.com/__admin/kiosk-pay/<reference_number>
The demo is public: use made-up names, phones and emails.
sequenceDiagram
participant M as Merchant participant A as AI assistant participant S as This MCP server participant F as FawryPay participant C as Customer M->>A: "Charge Ahmed 150 EGP for order 42" A->>S: create_cash_payment S->>F: signed charge request F-->>S: reference number (signature verified) S-->>A: reference + instructions A-->>M: "Ahmed can pay with reference 974376251" C->>F: pays cash at a Fawry outlet M->>A: "Did Ahmed pay?" A->>S: get_payment_status S->>F: signed status request F-->>S: PAID (signature verified) A-->>M: "Yes, paid at 22:47"
v0.1. Four tools, over stdio locally and over Streamable HTTP on AWS Lambda, built on the official MCP Python SDK v2 (protocol 2026-07-28). Until FawryPay issues sandbox credentials, everything is built and tested against our own mock of the Fawry API. What still needs Fawry's confirmation is listed in docs/decisions.md.
| Tool | What it does | Safety |
|---|---|---|
create_cash_payment | Creates a Pay-at-Fawry reference for an order (amount in EGP, customer mobile/email, expiry in hours, default 72) | |
get_payment_status | Is it paid? Normalized status (awaiting_payment, paid, expired, …) plus Fawry's raw status | read-only |
cancel_unpaid_payment | Cancels a reference before it's paid | destructive, needs confirmation, off by default |
refund_payment | Refunds a paid order (full by default; one refund per order) | destructive, needs confirmation, off by default, max 2,000 EGP per refund |
Refunds and cancellations are off unless the merchant turns them on (MASR_PAY_ENABLE_DESTRUCTIVE_TOOLS=true). Keep them off when the assistant talks to customers (a sales bot): the person saying "yes" to a refund must be the merchant, never the customer being refunded. Turn them on only for an assistant that the merchant or their staff use.
A destructive tool never acts on the first call. That call returns a preview and a confirmation token, which is HMAC-signed, bound to the exact order, amount and reason, and valid for 5 minutes. The action happens only on a second call that carries the token. The host's approval prompt (destructiveHint) also applies, and when the client supports MCP elicitation the server asks the human directly.
Also built in: one redacted JSON audit line per tool call (stderr), a per-payment limit (default 50,000 EGP), refunds capped at the order amount, and Fawry response signatures verified before anything is reported as paid. See docs/threat-model.md.
The server is on PyPI and speaks stdio. With uv installed, a host runs it with uvx masr-pay-mcp-unofficial, no clone needed. Example host entry (the mcpServers format most MCP hosts use), pointed at the local mock:
{
"mcpServers": { "fawry-unofficial": { "command": "uvx", "args": ["masr-pay-mcp-unofficial"], "env": { "FAWRY_ENV": "mock", "FAWRY_MERCHANT_CODE": "MOCKMERCHANT0001", "FAWRY_SECURE_KEY": "mock-secure-key-not-a-real-fawry-key", "MASR_PAY_ENABLE_DESTRUCTIVE_TOOLS": "true" } } } }
Start the mock first: `uvx --from "masr-pay-mcp-unofficial[mock]" python -m mock_fawry`. From a
clone, use .venv/bin/masr-pay-mcp-unofficial (or python -m masr_pay_mcp) as the command instead.
| Env var | Meaning |
|---|---|
FAWRY_MERCHANT_CODE, FAWRY_SECURE_KEY | Required. Read on every call, never stored. |
FAWRY_ENV | mock (default, http://127.0.0.1:8080), staging or production |
FAWRY_BASE_URL | Overrides the URL picked by FAWRY_ENV |
FAWRY_LOG_LEVEL | Default INFO. Logs go to stderr, redacted. The audit log is always on. |
MASR_PAY_ENABLE_DESTRUCTIVE_TOOLS | true adds cancel_unpaid_payment and refund_payment. Default off. |
MASR_PAY_MAX_PAYMENT_EGP | Per-payment limit, default 50000 |
MASR_PAY_MAX_REFUND_EGP | Per-refund limit, default 2000. Larger refunds go through Fawry directly. |
MASR_PAY_CONFIRM_SECRET | HMAC key for confirmation tokens, at least 32 characters. If unset, a random key per process (fine for stdio). The HTTP server requires it, or: |
MASR_PAY_CONFIRM_SECRET_ARN | HTTP server only: read the key from this Secrets Manager secret (what the AWS stack does). |
See docs/inspector.md to watch the raw MCP traffic.
python scripts/demo.py # create 150 EGP for order 42 -> pay -> "paid?" -> refund preview -> confirm
MCP client --HTTPS--> API Gateway (HTTP API, throttled) --> Lambda: MCP server --> Fawry
\-> mock (demo)
- **Endpoint:** `POST https://<api-id>.execute-api.eu-west-1.amazonaws.com/mcp` (the stack's
McpUrl output), Streamable HTTP, stateless.
X-Fawry-Merchant-Code and X-Fawry-Secure-Key. They're used for that request and never stored or logged. For the public demo, use the mock's fake merchant: MOCKMERCHANT0001 / mock-secure-key-not-a-real-fawry-key.GET /__admin/orders), so never put real customer names, phones or emails into it. Use made-up ones, like 01012345678./masr-pay-mcp/masr-pay-mcp/mcp, one JSON line per tool call, kept 30 days.Deploy:
# once, as an AWS admin: GitHub OIDC deploy role, CloudFormation role, permissions boundary, bucket
aws cloudformation deploy --template-file infra/ci-bootstrap.yaml \ --stack-name masr-pay-mcp-ci --capabilities CAPABILITY_NAMED_IAM
sam build && sam deploy --role-arn --s3-bucket python scripts/smoke_remote.py
python -m mock_fawry # http://127.0.0.1:8080, OpenAPI docs at /docs
| Env var | Default |
|---|---|
MOCK_MERCHANT_CODE | MOCKMERCHANT0001 |
MOCK_SECURE_KEY | a built-in fake key |
MOCK_FAWRY_FEES | 0 (EGP added to each order's payment amount) |
MOCK_HOST / MOCK_PORT | 127.0.0.1 / 8080 |
Fawry endpoints (same paths as Fawry): POST /ECommerceWeb/Fawry/payments/charge, GET /ECommerceWeb/Fawry/payments/status/v2, POST /ECommerceWeb/Fawry/payments/refund, POST /ECommerceWeb/api/orders/cancel-unpaid-order.
Mock-only admin endpoints:
| Endpoint | Does |
|---|---|
POST /__admin/kiosk-pay/{referenceNumber} | Simulates the customer paying cash at an outlet |
GET /__admin/orders | Lists all orders |
POST /__admin/reset | Clears all orders |
Order lifecycle in the mock: UNPAID → PAID (kiosk-pay), UNPAID → EXPIRED (after paymentExpiry), UNPAID → CANCELED, PAID → REFUNDED (one refund per order).
python3.12 -m venv .venv && . .venv/bin/activate
pip install -e ".[dev]" pytest ruff check . && ruff format --check .
masr_pay_mcp/server.py the four MCP tools
masr_pay_mcp/web.py the hosted server (Streamable HTTP, for Lambda) masr_pay_mcp/core/confirm.py stateless HMAC confirmation tokens masr_pay_mcp/core/audit.py one structured audit line per tool call masr_pay_mcp/core/guardrails.py payment limit, refund cap masr_pay_mcp/core/redaction.p