From alchemy-skills
Sets up MoonPay CLI via npm install, authenticates via email OTP, manages local encrypted wallets for Solana, Ethereum, Bitcoin, Tron. Use when auth fails, for login, or wallet create/import.
npx claudepluginhub moonpay/skills --plugin alchemy-skillsThis skill uses the workspace's default tool permissions.
```bash
Sets up MoonPay CLI as MCP server for Claude Desktop/Code, providing tools for wallet management, token search/swap/bridge/transfer, fiat on-ramps, and transactions.
Connects to EmblemVault for wallet-aware workflows on Solana, Ethereum, Base, BSC, Polygon, Hedera, Bitcoin with review-first, operator-controlled actions. Explains Emblem's unified browser and agent auth model.
Integrates Privy for authentication, embedded/smart wallets (ERC-4337), and agent payments (x402/MPP) in React/Next.js apps and Node.js backends. Use for crypto auth, Tempo chain, wallet policies, or agentic flows.
Share bugs, ideas, or general feedback.
npm i -g @moonpay/cli
This installs the mp (and moonpay) binary globally.
mp --version
mp --help
# Log in (sends OTP to email)
mp login --email user@example.com
# Verify OTP code
mp verify --email user@example.com --code 123456
# Check current user
mp user retrieve
# Log out
mp logout
The CLI manages local wallets stored encrypted in ~/.config/moonpay/wallets.json. Private keys are encrypted with AES-256-GCM using a random key stored in your OS keychain. No password required — keys never leave the machine.
# Create a new HD wallet (Solana, Ethereum, Bitcoin, Tron)
mp wallet create --name "my-wallet"
# Import from a mnemonic (all chains)
mp wallet import --name "restored" --mnemonic "word1 word2 ..."
# Import from a private key (single chain)
mp wallet import --name "imported" --key <hex-key> --chain ethereum
# List all local wallets
mp wallet list
# Get wallet details (by name or address)
mp wallet retrieve --wallet "my-wallet"
# Export mnemonic/key (interactive only — agents cannot run this)
mp wallet export --wallet "my-wallet"
# Delete a wallet (irreversible)
mp wallet delete --wallet "my-wallet" --confirm
mp user retrieve to check if authenticated.mp login --email <email>, then mp verify --email <email> --code <code>.mp wallet list to see local wallets.mp wallet create --name "default".Agents can log in without human intervention if they have access to the user's email. For example, with the gog CLI (Google Workspace):
# 1. Send OTP
mp login --email user@example.com
# 2. Read the OTP code from email
gog gmail search "Your MoonPay verification code" --max-results 1
# 3. Verify with the code
mp verify --email user@example.com --code <code>
This enables fully autonomous agent setup — no human in the loop.
~/.config/moonpay/wallets.json (encrypted, AES-256-GCM)moonpay-cli / encryption-key)~/.config/moonpay/credentials.json (encrypted, AES-256-GCM)~/.config/moonpay/config.json (base URL, client ID)wallet export requires an interactive terminal (TTY) — agents and scripts cannot extract secrets