Transbank

Finance and commerce

MCP server for Transbank, Chile dominant card acquirer (Webpay Plus / Mall / OneClick).

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

About Transbank

Transbank is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for Transbank, Chile dominant card acquirer (Webpay Plus / Mall / OneClick).

Transbank runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-transbank@0.2.0-alpha.3 and talks to it over standard input and output. It needs TRANSBANK_COMMERCE_CODE and TRANSBANK_API_KEY_SECRET set before Transbank starts.

Transbank is listed in the official MCP registry as io.github.codespar/mcp-transbank, 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-transbank
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-transbank

How to set up Transbank

  1. Install Node.js on the machine that runs your AI app, because Transbank starts with npx and downloads its package on first run.
  2. Create TRANSBANK_COMMERCE_CODE and TRANSBANK_API_KEY_SECRET for Transbank in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Transbank 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 Transbank tools to confirm the connection.
  5. Run one read-only task with Transbank first, and keep your app asking before each tool call until the results look right.

Transbank compared with similar servers

  • Ucp by codespar has fewer GitHub stars than Transbank (278 against 278); both are community servers, and both run locally.
  • Transak by codespar has fewer GitHub stars than Transbank (278 against 278); both are community servers, and both run locally.
  • Unblockpay by codespar has fewer GitHub stars than Transbank (278 against 278); both are community servers, and both run locally.

Before you connect Transbank

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

Marketing use cases for Transbank

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

Small business

  • A small business can ask Transbank which products and customers drive margin, then plan promotions around them.
  • Owners can use Transbank to check refunds, failed payments and churn reasons without opening three dashboards.
  • Transbank 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 Transbank to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Transbank to check spend against budget each week and move money to what's working.
  • Start Transbank on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Transbank read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Transbank to answer revenue questions by channel and region with figures finance signs off on.
  • Transbank is a community server, so have security review the code and pin a version before Transbank 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

Transbank README

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

README.md

@codespar/mcp-transbank

MCP server for Transbank, Chile's dominant card acquirer.

Transbank is effectively default for Chilean commerce (state-origin roots, owned by a consortium of Chilean banks). Shipping this server is a prerequisite for any "CodeSpar covers LatAm" claim that includes Chile.

Two products are covered:

  • Webpay Plus, one-shot redirect payments (buy_order + amount, user is redirected to Webpay to pay).
  • Webpay OneClick Mall, tokenized recurring / card-on-file payments that can split across multiple merchant codes (the "mall" model).

Tools (19)

Tool Purpose
webpay_create_transaction Create a Webpay Plus transaction.
webpay_commit_transaction Commit a Webpay Plus transaction after the user has returned from the Webpay flow.
webpay_get_transaction_status Get the current status of a Webpay Plus transaction by token.
webpay_refund_transaction Refund a committed Webpay Plus transaction.
webpay_increase_amount Capture a previously authorized Webpay Plus transaction (partial-capture / deferred-capture flow).
webpay_capture_transaction Deferred-capture for a previously authorized Webpay Plus transaction.
webpay_mall_create_transaction Create a Webpay Mall transaction, one parent buy_order split across several seller commerce codes.
webpay_mall_commit_transaction Commit a Webpay Mall transaction after the user has returned.
webpay_mall_get_transaction_status Get the status of a Webpay Mall transaction by token (includes per-child details).
webpay_mall_refund_transaction Refund one child seller of a Webpay Mall transaction.
webpay_mall_capture_transaction Deferred-capture for one child seller inside a Webpay Mall transaction.
oneclick_create_inscription Start a OneClick Mall card-enrollment flow.
oneclick_finish_inscription Finalize a OneClick Mall enrollment after the user has returned.
oneclick_delete_inscription Delete (revoke) a stored OneClick Mall card for a user.
oneclick_authorize Charge a stored OneClick Mall card across one or more mall merchant codes.
oneclick_capture Capture a previously authorized OneClick Mall charge (deferred-capture flow).
oneclick_refund Refund a OneClick Mall charge.
oneclick_status Get the status of a OneClick Mall transaction by parent buy_order.
oneclick_get_transaction_by_buy_order Look up a OneClick Mall transaction by parent buy_order.

Install

npm install @codespar/mcp-transbank@alpha

Environment

TRANSBANK_COMMERCE_CODE="..."   # merchant commerce code (Tbk-Api-Key-Id)
TRANSBANK_API_KEY_SECRET="..."  # secret key (Tbk-Api-Key-Secret)
TRANSBANK_ENV="integration"     # 'integration' (default) or 'production'

Integration base URL: https://webpay3gint.transbank.cl Production base URL: https://webpay3g.transbank.cl

Authentication

Every request sends two headers:

Tbk-Api-Key-Id: <commerce_code>
Tbk-Api-Key-Secret: <api_key_secret>
Content-Type: application/json

The server handles headers automatically, you only configure the env vars.

Run

# stdio (default, for Claude Desktop, Cursor, etc)
npx @codespar/mcp-transbank

# HTTP (for server-to-server testing)
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-transbank

Webpay Plus flow

  1. Call webpay_create_transaction with buy_order, session_id, amount, return_url.
  2. Redirect user to url?token_ws=<token>.
  3. User pays at Webpay, is redirected back to return_url.
  4. Call webpay_commit_transaction with the returned token to actually charge.

OneClick Mall flow

  1. Call oneclick_create_inscription with username, email, response_url. Redirect user to url_webpay.
  2. After user returns, call oneclick_finish_inscription. Store the returned tbk_user against your user.
  3. To charge later, call oneclick_authorize with username, tbk_user, a parent mall buy_order, and a details array (one entry per child merchant).

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.

License

MIT

Questions about Transbank

What is the Transbank MCP server?

MCP server for Transbank, Chile dominant card acquirer (Webpay Plus / Mall / OneClick). Transbank 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 Transbank MCP server?

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

Does Transbank need an API key?

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

Is Transbank an official MCP server?

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

What license is Transbank under?

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