Mcp Moonpay

io.github.codespar由 GitHub 账号 codespar 发布v0.2.2更新于 Oct 24, 2026

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

已验证STDIO仅桌面金融商业与电商

概览

AI 生成的概览

MoonPay MCP 服务器,让助手报价、创建并跟踪法币买入与卖出加密货币交易,管理客户并签名 widget 链接。

可以做什么
  • 报价并创建买入与卖出交易,随后查询、列出或退款
  • 创建客户,查询其 KYC 状态与交易记录
  • 获取已完成交易的税务与审计级收据
  • 查询支持的货币、国家、支付方式及基于 IP 的国家
  • 构建并 HMAC 签名 MoonPay 买入与卖出 widget 链接
适用场景
当助手需要稳定币之外的法币入金或出金时适用:100 多种加密资产、多个地区、巴西 Pix,或需要向本地法币出金的卖出流程。
运行要求
通过 npm 包以 stdio 在本地运行(npx),需要 Node.js。需要 MOONPAY_API_KEY;签名 widget 链接还需 MOONPAY_PUBLISHABLE_KEY 与 MOONPAY_SECRET_KEY。可选的 base 与 widget URL 变量默认指向 MoonPay 端点。需要访问 MoonPay 的网络。
安装前请注意
API 密钥本身决定沙箱或生产环境,生产密钥可动用真实资金。创建买入/卖出交易、退款和客户会写入数据,可能涉及付款与 KYC 个人资料。MOONPAY_SECRET_KEY 是签名密钥,勿写入日志或共享配置。请求会把数据发送至 MoonPay 的 API。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mcp Moonpay,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

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

来源:packages/crypto/moonpay/README.md,提交 d0a519a

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分