Stp Spei

Finance and commerce

STP/SPEI, Mexican instant bank transfers.

Your AI app calls the Stp Spei MCP server, which does the finance and commerce work and sends the result back to the chat.

About Stp Spei

Stp Spei is a community MCP server from codespar, filed in our directory under finance and commerce. STP/SPEI, Mexican instant bank transfers.

Stp Spei runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-stp-spei@0.2.0-alpha.3 and talks to it over standard input and output. It needs STP_API_KEY and STP_COMPANY set before Stp Spei starts.

Stp Spei is listed in the official MCP registry as io.github.codespar/mcp-stp-spei, version 0.2.0-alpha.3.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-stp-spei
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-stp-spei

How to set up Stp Spei

  1. Install Node.js on the machine that runs your AI app, because Stp Spei starts with npx and downloads its package on first run.
  2. Create STP_API_KEY and STP_COMPANY for Stp Spei in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Stp Spei to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Stp Spei tools to confirm the connection.
  5. Run one read-only task with Stp Spei first, and keep your app asking before each tool call until the results look right.

Stp Spei compared with similar servers

  • Stripe by codespar has fewer GitHub stars than Stp Spei (278 against 278); both are community servers, and both run locally.
  • Stone by codespar has fewer GitHub stars than Stp Spei (278 against 278); both are community servers, and both run locally.
  • Stripe Acp by codespar has fewer GitHub stars than Stp Spei (278 against 278); both are community servers, and both run locally.

Before you connect Stp Spei

  • Give Stp Spei its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Stp Spei tool call until you trust what it does with them.
  • Treat text that Stp Spei fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Stp Spei on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Stp Spei

How marketing and sales teams put Stp Spei to work, by company size. Pick the size closest to yours and start Stp Spei on one use case.

Small business

  • A small business can ask Stp Spei which products and customers drive margin, then plan promotions around them.
  • Owners can use Stp Spei to check refunds, failed payments and churn reasons without opening three dashboards.
  • Stp Spei runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Stp Spei to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Stp Spei to check spend against budget each week and move money to what's working.
  • Start Stp Spei on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Stp Spei read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Stp Spei to answer revenue questions by channel and region with figures finance signs off on.
  • Stp Spei is a community server, so have security review the code and pin a version before Stp Spei touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Stp Spei README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

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

Variable Required Description
STP_API_KEY Yes API key from STP
STP_COMPANY Yes Company identifier
MCP_HTTP No Set to "true" to enable HTTP transport
MCP_PORT No HTTP port (default: 3000)

Tools (18)

Tool Purpose
create_transfer Create a SPEI transfer
get_transfer Get transfer details by ID
list_transfers List transfers with filters
cancel_transfer Cancel a pending SPEI orden by clave_rastreo (only works while orden is pending)
get_balance Get account balance
list_account_balances List balances for all company accounts
validate_account Validate a CLABE account number against the receiving bank (online check)
validate_clabe Validate CLABE structure and checksum locally (no API call).
list_banks List participating SPEI banks
lookup_bank_by_code Look up a participating bank by its ABM/SPEI code (first 3 digits of CLABE)
get_cep Get CEP (Comprobante Electronico de Pago) for transfer validation
register_beneficiary Register a beneficiary account
create_refund Create a SPEI refund/devolución for a previously received transfer
list_refunds List devoluciones (refunds) by date range
conciliation_report Get transactions reconciliation report by date (all received + sent ordenes)
register_webhook Register a webhook URL to receive STP event notifications
list_webhooks List registered webhooks for the company
delete_webhook Delete 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

Questions about Stp Spei

What is the Stp Spei MCP server?

STP/SPEI, Mexican instant bank transfers. Stp Spei is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Stp Spei MCP server?

Add Stp Spei to your AI app's MCP config with the command npx -y @codespar/mcp-stp-spei@0.2.0-alpha.3. In Claude Code, run claude mcp add --transport stdio codespar-stp-spei -- npx -y @codespar/mcp-stp-spei@0.2.0-alpha.3. To run Stp Spei this way you need Node.js installed.

Does Stp Spei need an API key?

Yes. Stp Spei expects STP_API_KEY and STP_COMPANY to be set. Create the key for Stp Spei in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Stp Spei an official MCP server?

No. Stp Spei is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Stp Spei access to company data.

What license is Stp Spei under?

Stp Spei is released under the MIT license, according to its GitHub repository. The license covers the code of Stp Spei; the service it connects to has its own terms.