Skip to main content
The Afriex MCP server exposes the Afriex Business API as tools for AI assistants. It implements the Model Context Protocol (MCP), letting clients like Claude Desktop, Claude Code, and Cursor interact with the Afriex platform programmatically.

How it works

Each Afriex Business API endpoint becomes an individually callable MCP tool. An AI assistant can create customers, send transactions, look up balances, and more, all via natural language.

Authentication

You will need an Afriex Business API key from the dashboard. Connect your MCP client to https://mcp.afriex.com/mcp, then authenticate using one of two methods: Method 1: HTTP headers (recommended) Pass your API key directly in your MCP client config. The server captures these values and uses them for all subsequent Business API calls in the session:
HeaderRequiredDescription
x-afriex-api-keyYesYour Afriex Business API key
x-afriex-environmentNoproduction or development (defaults to development)
Method 2: authenticate tool After connecting, call the authenticate tool as your first action:
{
  "apiKey": "your-api-key",
  "environment": "production"
}
See Connecting MCP Clients for client-specific setup instructions.

Available Tools (22)

Authentication

ToolDescription
authenticateSet your API key and environment (production/development) for this session
session_infoView current session config: masked API key, environment, and base URL

Customers

ToolDescription
create_customerCreate a new customer with name, email, phone, and country code
list_customersRetrieve a paginated list of customers
get_customerGet a customer by ID
delete_customerDelete a customer by ID
update_customer_kycUpdate KYC information for a customer

Transactions

ToolDescription
create_transactionCreate a DEPOSIT, WITHDRAW, or SWAP transaction
list_transactionsRetrieve a paginated list of transactions
get_transactionGet a transaction by ID

Payment Methods

ToolDescription
create_payment_methodCreate a payment method (BANK_ACCOUNT, SWIFT, MOBILE_MONEY, UPI, INTERAC, WE_CHAT)
list_payment_methodsRetrieve a paginated list of payment methods
get_payment_methodGet a payment method by ID
delete_payment_methodDelete a payment method by ID
list_institutionsList banks/providers by country and channel
resolve_institution_codesResolve a SWIFT code or routing number to a bank name
resolve_payment_methodResolve recipient info by account number or phone
get_crypto_walletGet or create a crypto wallet (USDT/USDC, production only)
get_virtual_accountGet or create a virtual account (production only)

Organization

ToolDescription
get_balanceFetch wallet balances for specified currencies
get_ratesGet real-time exchange rates
topup_balanceTop up sandbox balance with a specified amount and currency (sandbox/staging only)