
Interswitch Mcp Server
io.github.Dairus01由 GitHub 帳號 Dairus01 發布v0.1.3更新於 Oct 27, 2026
MCP server for Interswitch APIs: payments, transfers, Verve cards, airtime, and paycodes.
概覽
在本機執行的 MCP 伺服器,讓 AI 助理呼叫 Interswitch 的支付、轉帳、金融卡、通話費、付款碼、借貸與代理銀行 API。
- 可以做什麼
- 發起支付、建立支付連結、查詢交易狀態、依參考號取得交易,以及發起與查詢退款
- 列出帳單機構與方案、驗證客戶、支付帳單與加值服務帳單、通話費儲值與申請 ePIN
- 發起單筆或批次銀行轉帳、解析銀行帳戶、列出銀行代碼、重新查詢轉帳
- 建立、查詢與停用無卡付款碼,包含批次建立
- 搜尋交易、取得交易詳情,以及 Card 360 的製卡、PIN、凍結解凍、餘額與卡片查詢作業
- 申請小額貸款、薪資借貸與價值融資,執行信用查詢,讀取客戶人口統計與財務歷史
- 適用情境
- 適合需要在桌面 MCP 用戶端中透過助理操作 Interswitch 支付與金融科技 API 的情境,例如查詢交易狀態、解析帳戶,或先在沙箱測試支付流程再接觸正式環境。
- 執行需求
- 透過 npx 或全域 npm 安裝並在本機執行,需要 Node.js v18+ 以及連線至 Interswitch 的網路。需要 INTERSWITCH_CLIENT_ID 與 INTERSWITCH_CLIENT_SECRET,以及商戶號、payable 碼、發起實體碼、終端機號等業務識別碼;Card 360、Transaction Search 與代理銀行各有獨立憑證。INTERSWITCH_ENV 選擇 sandbox(預設)或 production。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Interswitch Mcp Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Interswitch MCP Server
A Model Context Protocol (MCP) server that enables AI assistants to interact with Interswitch APIs for payments, transfers, VAS, cardless paycodes, Transaction Search, Card 360, lending, payouts, agency banking, and fintech card-processing utilities.
[!WARNING] Public Preview: This MCP server is currently in public preview. It supports both Interswitch sandbox and production environments, so use cautiously, start with read-only mode, and report any issues you encounter.
Quick Start
Install and run via npm (recommended):
Or install globally:
Or for local development, clone and build:
Then configure your MCP client to use the server (see Client Integration).
Requirements
- Node.js v18+
- npm or yarn
- Interswitch API credentials for the domains you want to use
- Required Interswitch merchant, payable, initiating entity, terminal, or domain-specific identifiers for your use case
Configuration Options
You can select the API environment with INTERSWITCH_ENV:
- Sandbox (default):
INTERSWITCH_ENV=sandbox - Production:
INTERSWITCH_ENV=production
Security note: Production mode uses real Interswitch production endpoints. If
INTERSWITCH_ENV=production, valid production credentials are configured,INTERSWITCH_READ_ONLY=false, and a write tool is called withconfirm: true, the server can make real production API calls.
For safer first-time setup, start in read-only mode:
When you are authorized and ready to allow live writes, set:
Client Integration
The Interswitch MCP Server works with any MCP-compatible client. Below is the standard configuration schema used by most clients (Claude Desktop, ChatGPT Desktop, Cursor, Windsurf, VS Code, Claude Code, etc.).
Using npm (recommended)
For npm-installed server:
For production, change the environment values intentionally:
Using a local build
If you've cloned and built the server locally:
[!IMPORTANT] When setting
command: "node", you should ensure you're using Node v18+. If you are using a package manager, you might need to get the path of your Node binary by running this command in your CLI:Linux and MacOS
Windows
Once you have the path, use it as the value of the MCP Server command in the JSON configuration. e.g.,
command: "path/to/installation/bin/node"
Where to add this configuration
How It Works
The Interswitch MCP Server exposes Interswitch API domains to AI assistants through dedicated MCP tools. The server does not parse an OpenAPI file at runtime; instead, it provides curated, typed tools for the supported Interswitch domains.
Architecture Diagram
Each tool:
- Validates its input with a strict schema
- Applies confirmation and read-only safety gates
- Selects the configured sandbox or production base URL
- Uses the correct authentication system for the domain
- Calls the Interswitch API only when the tool is invoked
- Redacts sensitive fields from returned data
- Returns a normalized MCP response
Authentication systems
Available Tools
Available Resources
Example
When you ask your AI assistant something like "Use Interswitch to initialize a 5000 NGN payment for [email protected]", here's what happens behind the scenes:
- The assistant selects
isw_initialize_payment - It passes explicit money input such as
amountNaira: 5000 - For write operations, it must include
confirm: true - The server validates the request, converts the amount safely where required, authenticates with Interswitch, and calls the configured sandbox or production endpoint
- You get a normalized response with redacted raw data
Prompt recommendation
To get the best results when using this MCP server, be specific in your prompts and always include "Interswitch" in your requests.
Good prompts:
- "Initialize an Interswitch payment for 50000 NGN for [email protected]."
- "Check the Interswitch transaction status for reference order-1001."
- "Resolve Interswitch bank account 0123456789 with bank code 058."
- "Send an Interswitch single transfer for 1000 NGN with confirm true."
- "Read the Interswitch response code resource."
Less effective prompts:
- "List my transactions" (unclear which service and reference/search criteria to use)
- "Send money" (missing beneficiary, bank, amount, and confirmation details)
- "Pay this bill" (missing biller, package, customer, and amount details)
Being explicit ensures the LLM narrows down to the right tool quickly and reduces ambiguity.
Production Safety
This server can route to production Interswitch endpoints when INTERSWITCH_ENV=production is set. Production readiness depends on correct credentials, Interswitch account permissions, and your organization's operational controls.
Safety behavior built into the server:
- Write tools require
confirm: true - High-risk sensitive read tools require
confirm: true INTERSWITCH_READ_ONLY=trueblocks all writes before any external API call- Low-risk reads do not require confirmation
- Raw responses are redacted before being returned
- Tokens and secrets are never intentionally returned in tool output
- Card PIN payloads are encrypted locally when the required RSA public key is configured
- Production startup warnings are written to stderr instead of silently hiding risky configuration
Recommended production rollout:
- Configure production credentials but keep
INTERSWITCH_READ_ONLY=true - Verify startup warnings and config summary
- Test safe read-only tools first
- Confirm domain credentials for the exact tools you intend to use
- Switch
INTERSWITCH_READ_ONLY=falseonly when live writes are authorized - Require human review before prompts that include
confirm: true
Development
Run locally (without building)
For local development and testing, you can run the TypeScript source directly:
Run with MCP Inspector
Build
Run tests
Type-check
Preview npm package contents
Troubleshooting
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
See CONTRIBUTING.md for more details.
License
MIT
來源:README.md,提交 c10b0cc
工具
0版本歷史
1- v0.1.3最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分