erip-mcp
MCP server for Belarus ERIP/E-POS/KROK payments via aggregator APIs, offering platform-specific tools for Express-Pay, bePaid, WEBPAY, Hutki Grosh, and Assist to manage invoices and payments.
README
erip-mcp
MCP server for Belarus ERIP / E-POS / KROK payments via aggregator APIs.
Tools are platform-specific (bepaid_erip_*, express_pay_*, webpay_*, …) — not a generic payment facade.
Disclaimer: This software is not a payment service provider, not affiliated with ОАО «НКФО «ЕРИП», and is not an official ERIP API. You need a merchant contract with an aggregator where required. See docs/legal-research-belarus.md (not legal advice).
Status: what is ready vs not
| Area | Status | Notes |
|---|---|---|
| Express-Pay ERIP/E-POS tools | Ready (verified) | Live e2e against public sandbox (sandbox-api.express-pay.by) — list / create / get / status / cancel |
| Express-Pay QR tool | Implemented, not in e2e yet | Code path exists; not covered by the live test suite |
| bePaid ERIP tools | Implemented, unverified live | Unit tests with mocked HTTP only. Needs a real shop with ERIP enabled |
| bePaid KROK tools | Implemented, unverified live | Needs shop registered for KROK |
| WEBPAY ERIP checkout builder | Implemented, unverified live | Builds signed form; needs merchant storeid/secret |
| Hutki Grosh ERIP bills | Implemented, unverified live | Cookie session API; no public sandbox |
| Assist checkout builders | Implemented, unverified live | Form fields for test.paysec.by / paysec.by |
| MCP stdio + docs resources | Ready | Works without credentials (docs-only mode) |
| Production / live money | Use at your own risk | Default is sandbox; production writes need ERIP_MCP_ALLOW_WRITE=1 |
| Official НКФО ERIP protocol | Out of scope | NDA / dedicated channel |
Practical recommendation: start with Express-Pay to try the MCP. Treat other providers as experimental until verified against your merchant account.
Run verified Express-Pay e2e:
ERIP_MCP_LIVE=1 npm test -- src/providers/express-pay/e2e.test.ts
vs bepaid-mcp
| Package | Focus |
|---|---|
| erip-mcp (this) | ERIP / E-POS / KROK via aggregators (Express-Pay verified; others untested live) |
| bepaid-mcp | bePaid cards (capture, void, refund, tokenize, subscriptions) |
Install / run
npx -y erip-mcp
Or from source:
npm install
npm run build
node dist/index.js
Cursor / Claude Desktop
Recommended (Express-Pay public sandbox):
{
"mcpServers": {
"erip": {
"command": "npx",
"args": ["-y", "erip-mcp"],
"env": {
"EXPRESS_PAY_TOKEN": "a75b74cbcfe446509e8ee874f421bd66",
"EXPRESS_PAY_SECRET_WORD": "sandbox.expresspay.by",
"ERIP_MCP_ENV": "sandbox"
}
}
}
}
bePaid (unverified — needs your shop credentials + ERIP/KROK enabled):
{
"mcpServers": {
"erip": {
"command": "npx",
"args": ["-y", "erip-mcp"],
"env": {
"BEPAID_SHOP_ID": "YOUR_SHOP_ID",
"BEPAID_SECRET_KEY": "YOUR_SECRET_KEY",
"ERIP_MCP_ENV": "sandbox"
}
}
}
}
You can enable several providers at once; tools register per present credentials.
See also examples/cursor-mcp.json.
Without credentials the server still exposes documentation resources (erip://docs/...).
Environment
| Variable | Required | Description |
|---|---|---|
EXPRESS_PAY_TOKEN |
for Express-Pay tools | API token |
EXPRESS_PAY_SECRET_WORD |
if signatures required | HMAC secret (sandbox: sandbox.expresspay.by) |
EXPRESS_PAY_API_BASE_URL |
no | Defaults from ERIP_MCP_ENV |
BEPAID_SHOP_ID |
for bePaid tools | Shop ID from bePaid backoffice |
BEPAID_SECRET_KEY |
for bePaid tools | Secret key |
BEPAID_API_BASE_URL |
no | Default https://api.bepaid.by |
WEBPAY_STORE_ID |
for WEBPAY tools | Merchant store id |
WEBPAY_SECRET_KEY |
for WEBPAY tools | Signature secret |
WEBPAY_PAYMENT_BASE_URL |
no | Sandbox/prod payment URL |
HUTKIGROSH_USER |
for Hutki tools | API login |
HUTKIGROSH_PASSWORD |
for Hutki tools | API password |
HUTKIGROSH_API_BASE_URL |
no | Default https://www.hutkigrosh.by/API/v1 |
ASSIST_MERCHANT_ID |
for Assist tools | Merchant id |
ASSIST_PAYMENT_BASE_URL |
no | Default test/prod Assist host |
ERIP_MCP_ENV |
no | sandbox (default) or production |
ERIP_MCP_ALLOW_WRITE |
production writes | Set 1 to allow create/cancel/delete in production |
Tools
Express-Pay ERIP / E-POS — verified in sandbox e2e*
| Tool | API | Live e2e |
|---|---|---|
express_pay_erip_list_invoices |
GET /v1/invoices |
yes |
express_pay_erip_create_invoice |
POST /v1/invoices |
yes |
express_pay_erip_get_invoice |
GET /v1/invoices/{id} |
yes |
express_pay_erip_get_invoice_status |
GET /v1/invoices/{id}/status |
yes |
express_pay_erip_cancel_invoice |
DELETE /v1/invoices/{id} |
yes |
express_pay_epos_get_qrcode |
GET /v1/qrcode/getqrcode |
not yet |
*Against Express-Pay’s documented public sandbox tokens, not a private merchant account.
amount is in major units (e.g. 10.5 → API 10,50).
bePaid ERIP — code present, live unknown
| Tool | API | Live e2e |
|---|---|---|
bepaid_erip_create_payment |
POST /beyag/payments (type: erip) |
no |
bepaid_erip_get_payment |
GET /beyag/payments/:uid or ?order_id= |
no |
bepaid_erip_delete_payment |
DELETE /beyag/payments/:uid |
no |
amount is in minor units (e.g. 1000 = 10.00 BYN).
bePaid uses the same API host with "test": true (no separate sandbox URL). The shop must have ERIP enabled.
bePaid KROK — code present, live unknown
| Tool | API | Live e2e |
|---|---|---|
bepaid_krok_create_payment |
POST /beyag/transactions/payments (method.type: krok) |
no |
bepaid_krok_get_transaction |
GET /beyag/transactions/:uid |
no |
WEBPAY ERIP — form builder (no remote call)
| Tool | Notes | Live e2e |
|---|---|---|
webpay_erip_build_checkout |
SHA1 signature + wsb_tab=erip; POST fields to WEBPAY |
no |
Hutki Grosh ERIP — code present, live unknown
| Tool | API | Live e2e |
|---|---|---|
hutkigrosh_erip_create_bill |
POST /Invoicing/Bill |
no |
hutkigrosh_erip_get_bill |
GET /Invoicing/Bill({id}) |
no |
hutkigrosh_erip_get_bill_status |
GET /Invoicing/BillStatus({id}) |
no |
hutkigrosh_erip_delete_bill |
DELETE /Invoicing/Bill({id}) |
no |
hutkigrosh_erip_list_bills |
GET /Invoicing/Bills(...) |
no |
hutkigrosh_erip_get_qrcode |
GET /Invoicing/BillQRCode(...) |
no |
Assist — form builders (no remote call)
| Tool | Notes | Live e2e |
|---|---|---|
assist_build_payment_checkout |
Fields for /pay/order.cfm |
no |
assist_build_create_bill |
Fields for /bill/createbill.cfm |
no |
Resources
erip://docs/overviewerip://docs/legalerip://docs/bepaid-erip
Roadmap
- Live verification of bePaid / WEBPAY / Hutki / Assist / KROK with real merchant accounts
- E2E for
express_pay_epos_get_qrcode - No generic
create_paymentfacade
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。