Skip to main content
UN

UnblockPay

v0.2.2API Key

Fiat-to-stablecoin on/off-ramp: convert BRL, MXN, or USD to USDC and back. Your agent bridges traditional finance and crypto rails.

13 tools2 env vars🌐 GLOBALstable on npm

What your agent can do

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

  • create_customer β€” Create an individual or business customer (KYC mother). Business customers require date_of_incorporation; both types use 3-letter ISO country codes (BRA/USA/MEX). Returns { id, status: 'pending', verification: { verification_link } }.
  • list_customers β€” List customers under the operator's API key. `limit` is mandatory per UnblockPay's pagination contract.
  • verify_customer β€” Trigger the KYC verification check for a customer. Sandbox auto-progresses business customers through the hosted KYC flow once documents are uploaded. Idempotent β€” returns 422 'customer_cannot_be_verified' when already approved (safe to ignore).
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_customer", { /* ... */ });

Install

terminal
$ npm install @codespar/mcp-unblockpay

Quickstart

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

claude_desktop_config.json
{
  "mcpServers": {
    "unblockpay": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-unblockpay"
      ],
      "env": {
        "UNBLOCKPAY_API_KEY": "<your_unblockpay_api_key>"
      }
    }
  }
}

After restart, your agent can call any of the 13 tools below β€” try create_customer first.

Environment variables Β· 2

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

UNBLOCKPAY_API_KEY
requiredsecret

API key from the UnblockPay dashboard

UNBLOCKPAY_BASE_URL
optional

Optional API base URL. Defaults to https://api.unblockpay.com/v1. Set to https://api.sandbox.unblockpay.com/v1 to hit the sandbox.

Available tools Β· 13

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

WRITEcreate_customer
Create an individual or business customer (KYC mother). Business customers require date_of_incorporation; both types use 3-letter ISO country codes (BRA/USA/MEX). Returns { id, status: 'pending', verification: { verification_link } }.
READlist_customers
List customers under the operator's API key. `limit` is mandatory per UnblockPay's pagination contract.
READverify_customer
Trigger the KYC verification check for a customer. Sandbox auto-progresses business customers through the hosted KYC flow once documents are uploaded. Idempotent β€” returns 422 'customer_cannot_be_verified' when already approved (safe to ignore).
READget_verification_details
Poll the KYC verification state for a customer. Returns { customer_status: 'pending' | 'approved' | 'rejected' | 'partially_rejected', verification_steps: [...] }.
WRITEcreate_wallet
Create a stablecoin wallet under an APPROVED customer. blockchain selects the network (solana β†’ USDC; ethereum/polygon β†’ USDC/USDT; tron β†’ USDT). Customer must be 'approved' before this succeeds (422 customer_not_allowed otherwise).
READlist_wallets
List wallets under the operator's API key.
WRITEcreate_external_account
Register a fiat receiver account (BRL Pix, USD wire, EUR SEPA, MXN SPEI). Skippable for BRL Pix payouts β€” pass pix_key + document directly on /payout instead.
READlist_external_accounts
List external accounts under the operator's API key.

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-unblockpay` 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.
UnblockPay β€” MCP server Β· 13 tools | CodeSpar