🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@codespar/mcp-transak

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-transak

MCP server for Transak — fiat-to-crypto on/off-ramp across ~170 countries with multi-chain support (Partner API)

latest
npmnpm
Version
0.2.0-alpha.3
Version published
Maintainers
2
Created
Source

@codespar/mcp-transak

MCP server for Transak — fiat↔crypto on/off-ramp across ~170 countries with multi-chain coverage (Ethereum, Solana, Polygon, BSC, Bitcoin, Arbitrum, Optimism, Base, and more).

Transak is the natural peer to MoonPay: both solve the same problem (turn local fiat into on-chain crypto, and back), but each has its own partner list, country coverage, and pricing curve. Bundling both lets an agent-commerce flow pick the best route per corridor instead of pinning to one provider.

Why both MoonPay and Transak

  • Coverage: MoonPay lists ~160 countries, Transak ~170. The overlaps are large but the edges are meaningful — certain LatAm, MENA, and APAC corridors are stronger on one side than the other.
  • Partners: each has a distinct roster of DEX/wallet/dapp partners, which changes KYC reuse and custody posture for a given buyer.
  • Pricing: fees, FX spread, and min/max vary per corridor. An agent can call get_quote on both, compare, and route.
  • Redundancy: if one provider rate-limits, de-risks a country, or throws a KYC hold, the other keeps the flow alive.

This MCP server focuses on the Partner API (server-to-server), not the widget. Agents create orders directly, poll status, and reconcile via webhooks.

Status

0.1.0-alpha.1. The public currency, payment-method, and quote endpoints were verified live against api-stg.transak.com. The partner-order endpoint paths (/api/v2/orders, /api/v2/orders/{id}, /cancel, /api/v2/partner/me) follow the documented conventions but a few are only fully visible inside Transak's partner dashboard — expect minor tweaks once you pair this against a real key.

Tools (18)

ToolPurpose
create_orderCreate a Transak order.
get_orderGet a Transak order by its Transak order id.
list_ordersList Transak orders for the partner account.
update_orderUpdate a Transak order after creation.
cancel_orderCancel a Transak order.
get_quoteGet a fiat↔crypto price quote (public, no auth).
get_order_limitsGet the min and max trade amount for a fiat+crypto+country combination — what's the smallest USD a US buyer...
list_fiat_currenciesList all fiat currencies Transak supports, with per-currency payment methods, limits, and country restricti...
list_crypto_currenciesList all crypto assets Transak supports, including network, decimals, pay-in/pay-out eligibility, and juris...
list_payment_methodsList payment methods available for a given fiat currency (card, Apple Pay, Google Pay, SEPA, UPI, Pix, wire...
list_countriesList the countries Transak serves, with allowed fiat currencies, payment methods, and KYC requirements per...
list_network_feesList the network/gas fees Transak charges (or estimates) per crypto+network combination.
get_partner_accountGet the authenticated partner's account profile (name, api key info, configured webhooks, default currencies).
get_partner_balanceGet the partner's settlement balance(s) — Transak holds partner liquidity per fiat to fund SELL payouts and...
refresh_access_tokenMint a fresh short-lived access-token from the partner api-secret.
get_kyc_statusGet the KYC status of a buyer the partner has previously sent through Transak.
get_user_limitsGet the current per-user transaction limits granted by Transak based on the user's KYC tier and country (da...
verify_webhook_signatureLocally verify the HMAC-SHA256 signature on a Transak webhook delivery.

Environment

VarRequiredSecretDescription
TRANSAK_API_KEYyesnoPartner API key (also passed as partnerApiKey on public endpoints)
TRANSAK_API_SECRETyesyesPartner API secret (sent as api-secret header)
TRANSAK_ACCESS_TOKENnoyesShort-lived access token (sent as access-token header if your partner tier requires it)
TRANSAK_ENVnonostaging (default) or production

Install

npm install @codespar/mcp-transak@alpha

Run (stdio)

TRANSAK_API_KEY=... TRANSAK_API_SECRET=... mcp-transak

Run (HTTP)

TRANSAK_API_KEY=... TRANSAK_API_SECRET=... mcp-transak --http
# POST http://localhost:3000/mcp

Docs

  • Transak: https://docs.transak.com
  • CodeSpar catalog: https://github.com/codespar/mcp-dev-latam

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:

  • TRANSAK_API_KEY (required) — Transak partner API key (from partner dashboard). Used as partnerApiKey query param on public quote endpoint and bundled with api-secret to mint the access-token for Partner API calls.
  • TRANSAK_API_SECRET (required, secret) — Transak partner API secret. Sent as the api-secret header to endpoints that require server-to-server authentication (and used to mint access tokens for order endpoints).
  • TRANSAK_ENV — Environment selector: 'staging' (default) targets https://api-stg.transak.com; 'production' targets https://api.transak.com.

Issue credentials at the provider's developer portal: https://docs.transak.com.

License

MIT

Keywords

mcp

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