MCP Server
The Unwall MCP server lets AI assistants like Claude, Cursor, and other MCP-compatible clients interact with your Unwall project directly — checking balances, sending payments, and making x402 API calls through natural language.What Is MCP?
The Model Context Protocol (MCP) is an open standard that lets AI assistants use external tools. Instead of writing code to call APIs, your AI assistant can use MCP tools as native capabilities. For example, you can ask Claude “What’s my wallet balance?” and it will call theget_balance tool automatically.
Installation
No global install is needed. The MCP server runs vianpx:
Claude Desktop Configuration
Add the following to your Claude Desktop configuration file (claude_desktop_config.json):
Cursor / VS Code
Add the MCP server in your editor’s MCP settings. The configuration is the same JSON format:Available Tools
The MCP server exposes the following tools to your AI assistant:| Tool | Description | API Equivalent |
|---|---|---|
get_balance | Check wallet balance | GET /v1/balance |
list_transactions | View transaction history | GET /v1/transactions |
pay | Make a payment (any rail) | POST /v1/pay |
get_usdc_deposit_address | Get funding address | GET /v1/stablecoin/address |
send_payment | Send ACH payment (deprecated) | POST /v1/payments |
x402_pay | x402 API call (deprecated) | POST /v1/x402/pay |
send_usdc | USDC transfer (deprecated) | POST /v1/usdc/transfer |
The
pay tool is the recommended way to make payments. It supports all three rails (x402, USDC transfer, fiat ACH) and auto-routes based on the recipient. The send_payment, x402_pay, and send_usdc tools are deprecated but still functional.Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
UNWALL_API_KEY | Yes | — | Your Unwall API token (aw_live_...) |
UNWALL_BASE_URL | No | https://api.unwall.xyz | API base URL (override for testing) |
Example Usage
Here is an example conversation with Claude using the Unwall MCP server:Checking balance
Checking balance
You: What’s my current wallet balance?Claude: Let me check your Unwall balance.Uses
get_balance toolYour project has 5.00 USDC available ($5.00 USD equivalent) with no pending transactions.Making an x402 payment
Making an x402 payment
You: Fetch the latest market data from https://api.example.com/v1/market using x402. Limit spending to 0.50 USDC.Claude: I’ll fetch the market data using an x402 payment.Uses
pay tool with recipient “https://api.example.com/v1/market” and max_amount_usdc 500000The request completed successfully. The API charged 0.05 USDC plus a 0.001 USDC platform fee. Here’s the market data:Sending a USDC transfer
Sending a USDC transfer
You: Send 10 USDC to 0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18 for the vendor invoice.Claude: I’ll send 10 USDC to that address.Uses
pay tool with recipient “0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18” and amount_usd 10.00Payment submitted. Transaction ID: tx_abc123. The transfer is processing on Base chain and should complete within a few minutes.Token Permissions
The MCP server inherits the permissions of the API token you provide. Make sure your token has the permissions your AI assistant needs:| Action | Required Permission |
|---|---|
| Check balance, view transactions | read |
| Send USDC or fiat payments | pay |
| Make x402 API calls | x402 |