
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 分