mcpField
M
mcp-unblockpay

mcp-unblockpay

Local
github.com/codesparFinance275Updated 5w ago

About mcp-unblockpay

mcp-unblockpay is an MCP server for UnblockPay, covering cross-border fiat and stablecoin flows across customers, wallets, quotes, pay-ins and payouts. It suits developers and finance teams who want AI tools to start cross-border payments.

Key features

  1. 01Customer and KYC verification management
  2. 02Stablecoin wallet creation and lookup
  3. 03FX and fee quote locking
  4. 04Fiat-to-stablecoin pay-ins
  5. 05Stablecoin-to-fiat payouts
  6. 06Transaction status lookup and cancellation

Use cases

  1. 01Starting BRL, USD, EUR or MXN cross-border payments through an AI assistant
  2. 02Checking and cancelling pending cross-border transactions
  3. 03Testing stablecoin pay-in and payout flows in a sandbox

MCP support

This is an MCP server that exposes 13 tools for customers, wallets, quotes and transactions to MCP clients. It uses an API key to access the UnblockPay v1 API.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"codespar-mcp-unblockpay": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-unblockpay"
],
"env": {
"UNBLOCKPAY_API_KEY": "<UNBLOCKPAY_API_KEY>",
"UNBLOCKPAY_BASE_URL": "<UNBLOCKPAY_BASE_URL>"
}
}
}
}
Run commandnpx -y @codespar/mcp-unblockpay
Environment variables to set
UNBLOCKPAY_API_KEYSecretAPI key from the UnblockPay dashboard
UNBLOCKPAY_BASE_URLOptional API base URL. Defaults to https://api.unblockpay.com/v1. Set to https://api.sandbox.unblockpay.com/v1 to hit the sandbox.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@codespar/mcp-unblockpay0.3.1

Tools

13

Saved tool list · updated 2w ago

ParameterTypeRequiredDescription
typeenumYesCustomer typeindividual | business
emailstringNo
tax_idstringNoCNPJ for BRA business, EIN for USA, RFC for MEX, etc.
addressobjectNo
address.citystringNo
address.statestringNo
address.countrystringNo3-letter ISO code
address.postal_codestringNo
address.street_line_1stringNo
address.street_line_2stringNo
countrystringYes3-letter ISO 3166-1 alpha-3 country code (BRA, USA, MEX)
last_namestringNoRequired when type=individual
first_namestringNoRequired when type=individual
phone_numberstringNoE.164 format, e.g. +5511999999999
date_of_birthstringNoISO date (YYYY-MM-DD). Required when type=individual
business_legal_namestringNoRequired when type=business
date_of_incorporationstringNoISO date (YYYY-MM-DD). REQUIRED when type=business

Details

From the project README

@codespar/mcp-unblockpay

MCP server for UnblockPay — fiat ↔ stablecoin cross-border via Customer → Wallet → Quote → Payin/Payout

npm License: MIT

Quick Start

Claude Desktop

Add to ~/.config/claude/claude_desktop_config.json:

{
  "mcpServers": {
    "unblockpay": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-unblockpay"],
      "env": {
        "UNBLOCKPAY_API_KEY": "your-key"
      }
    }
  }
}
Claude Code
claude mcp add unblockpay -- npx @codespar/mcp-unblockpay
Cursor / VS Code

Add to .cursor/mcp.json or .vscode/mcp.json:

{
  "servers": {
    "unblockpay": {
      "command": "npx",
      "args": ["-y", "@codespar/mcp-unblockpay"],
      "env": {
        "UNBLOCKPAY_API_KEY": "your-key"
      }
    }
  }
}

Tools (13)

ToolPurpose
create_customerCreate an individual or business customer (KYC mother). Business customers require date_of_incorporation.
list_customersList customers under the operator's API key (limit mandatory by the v1 pagination contract).
verify_customerTrigger the KYC verification check. Idempotent (returns 422 customer_cannot_be_verified when already approved).
get_verification_detailsPoll KYC state — returns customer_status: pending | approved | rejected | partially_rejected.
create_walletCreate a stablecoin wallet under an APPROVED customer.
list_walletsList wallets under the operator's API key.
create_external_accountRegister a fiat receiver account (BRL Pix, USD wire, EUR SEPA, MXN SPEI). Skippable for BRL Pix payouts via the pix_key + document shortcut on create_payout.
list_external_accountsList external accounts under the operator's API key.
create_quoteLock an FX + fee quote for 5 minutes. Pass amount on EITHER sender or receiver, not both.
create_payinFiat → stablecoin pay-in referencing a quote_id. Returns deposit instructions (<Pix Copy & Paste EMV> for BR).
create_payoutStablecoin → fiat payout referencing a quote_id. customer_id is REQUIRED at the top level.
get_transactionPoll transaction status. Lifecycle: awaiting_deposit → processing → completed (or failed / refunded / cancelled / error).
cancel_transactionCancel a transaction. Only valid while status is awaiting_deposit.

Authentication

UnblockPay uses an API key passed verbatim in the Authorization header (no Bearer prefix). The server sets that header for you — you just provide the key via UNBLOCKPAY_API_KEY.

Sandbox / Testing

UnblockPay provides a separate sandbox environment for testing. Point the server at it by setting UNBLOCKPAY_BASE_URL=https://api.sandbox.unblockpay.com/v1 and using a sandbox-issued API key.

Get your credentials
  1. Sign in at app.unblockpay.com (or follow the docs)
  2. Generate an API key in the dashboard
  3. Set the UNBLOCKPAY_API_KEY environment variable
  4. (Sandbox only) Also set UNBLOCKPAY_BASE_URL=https://api.sandbox.unblockpay.com/v1

Environment Variables

VariableRequiredDescription
UNBLOCKPAY_API_KEYYesAPI key from the UnblockPay dashboard
UNBLOCKPAY_BASE_URLNoDefaults to https://api.unblockpay.com/v1. Set to https://api.sandbox.unblockpay.com/v1 for sandbox.

Roadmap

The 13 tools above mirror UnblockPay's current v1 API. New tools are added as UnblockPay expands the surface.

Want to contribute? Open a PR or request a tool.

Links

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.