Easypaydirect Mcp

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

Read-only MCP server for the Easy Pay Direct (EPD) / NMI-family payment gateway Query API.

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

概览

AI 生成的概览

只读 MCP 服务器,让助手查询 Easy Pay Direct / NMI 系列支付网关的交易、订阅、循环计划和客户保险库记录。

可以做什么
按交易 ID、日期范围、状态、操作类型、支付类型、来源、邮箱或订单号查询和搜索交易。获取并列出循环订阅,可按创建或更新时间范围筛选。列出循环计费计划,或按计划 ID 获取单个计划。获取或列出已存储的客户保险库记录,可按日期范围筛选。
适用场景
适合用自然语言询问网关的支付记录,例如查找某客户上周失败的交易,或确认某个订阅是否仍然有效,而无需登录商户后台。
运行要求
通过 npx 以 stdio 在本地运行,需要 Node.js 18+;也可用 Docker 容器运行并保持标准输入开启。需要环境变量 NMI_SECURITY_KEY(建议使用只读密钥),可选 NMI_API_URL,默认指向 NMI 主机,可设为 EPD 或白标网关主机。需要能访问网关的网络。
安装前请注意
服务器在环境变量中保存网关安全密钥;请使用只读密钥,切勿提交到代码库。它是独立的非官方客户端,与 Easy Pay Direct 或 NMI 无关联。文档称其只读,无法扣款、退款、作废或修改保险库,但密钥本身可能拥有更大权限,应谨慎限定范围。

安装

在 SourceWeft 中

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

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

其他 MCP 客户端

参照 仓库 中的启动说明。

README

easypaydirect-mcp

[npm] [CI] [docs] [good first issues] [license: MIT]

📖 Documentation: https://praveendias1180.github.io/easypaydirect-mcp/

Unofficial, read-only Model Context Protocol server for the Easy Pay Direct (EPD) / NMI-family payment gateway.

Give an AI assistant (Claude Desktop, Claude Code, or any MCP client) safe, read-only access to your gateway's transactions, subscriptions, recurring plans, and Customer Vault records — so you can ask questions like "find the failed transactions for this customer last week" or "is this subscription still active?" in plain language.

Easy Pay Direct is built on the NMI / Network Merchants gateway platform, so this server works with any NMI white-label gateway — just point it at your gateway's host. EPD is the headline example, not the limit.

⚠️ Not affiliated with, endorsed by, or sponsored by Easy Pay Direct or NMI. "Easy Pay Direct", "EPD", and "NMI" are trademarks of their respective owners. This is an independent open-source client for their public Query API.


Why read-only?

This server talks only to the gateway's Query API (/api/query.php) — the reporting endpoint. It has no code path to the transaction endpoint (transact.php), so it cannot charge a card, issue a refund, void a transaction, or modify the vault. An LLM connected to this server can look, but it cannot touch money. See docs/security.md.

Write operations may arrive in a future major version — always opt-in, off by default, and loudly gated.


Install & run

Requires Node.js 18+.

bash
# no install needed — run straight from npmnpx easypaydirect-mcp

The server speaks MCP over stdio and expects two environment variables:

VariableRequiredDescription
NMI_SECURITY_KEY✅Your gateway API security key (a read-only key is recommended). Merchant portal → Settings → Security Keys.
NMI_API_URL—Gateway API base URL. Defaults to https://secure.nmi.com. For EPD/white-labels, set this to your gateway's host.

See docs/configuration.md for how to find your key and host.

Run with Docker

No local Node.js needed. Build the image from the repository root, then run it with -i — MCP talks over stdio, so the container needs stdin kept open:

bash
docker build -t easypaydirect-mcp .
docker run --rm -i \  -e NMI_SECURITY_KEY=your_read_only_security_key \  -e NMI_API_URL=https://secure.nmi.com \  easypaydirect-mcp

