Skip to main content
ST

STP SPEI

v0.2.0-alpha.1API Keyalpha

Mexican instant bank transfers via SPEI. Your agent sends and receives MXN in real time through the national payment system.

18 tools2 env vars๐Ÿ‡ฒ๐Ÿ‡ฝ Mexicoalpha โ€” pending validation

Install

terminal
$ npm install @codespar/mcp-stp-spei@alpha

Quickstart

Add this entry to your claude_desktop_config.json (or any MCP-compatible client config).

claude_desktop_config.json
{
  "mcpServers": {
    "stp-spei": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-stp-spei@alpha"
      ],
      "env": {
        "STP_API_KEY": "<your_stp_api_key>",
        "STP_COMPANY": "<your_stp_company>"
      }
    }
  }
}

After restart, your agent can call any of the 18 tools below โ€” try create_transfer first.

Environment variables ยท 2

Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.

STP_API_KEY
requiredsecret

API key for STP

STP_COMPANY
required

Company identifier for STP

Available tools ยท 18

Each tool is independent โ€” your agent loads only what it needs to reduce context and response time.

WRITEcreate_transfer
Create a SPEI transfer
READget_transfer
Get transfer details by ID
READlist_transfers
List transfers with filters
DELETEcancel_transfer
Cancel a pending SPEI orden by clave_rastreo (only works while orden is pending)
READget_balance
Get account balance
READlist_account_balances
List balances for all company accounts
WRITEvalidate_account
Validate a CLABE account number against the receiving bank (online check)
WRITEvalidate_clabe
Validate CLABE structure and checksum locally (no API call). Returns bank code, plaza, account, and check digit

Compatible frameworks

MCP is a protocol โ€” any framework that speaks it can mount this server.

Claude Agent SDKAnthropic
OpenAI AgentsOpenAI
Vercel AI SDKVercel
LangChainLangChain
LlamaIndexLlamaIndex
CrewAICrewAI
MastraMastra
Any MCP clientProtocol

Frequently asked questions

All credentials are encrypted at rest in an isolated vault scoped per organization. OAuth2 tokens are automatically refreshed before expiry. Your agent code never sees raw secrets โ€” it receives scoped, short-lived session tokens.
Servers โ€” Every LatAm commerce API your agent needs | CodeSpar