SIBS Payment MCP
Enables AI agents to integrate the SIBS payment gateway, providing tools for creating checkouts, checking payment status, issuing refunds, and generating Multibanco references directly through natural language.
README
SIBS Payment MCP
A Model Context Protocol (MCP) server that exposes the SIBS payment gateway as tools for AI agents — enabling LLMs to create checkouts, verify payments, issue refunds, and generate Multibanco references natively in any MCP-compatible environment.
What It Does
Bridges the SIBS payment gateway to the MCP ecosystem. Any AI agent or LLM-powered tool running in an MCP-compatible host (Claude Desktop, n8n, custom agents) can:
- Check payment status in real time
- Create checkout sessions with configurable payment methods
- Capture, refund, or cancel authorised payments
- Generate Multibanco references for ATM/homebanking payment
- Initiate MB WAY push notifications to a customer's phone
Architecture
flowchart LR
A[AI Agent\nClaude / n8n] -->|MCP tool call| B[sibs-payment-mcp\nMCP Server]
B -->|REST API| C[SIBS Gateway\nAPI]
C -->|response| B
B -->|structured result| A
subgraph Tools
T1[sibs_create_checkout]
T2[sibs_payment_status]
T3[sibs_capture_payment]
T4[sibs_refund_payment]
T5[sibs_cancel_payment]
T6[sibs_generate_mb_reference]
T7[sibs_mbway_payment]
T8[sibs_test]
end
Tools (8 total)
| Tool | Description |
|---|---|
sibs_create_checkout |
Create a new checkout. Returns transactionID and hosted checkout URL |
sibs_payment_status |
Get payment state, amount, method, and timestamps by transaction ID |
sibs_capture_payment |
Capture an authorised payment — full or partial |
sibs_refund_payment |
Refund a captured payment — full or partial |
sibs_cancel_payment |
Cancel an authorised payment before capture |
sibs_generate_mb_reference |
Generate a Multibanco entity/reference for ATM payment |
sibs_mbway_payment |
Send MB WAY push to customer phone (351#912345678 format) |
sibs_test |
Validate credentials and connectivity |
Stack
| Component | Tool |
|---|---|
| Protocol | Model Context Protocol SDK |
| Language | TypeScript 5 + Node.js |
| Schema validation | Zod |
| Payment gateway | SIBS API (Portugal) |
| Build | tsc → dist/ |
Setup
Prerequisites
- Node.js 18+
- SIBS merchant account with API credentials
- MCP-compatible host (Claude Desktop, n8n, custom agent)
1. Install
git clone https://github.com/RobsonAdvincula/sibs-payment-mcp.git
cd sibs-payment-mcp
npm install
npm run build
2. Configure environment
SIBS_BASE_URL=https://stargate.sibs.pt/m001/v1
SIBS_BEARER_TOKEN=your_bearer_token
SIBS_CLIENT_ID=your_client_id
SIBS_TERMINAL_ID=your_terminal_id
3. Add to MCP host
Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"sibs-payment": {
"command": "node",
"args": ["/path/to/sibs-payment-mcp/dist/index.js"],
"env": {
"SIBS_BEARER_TOKEN": "...",
"SIBS_CLIENT_ID": "...",
"SIBS_TERMINAL_ID": "..."
}
}
}
}
n8n MCP Client node: point to the compiled dist/index.js with the same env vars.
Example Interactions
Create a payment and send MB WAY:
Agent: "Create a €29.99 checkout for customer +351912345678"
→ sibs_create_checkout({ amount: 2999, currency: "EUR", paymentMethods: ["MBWAY"] })
→ sibs_mbway_payment({ transactionId: "txn_xxx", amount: 2999, customerPhone: "351#912345678" })
Result: "MB WAY notification sent. Customer has 4 minutes to confirm."
Verify and refund:
Agent: "Check transaction txn_abc and refund if paid"
→ sibs_payment_status({ transactionId: "txn_abc" })
← { status: "Success", amount: 4999 }
→ sibs_refund_payment({ transactionId: "txn_abc" })
← { refunded: true }
Payment Methods Supported
CARD— Visa / MastercardMBWAY— MB WAY mobile paymentREFERENCE— Multibanco ATM referenceCOFIDIS— InstalmentsPAYPAL— PayPal
License
MIT — free to use, adapt, and build on.
Built by Robson Advincula — AI & Automation Consultant
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。