Or keep the variables in an env file (--env-file .env). .env is already git-ignored — never commit a real key.

Connect it to Claude

Claude Desktop — add to claude_desktop_config.json (see examples/claude-desktop-config.json):

json
{  "mcpServers": {    "easypaydirect": {      "command": "npx",      "args": ["-y", "easypaydirect-mcp"],      "env": {        "NMI_SECURITY_KEY": "your_read_only_security_key",        "NMI_API_URL": "https://secure.nmi.com"      }    }  }}

Claude Code:

bash
claude mcp add easypaydirect \  -e NMI_SECURITY_KEY=your_read_only_security_key \  -e NMI_API_URL=https://secure.nmi.com \  -- npx -y easypaydirect-mcp

To use the Docker image instead, swap the command — a bare -e NAME forwards the variable into the container:

bash
claude mcp add easypaydirect \  -e NMI_SECURITY_KEY=your_read_only_security_key \  -e NMI_API_URL=https://secure.nmi.com \  -- docker run --rm -i -e NMI_SECURITY_KEY -e NMI_API_URL easypaydirect-mcp

Full walkthrough: docs/getting-started.md.

Claude Code plugin (server + skill)

The plugin installs the MCP server and an Agent Skill that teaches Claude how to read gateway data correctly — for example that a successful ACH sale is only submitted, not paid, and that EPD timestamps are UTC.

Set the key in your shell (the plugin reads it from the environment), then install:

bash
export NMI_SECURITY_KEY=your_read_only_security_keyexport NMI_API_URL=https://secure.nmi.com   # optional; your EPD / white-label host
/plugin marketplace add praveendias1180/easypaydirect-mcp/plugin install easypaydirect@easypaydirect-mcp

Using another client? The skill is a plain SKILL.md — add it to any tool that supports Agent Skills.

Tools

All tools are read-only. Full reference in docs/tools.md.

ToolWhat it does
get_transactionFetch one transaction by gateway transaction ID.
search_transactionsSearch transactions by date range + filters (condition, action type, payment type, source, email, order id).
get_subscriptionFetch one recurring subscription by ID.
list_subscriptionsList recurring subscriptions, optionally by created/updated date range.
list_recurring_plansList recurring billing plans (or one by plan_id).
get_customer_vault_recordFetch one stored Customer Vault record by ID.
list_customer_vaultList stored Customer Vault records, optionally by date range.

Develop

bash
git clone https://github.com/praveendias1180/easypaydirect-mcp.gitcd easypaydirect-mcpnpm installnpm run build      # compile TypeScript to dist/npm run typecheck  # type-check only

Local run against the MCP Inspector:

bash
npx @modelcontextprotocol/inspector node dist/index.js

Architecture and how tools map to the Query API: docs/nmi-api-mapping.md.

Roadmap

Planned / under consideration — contributions welcome (see open issues):

  • Tests — unit suite with recorded Query API fixtures (#1)
  • Friendlier dates — accept ISO-8601 in date filters (#2)
  • More filters — merchant-defined fields on search_transactions (#3)
  • Better errors — map NMI response codes to actionable messages (#4)
  • Distribution — publish-on-release automation (#8)
  • Docs — response-field reference (#9)

Read-only stays the default posture — any write support would be a separate, opt-in, gated major version.

See the changelog for released changes.

Contributing

Contributions are welcome — this aims to be a small, dependable, read-only MCP server. See CONTRIBUTING.md for the ground rules and dev setup.

New here? Start with a good first issue — each one has context, a task checklist, file pointers, and acceptance criteria. Have a question? Open a Discussion.

License

MIT © the easypaydirect-mcp contributors.

来源:README.md,提交 0bd2a9d

工具

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

版本历史

2
  1. v0.1.3最新Sep 18, 2026
  2. v0.1.2Sep 16, 2026

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

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

  • 已声明认证方式10 分

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

  • 已列出工具15 分

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

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