Sign In

@codespar/mcp-stp-spei

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codespar/mcp-stp-spei

MCP server for STP/SPEI — Mexican instant bank transfers

latest
npmnpm
Version
0.2.0-alpha.3
Version published
Weekly downloads
59
5.36%
Maintainers
2
Weekly downloads
 
Created
Source

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

# Set your credentials
export STP_API_KEY="your-api-key"
export STP_COMPANY="your-company-id"

# Run via stdio
npx tsx packages/mexico/stp-spei/src/index.ts

# Run via HTTP
npx 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

  • STP API Docs

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

Keywords

stp

FAQs

Package last updated on 22 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts