Moonpay

Finance and commerce

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

Your AI app calls the Moonpay MCP server, which does the finance and commerce work and sends the result back to the chat.

About Moonpay

Moonpay is a community MCP server from codespar, filed in our directory under finance and commerce. MCP server for MoonPay, fiat-to-crypto on/off-ramp, 100+ assets; Pix for Brazil onramp.

Moonpay runs on your own machine: your AI app starts it with the command npx -y @codespar/mcp-moonpay@0.2.2 and talks to it over standard input and output. It needs MOONPAY_API_KEY set before Moonpay starts.

Moonpay is listed in the official MCP registry as io.github.codespar/mcp-moonpay, version 0.2.2.

At a glance

Publisher
codespar (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @codespar/mcp-moonpay
Written in
TypeScript
License
MIT
GitHub stars
278
Official MCP registry
io.github.codespar/mcp-moonpay

How to set up Moonpay

  1. Install Node.js on the machine that runs your AI app, because Moonpay starts with npx and downloads its package on first run.
  2. Create MOONPAY_API_KEY for Moonpay in the connected service's own settings, scoped to the smallest permissions the job needs.
  3. Add Moonpay to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Moonpay tools to confirm the connection.
  5. Run one read-only task with Moonpay first, and keep your app asking before each tool call until the results look right.

Moonpay compared with similar servers

  • Nequi by codespar has fewer GitHub stars than Moonpay (278 against 278); both are community servers, and both run locally.
  • Midaz by codespar has fewer GitHub stars than Moonpay (278 against 278); both are community servers, and both run locally.
  • Nfe Io by codespar has fewer GitHub stars than Moonpay (278 against 278); both are community servers, and both run locally.

Before you connect Moonpay

  • Give Moonpay its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Moonpay tool call until you trust what it does with them.
  • Treat text that Moonpay fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Moonpay on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Moonpay

How marketing and sales teams put Moonpay to work, by company size. Pick the size closest to yours and start Moonpay on one use case.

Small business

  • A small business can ask Moonpay which products and customers drive margin, then plan promotions around them.
  • Owners can use Moonpay to check refunds, failed payments and churn reasons without opening three dashboards.
  • Moonpay runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Ecommerce teams can connect Moonpay to tie campaigns to orders and revenue, not just clicks.
  • Marketing and finance can use Moonpay to check spend against budget each week and move money to what's working.
  • Start Moonpay on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises should keep Moonpay read-only for agents, with any money movement handled by people and existing approvals.
  • Large commerce teams can use Moonpay to answer revenue questions by channel and region with figures finance signs off on.
  • Moonpay is a community server, so have security review the code and pin a version before Moonpay touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Moonpay README

From codespar/mcp-dev-latam on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

@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

Server Coverage Direction
@codespar/mcp-unblockpay BRL / MXN ↔ USDC Onramp + offramp, stablecoin only
@codespar/mcp-moonpay 100+ crypto assets, multi-geo, Pix for BR Onramp + offramp
@codespar/mcp-mercado-bitcoin, @codespar/mcp-bitso Exchange order books Trade
@codespar/mcp-circle USDC native rails Stablecoin 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)

Tool Purpose
get_buy_quote Preview a fiat -> crypto buy quote in real time.
create_buy_transaction Create a buy transaction (fiat -> crypto).
get_buy_transaction Retrieve a buy transaction (fiat -> crypto) by its MoonPay id.
list_buy_transactions List buy transactions with optional filters.
get_sell_quote Preview a crypto -> fiat sell quote in real time.
create_sell_transaction Create a sell transaction (crypto -> fiat).
get_sell_transaction Retrieve a sell transaction (crypto -> fiat) by its MoonPay id.
refund_sell_transaction Request a refund on an off-ramp (sell) transaction.
create_customer Create a MoonPay customer (KYC'd end user).
get_customer Retrieve a MoonPay customer by id.
get_customer_kyc_status Fetch KYC verification status (and any pending document requirements) for a MoonPay customer.
list_customer_transactions List all transactions (buy + sell) tied to a single MoonPay customer.
get_transaction_receipt Fetch a tax-/audit-grade receipt for a completed buy or sell transaction.
list_currencies List supported currencies (fiat + crypto).
get_currency Retrieve metadata for a single currency (fiat or crypto) by its MoonPay code.
list_countries List countries supported by MoonPay along with which flows (buy / sell / NFT) are allowed per geography.
list_payment_methods List payment methods supported for a given fiat currency / country combination (e.g.
get_user_country Resolve the caller's (or a given IP's) country via MoonPay's IP-address geolocation endpoint.
sign_buy_url Build and HMAC-SHA256 sign a MoonPay buy widget URL (buy.moonpay.com).
sign_sell_url Build and HMAC-SHA256 sign a MoonPay sell widget URL (sell.moonpay.com).

Install

npm install @codespar/mcp-moonpay

Environment

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

# 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

Questions about Moonpay

What is the Moonpay MCP server?

MCP server for MoonPay, fiat-to-crypto on/off-ramp, 100+ assets; Pix for Brazil onramp. Moonpay is maintained by codespar on GitHub at codespar/mcp-dev-latam, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Moonpay MCP server?

Add Moonpay to your AI app's MCP config with the command npx -y @codespar/mcp-moonpay@0.2.2. In Claude Code, run claude mcp add --transport stdio codespar-moonpay -- npx -y @codespar/mcp-moonpay@0.2.2. To run Moonpay this way you need Node.js installed.

Does Moonpay need an API key?

Yes. Moonpay expects MOONPAY_API_KEY to be set. Create the key for Moonpay in the connected service's own settings, give it the smallest permissions the job needs, and keep it out of shared config files.

Is Moonpay an official MCP server?

No. Moonpay is a community server maintained by codespar. Community servers can be excellent; read the code and the open issues before you give Moonpay access to company data.

What license is Moonpay under?

Moonpay is released under the MIT license, according to its GitHub repository. The license covers the code of Moonpay; the service it connects to has its own terms.