Skip to main content
ST

STP SPEI

v0.2.0-alpha.2API 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

What your agent can do

STP SPEI gives your agent 18 tools it calls directly β€” pick the ones it needs, in Claude, Cursor, or any MCP client.

  • create_transfer β€” Create a SPEI transfer
  • get_transfer β€” Get transfer details by ID
  • list_transfers β€” List transfers with filters
Example call
// Your agent calls a tool directly β€” no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("create_transfer", { /* ... */ });

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

Run `npx -y @codespar/mcp-stp-spei` and add the config block above to your MCP client β€” Claude, Cursor, VS Code, or any MCP-compatible client. No build step, no SDK required. Prefer hosted? CodeSpar's managed tier runs it for you with auth handled.
STP SPEI β€” MCP server Β· 18 tools | CodeSpar