Zen

io.github.krystiangw由 GitHub 账号 krystiangw 发布v0.1.1更新于 Oct 24, 2026

Unofficial MCP server for the ZEN.com Payment Gateway: payment links, transactions, refunds.

发布方自己的服务:Agent Rynku - Warsaw Stock Exchange (GPW) data for your agent

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

面向 ZEN.com 支付网关的非官方 MCP 服务器,让助手创建支付链接、查询交易与提现,并办理退款。

可以做什么
  • 列出终端的支付方式与支持的货币
  • 查询交易、支付链接和提现,并申请对账报表
  • 创建托管支付链接和二维码,无需接触卡号数据
  • 捕获或取消交易,办理全额或部分退款
  • 创建提现和客户记录
  • 在本地校验 ZEN IPN webhook 签名
适用场景
适合让助手操作 ZEN.com 商户账户:生成结账链接、查看交易或提现状态、核对报表,或在对话中处理退款与提现。可用模拟模式在没有商户账户的情况下先行评估。
运行要求
通过 npx 在本机运行,需要 Node.js 18 或更高版本。非模拟模式需要 ZEN_API_KEY(终端 API 密钥),写操作需要 ZEN_PAYWALL_SECRET,校验 webhook 需要 ZEN_IPN_SECRET。可选 ZEN_ENV(默认 sandbox)、ZEN_BASE_URL、ZEN_MOCK 和 ZEN_HASH_ALG。实际使用还需 ZEN 商户账户。
安装前请注意
该项目为非官方实现,开发时未接入真实商户账户,生产使用前应依据 ZEN 最新 API 文档核对端点与签名细节。写操作会转移或退回资金:退款、捕获、取消和提现均被标记为破坏性操作,请保持人工确认并采用最小权限凭据。密钥仅从环境变量读取。README 中包含开通 ZEN 企业账户的推荐链接。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Zen,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

ZEN MCP

[npm version] [License: MIT]

An MCP server that lets AI assistants work with the ZEN.com Payment Gateway: hosted payment links, transaction lookup, refunds, payouts, and reporting.

Project page

Unofficial. This project is not affiliated with, endorsed by, or maintained by ZEN.com.

What it does

Read-only tools:

  • List terminal payment methods and documented currencies.
  • Look up transactions, payment links, and payouts.
  • List payment links and request reconciliation reports.
  • Verify IPN webhook signatures locally.

Write tools:

  • Create hosted payment links and QR codes without handling card data.
  • Capture or cancel transactions and issue full or partial refunds.
  • Create payouts and customer records.

Disclaimer

This integration was built from public ZEN documentation without access to a live merchant account. Endpoint versions, request fields, response fields, signing details, and webhook behavior must be checked against ZEN's current OpenAPI or Postman collection before production use. Mock mode is included for evaluation without an account.

Install

Add the published package to Claude Code:

sh
claude mcp add zen --env ZEN_API_KEY=your_terminal_api_key -- npx -y @krystiangw/zen-mcp

For Claude Desktop, add this entry to its MCP configuration:

json
{  "mcpServers": {    "zen": {      "command": "npx",      "args": ["-y", "@krystiangw/zen-mcp"],      "env": {        "ZEN_API_KEY": "your_terminal_api_key",        "ZEN_PAYWALL_SECRET": "your_paywall_secret",        "ZEN_IPN_SECRET": "your_ipn_secret",        "ZEN_ENV": "sandbox"      }    }  }}

Configuration

VariableRequiredDescription
ZEN_API_KEYOutside mock modeTerminal API Key sent in Authorization without a Bearer prefix
ZEN_PAYWALL_SECRETWrite operationsCheckout/paywall secret used to sign request bodies
ZEN_IPN_SECRETWebhook verificationIPN secret used only by verify_webhook_signature
ZEN_ENVNosandbox (default) or production
ZEN_BASE_URLNoAPI base URL override; takes priority over ZEN_ENV
ZEN_MOCKNo1 or true enables deterministic offline responses
ZEN_HASH_ALGNosha224, sha256 (default), sha384, or sha512

In the ZEN merchant panel, go to my.zen.com → Shop settings → Terminal to find the Terminal API Key. Use sandbox first; the default API host is api.zen-test.com, although sandbox availability and onboarding requirements should be confirmed with ZEN.

No merchant account yet? You can open a ZEN business account. That is a referral link: it credits the author of this project if you sign up through it, and costs you nothing. Every other link in this README is a plain one.

Tools

NameTypeDescription
list_payment_methodsReadList payment methods for the terminal
get_transactionReadGet a transaction by ZEN or merchant ID
list_payment_linksReadList hosted payment links
get_payment_linkReadGet one hosted payment link
get_payoutReadGet a payout by ZEN ID
download_reportReadRequest a report download
list_supported_currenciesReadList documented supported currencies
verify_webhook_signatureReadVerify a ZEN IPN signature locally
create_payment_linkWriteCreate a hosted checkout link and QR code
refund_transactionWrite, destructiveIssue a full or partial refund
capture_transactionWrite, destructiveCapture an authorized transaction
cancel_transactionWrite, destructiveCancel a transaction
create_payoutWrite, destructiveSend an outbound payout
create_customerWriteCreate a customer record

Security

  • Tools are read-only by default; operations that move or reverse money are marked destructive for MCP clients.
  • Secrets are read only from environment variables and are never tool arguments.
  • Payment acceptance uses ZEN-hosted links, so this server does not collect or transmit card numbers.
  • The signing algorithm follows public ZEN documentation, but nested-object and array flattening are not fully specified publicly. Verify it against the live API.
  • Verify every IPN webhook signature with ZEN_IPN_SECRET before trusting its contents.
  • Use least-privilege terminal credentials and keep human confirmation enabled for write tools.

Demo without an account

Run the server with deterministic canned API responses:

sh
ZEN_MOCK=1 ZEN_IPN_SECRET=demo npx -y @krystiangw/zen-mcp

verify_webhook_signature does real cryptography instead of calling the API, so it needs a secret even in mock mode. Any value works for a demo.

From a development checkout:

sh
npm installnpm run buildZEN_MOCK=1 ZEN_IPN_SECRET=demo npm run inspect

Development

Requires Node.js 18 or newer.

sh
npm installnpm run typechecknpm run buildnpm testZEN_MOCK=1 ZEN_IPN_SECRET=demo npm run inspect

Roadmap

  • Raw card charges only after a deliberate PCI/security design; they are excluded from the MVP.
  • Recurring and one-click payments after the tokenization flow is verified.
  • Consumer ZEN features such as cashback and personal cards if ZEN publishes a supported API.
  • Remote Streamable HTTP transport and OAuth after the stdio MVP.

License

MIT

来源:README.md,提交 fabbdb7

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Agentrynku 集成