Mcp Stp Spei

io.github.codespar由 GitHub 账号 codespar 发布v0.2.0-alpha.3更新于 Oct 24, 2026

STP/SPEI — Mexican instant bank transfers

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

面向墨西哥即时银行转账系统 STP/SPEI 的本地 MCP 服务器,让助手创建、查询、取消和对账转账并管理账户。

可以做什么
创建、查询、列出和取消 SPEI 转账,并创建或列出退款(devoluciones)。查询单个或公司全部账户的余额。在本地或在线校验 CLABE 账号,列出参与银行并按代码查询银行。获取 CEP 付款凭证并按日期生成对账报告。注册、列出和删除用于接收 STP 事件通知的 webhook 地址。
适用场景
适合需要处理墨西哥 SPEI 支付的场景:准备或跟踪转账、查询余额、校验 CLABE、对账交易或配置 webhook 通知。目前为早期 alpha 版本,更适合评估和测试,而非生产支付流程。
运行要求
通过 npm 作为本地进程运行(安装 alpha 标签,并锁定确切版本)。需要以环境变量提供 STP_API_KEY 密钥和 STP_COMPANY 公司标识,凭据需从 STP 获取。可选的 MCP_HTTP 和 MCP_PORT 可启用 HTTP 传输。需要访问 STP API 的网络连接。
安装前请注意
该服务器可以调动资金:create_transfer、create_refund 和 cancel_transfer 会操作真实银行转账,允许写入前应仔细确认。它需要密钥 STP_API_KEY 和公司标识。README 标注为 alpha,接口路径尚未完全经过实际验证。注册 webhook 会把事件数据发送到你提供的地址。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Stp Spei,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

MCP STP/SPEI

Alpha release — published under the alpha npm dist-tag. Endpoint paths follow public docs and BACEN/provider conventions but have not been fully live-validated. Pin exact versions during 0.x.x-alpha. Install with npm install <pkg>@alpha.

MCP server for STP/SPEI — Mexican instant bank transfer system (equivalent to Brazil's PIX).

Quick Start

bash
# Set your credentialsexport STP_API_KEY="your-api-key"export STP_COMPANY="your-company-id"
# Run via stdionpx tsx packages/mexico/stp-spei/src/index.ts
# Run via HTTPnpx tsx packages/mexico/stp-spei/src/index.ts --http

Environment Variables

VariableRequiredDescription
STP_API_KEYYesAPI key from STP
STP_COMPANYYesCompany identifier
MCP_HTTPNoSet to "true" to enable HTTP transport
MCP_PORTNoHTTP port (default: 3000)

Tools (18)

ToolPurpose
create_transferCreate a SPEI transfer
get_transferGet transfer details by ID
list_transfersList transfers with filters
cancel_transferCancel a pending SPEI orden by clave_rastreo (only works while orden is pending)
get_balanceGet account balance
list_account_balancesList balances for all company accounts
validate_accountValidate a CLABE account number against the receiving bank (online check)
validate_clabeValidate CLABE structure and checksum locally (no API call).
list_banksList participating SPEI banks
lookup_bank_by_codeLook up a participating bank by its ABM/SPEI code (first 3 digits of CLABE)
get_cepGet CEP (Comprobante Electronico de Pago) for transfer validation
register_beneficiaryRegister a beneficiary account
create_refundCreate a SPEI refund/devolución for a previously received transfer
list_refundsList devoluciones (refunds) by date range
conciliation_reportGet transactions reconciliation report by date (all received + sent ordenes)
register_webhookRegister a webhook URL to receive STP event notifications
list_webhooksList registered webhooks for the company
delete_webhookDelete a registered webhook by ID

Auth

Uses API key + digital signature authentication. The API key is sent as a Bearer token, and the company identifier is included in requests. Obtain credentials from STP.

API Reference


Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

Authentication

Set these environment variables before launching the server:

  • STP_API_KEY (required, secret) — API key for STP
  • STP_COMPANY (required) — Company identifier for STP

Issue credentials at the provider's developer portal: https://stpmex.com/docs.

License

MIT

来源:packages/mexico/stp-spei/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.0-alpha.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分