Skip to main content
TR

Transak

v0.2.0-alpha.1API Keyalpha

Fiat↔crypto on/off-ramp (MoonPay competitor). Different partner ecosystem and pricing; bundle both for best-rate routing. Alpha on npm — 3 discovery endpoints verified live, 6 partner-order paths pending sandbox validation.

18 tools3 env vars🌐 GLOBALalpha — pending validation

Install

terminal
$ npm install @codespar/mcp-transak@alpha

Quickstart

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

claude_desktop_config.json
{
  "mcpServers": {
    "transak": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-transak@alpha"
      ],
      "env": {
        "TRANSAK_API_KEY": "<your_transak_api_key>",
        "TRANSAK_API_SECRET": "<your_transak_api_secret>"
      }
    }
  }
}

After restart, your agent can call any of the 18 tools below — try create_order first.

Environment variables · 3

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

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
requiredsecret

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
optional

Environment selector: 'staging' (default) targets https://api-stg.transak.com; 'production' targets https://api.transak.com.

Available tools · 18

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

WRITEcreate_order
Create a Transak order. Use isBuyOrSell='BUY' to onramp (fiat→crypto, funds delivered to walletAddress) or 'SELL' to offramp (crypto→fiat, payout to the linked bank account). Returns the order object with status, a widget/redirect URL if required, and the partner-side id.
READget_order
Get a Transak order by its Transak order id. Returns full status, fiat/crypto amounts, fees, tx hash (once on-chain), and current state.
READlist_orders
List Transak orders for the partner account. Filter by status, walletAddress, partnerOrderId, isBuyOrSell, or createdAt date range. Use this to reconcile webhook-driven state, run sweeps on pending orders, or pull a partner-period statement.
WRITEupdate_order
Update a Transak order after creation. Used for partner-side post-creation actions such as marking a SELL crypto deposit transaction hash, attaching/changing the partnerCustomerId, refreshing the redirectURL, or correcting the buyer email before KYC. Only mutable fields are accepted; immutable fields (amount, currency, network) require a fresh order.
DELETEcancel_order
Cancel a Transak order. Only works while the order is in a cancellable state (awaiting payment / pending). Completed or in-flight on-chain orders cannot be cancelled.
READget_quote
Get a fiat↔crypto price quote (public, no auth). Returns the rate, fees, min/max, delivery network, and the exact cryptoAmount the buyer receives for a given fiatAmount (or vice versa). Use this before calling create_order to show the user a price they can confirm.
READget_order_limits
Get the min and max trade amount for a fiat+crypto+country combination — what's the smallest USD a US buyer can spend on USDC/Polygon, and what's the cap before extra KYC kicks in? Public endpoint. Pair with get_quote so you can prevalidate amount before opening the widget.
READlist_fiat_currencies
List all fiat currencies Transak supports, with per-currency payment methods, limits, and country restrictions. Public endpoint — safe to call without credentials. Use as a discovery step before rendering a funding flow.

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