Skip to main content
MCP server CX Codex

mcp-moonpay — MCP server for Claude Code: MoonPay on- and off-ramp

Hands the agent MoonPay tools: quote and place buy or sell orders, check KYC status, and sign payment widget links.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add --env MOONPAY_API_KEY=<MOONPAY_API_KEY> --env MOONPAY_PUBLISHABLE_KEY=<MOONPAY_PUBLISHABLE_KEY> --env MOONPAY_SECRET_KEY=<MOONPAY_SECRET_KEY> --env MOONPAY_BASE_URL=<MOONPAY_BASE_URL> --env MOONPAY_BUY_WIDGET_URL=<MOONPAY_BUY_WIDGET_URL> --transport stdio moonpay -- npx -y @codespar/mcp-moonpay
Open on GitHub

What mcp-moonpay does

The server ships 20 tools that wrap the MoonPay API. An agent can preview a buy or sell quote, place the order, then pull it back by MoonPay id along with a receipt suitable for tax or audit. Customer helpers sit alongside: create a KYC'd end user, look one up, read the verification state and what documents are still pending, or list every buy and sell tied to that person.

Reference lookups cover fiat and crypto currencies, metadata for a single currency code, supported countries with the flows each one allows, and payment methods for a given currency and country pair. Country resolution by IP is there too. Two utilities assemble a buy or sell widget link and sign it with HMAC-SHA256. Pix serves as an on-ramp rail for Brazil, and the catalogue runs past 100 crypto assets.

A MOONPAY_API_KEY is mandatory, and the key alone decides sandbox versus production — the base URL does not switch. MOONPAY_BASE_URL can be overridden and otherwise points at https://api.moonpay.com. Live money needs a production key; without loaded documents the KYC check on a customer just reports what is still missing.

What it helps with

  • price a crypto buy before opening the payment widget
  • run a sell order that pays out to local fiat
  • see which documents a customer still owes for KYC
  • pull a receipt for a finished transaction
  • generate a signed payment widget link

Example prompts for the agent

  • Quote a buy of 0.05 BTC paid in euros and show me the total.
  • Create a sell transaction and fetch its status by MoonPay id.
  • Check this customer's KYC status and list the missing documents.

How to install mcp-moonpay

Platform CLI

claude mcp add --env MOONPAY_API_KEY=<MOONPAY_API_KEY> --env MOONPAY_PUBLISHABLE_KEY=<MOONPAY_PUBLISHABLE_KEY> --env MOONPAY_SECRET_KEY=<MOONPAY_SECRET_KEY> --env MOONPAY_BASE_URL=<MOONPAY_BASE_URL> --env MOONPAY_BUY_WIDGET_URL=<MOONPAY_BUY_WIDGET_URL> --transport stdio moonpay -- npx -y @codespar/mcp-moonpay

Replace <…> with your own values. 1 more environment variable is in the server README

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about mcp-moonpay

How do I install mcp-moonpay in Claude Code?

Run claude mcp add mcp-moonpay -e MOONPAY_API_KEY=<MOONPAY_API_KEY> -e MOONPAY_SECRET_KEY=<MOONPAY_SECRET_KEY> -- npx -y @codespar/mcp-moonpay.

What does mcp-moonpay do?

It connects an agent to MoonPay: buy and sell quotes and orders, customers and KYC, currency and country reference data, and signed widget URLs.

How is it different from mcp-unblockpay?

unblockpay handles stablecoins only, BRL/MXN to USDC both ways. MoonPay reaches over 100 crypto assets, more countries, and a sell flow that pays out in local fiat.

Similar MCP servers

Everything for Finance and business →

From the same set124

mcp-nubank This MCP server is designed to access Nubank accounts, PIX, cards, and boletos through Open Finance Brasil. Its current API endpoint is unreachable. CX Codex +1 ★ 274repo stars mcp-niubiz An MCP server for Peru's Niubiz acquirer. It opens a checkout session, authorizes the payment and reverses it the same day. CX Codex +1 ★ 274repo stars mcp-nfe-io MCP server for NFe.io fiscal tools. Issues Brazilian invoices (NF-e and NFS-e) and handles CNPJ and CEP lookups directly from your coding agent. CX Codex +1 ★ 274repo stars mcp-nequi Connects an AI agent to Nequi for push payments, QR payments, subscriptions, and merchant operations. It requires Nequi credentials. CX Codex +1 ★ 274repo stars mcp-midaz Connects your coding agent to a self-hosted Midaz ledger to inspect balances, create accounts, and post balanced double-entry transactions. CX Codex +1 ★ 274repo stars mcp-mercado-pago Connect an agent to Mercado Pago tools for payments, refunds, PIX, and subscriptions. The server needs a Mercado Pago access token to run. CX Codex +1 ★ 274repo stars mcp-mercado-libre Wires Mercado Libre into your coding agent: product search, orders, shipments, buyer questions and reviews. Useful if you sell on the marketplace and work from chat. CX Codex +1 ★ 274repo stars mcp-mercado-bitcoin Connects AI coding assistants to the Mercado Bitcoin exchange for automated trading, orderbook tracking, and balance checks. Useful for Brazilian crypto workflows. CX Codex +1 ★ 274repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor