Mcp Moonpay

io.github.codesparPublished by GitHub account codesparv0.2.2Updated Oct 24, 2026

MCP server for MoonPay — fiat-to-crypto on/off-ramp, 100+ assets; Pix for Brazil onramp

VerifiedSTDIODesktop onlyFinanceBusiness & Commerce

Overview

AI-generated overview

MoonPay MCP server that lets an assistant quote, create and track fiat-to-crypto buys and crypto-to-fiat sells, manage customers and sign widget URLs.

What you can do
  • Quote and create buy and sell transactions, then retrieve, list or refund them
  • Create customers and check their KYC status and transaction history
  • Fetch tax- and audit-grade receipts for completed transactions
  • Look up supported currencies, countries, payment methods and IP-based country
  • Build and HMAC-sign MoonPay buy and sell widget URLs
When to use it
Useful when an agent needs fiat on-ramp or off-ramp beyond stablecoins: 100+ crypto assets, many geographies, Pix for Brazil, or a sell-side flow that pays out to local fiat.
Requirements
Runs locally over stdio via the npm package (npx), so Node.js is needed. Requires MOONPAY_API_KEY; signing widget URLs also needs MOONPAY_PUBLISHABLE_KEY and MOONPAY_SECRET_KEY. Optional base and widget URL variables default to MoonPay endpoints. Network access to MoonPay is required.
Before you install
The API key selects sandbox or production, so a production key can move real money. Creating buy or sell transactions, refunds and customers writes data and may involve payments and KYC personal data. MOONPAY_SECRET_KEY is a signing secret; keep it out of logs and shared configs. Requests send data to MoonPay's API.

Installation

In SourceWeft

  1. Open Mcp Moonpay in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

@codespar/mcp-moonpay

MCP server for MoonPay — fiat-to-crypto on/off-ramp.

MoonPay spans 100+ crypto assets and many geographies, with both buy (fiat → crypto) and sell (crypto → fiat) flows. Pix is supported as a Brazil onramp rail.

Positioning vs the rest of the catalog

ServerCoverageDirection
@codespar/mcp-unblockpayBRL / MXN ↔ USDCOnramp + offramp, stablecoin only
@codespar/mcp-moonpay100+ crypto assets, multi-geo, Pix for BROnramp + offramp
@codespar/mcp-mercado-bitcoin, @codespar/mcp-bitsoExchange order booksTrade
@codespar/mcp-circleUSDC native railsStablecoin infra

Use MoonPay when an agent needs broader crypto coverage (beyond USDC), longer-tail geographies, or a sell-side flow that pays out to local fiat.

Tools (20)

ToolPurpose
get_buy_quotePreview a fiat -> crypto buy quote in real time.
create_buy_transactionCreate a buy transaction (fiat -> crypto).
get_buy_transactionRetrieve a buy transaction (fiat -> crypto) by its MoonPay id.
list_buy_transactionsList buy transactions with optional filters.
get_sell_quotePreview a crypto -> fiat sell quote in real time.
create_sell_transactionCreate a sell transaction (crypto -> fiat).
get_sell_transactionRetrieve a sell transaction (crypto -> fiat) by its MoonPay id.
refund_sell_transactionRequest a refund on an off-ramp (sell) transaction.
create_customerCreate a MoonPay customer (KYC'd end user).
get_customerRetrieve a MoonPay customer by id.
get_customer_kyc_statusFetch KYC verification status (and any pending document requirements) for a MoonPay customer.
list_customer_transactionsList all transactions (buy + sell) tied to a single MoonPay customer.
get_transaction_receiptFetch a tax-/audit-grade receipt for a completed buy or sell transaction.
list_currenciesList supported currencies (fiat + crypto).
get_currencyRetrieve metadata for a single currency (fiat or crypto) by its MoonPay code.
list_countriesList countries supported by MoonPay along with which flows (buy / sell / NFT) are allowed per geography.
list_payment_methodsList payment methods supported for a given fiat currency / country combination (e.g.
get_user_countryResolve the caller's (or a given IP's) country via MoonPay's IP-address geolocation endpoint.
sign_buy_urlBuild and HMAC-SHA256 sign a MoonPay buy widget URL (buy.moonpay.com).
sign_sell_urlBuild and HMAC-SHA256 sign a MoonPay sell widget URL (sell.moonpay.com).

Install

bash
npm install @codespar/mcp-moonpay

Environment

bash
MOONPAY_API_KEY="..."     # API key (sandbox or production — the key selects the environment)MOONPAY_BASE_URL="..."    # Optional. Defaults to https://api.moonpay.com.

Authentication

Every request uses a simple header:

Authorization: Api-Key <MOONPAY_API_KEY>

Sandbox vs production is selected by the key itself — the base URL stays the same.

Run

bash
# stdio (default — for Claude Desktop, Cursor, etc)npx @codespar/mcp-moonpay
# HTTP (for server-to-server testing)MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-moonpay

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

Source: packages/crypto/moonpay/README.md at commit d0a519a

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.2.2LatestSep 16, 2026

Score

50% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts