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 分