On/off-ramp de fiat↔cripto. Cobertura más amplia que UnblockPay (más de 100 activos, más de 160 países) incluyendo onramp vía Pix en BR. Los flujos sell-side permiten que los agentes paguen en cripto.
MoonPay le da a tu agente 20 tools que llama directo — elegí las que necesite, en Claude, Cursor o cualquier cliente MCP.
get_buy_quote — Preview a fiat -> crypto buy quote in real time. Use this before create_buy_transaction to show the end user the exact crypto amount, fees, and effective rate.create_buy_transaction — Create a buy transaction (fiat -> crypto). The returned object contains status plus — depending on method — redirect URL for hosted checkout, Pix QR data, or card auth next steps.get_buy_transaction — Retrieve a buy transaction (fiat -> crypto) by its MoonPay id. Returns current status and settlement detail.// Your agent calls a tool directly — no glue code.
// CodeSpar's managed tier handles OAuth2, token rotation and rate limits.
const result = await session.call("get_buy_quote", { /* ... */ });$ npm install @codespar/mcp-moonpayAgregá esta entrada a tu claude_desktop_config.json (o a la config de cualquier cliente compatible con MCP).
{
"mcpServers": {
"moonpay": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-moonpay"
],
"env": {
"MOONPAY_API_KEY": "<your_moonpay_api_key>"
}
}
}
}Después de reiniciar, tu agente puede llamar cualquiera de las 20 herramientas de abajo — probá get_buy_quote primero.
Necesarias para autenticar el server. Almacenadas cifradas al usar el hosting gestionado de CodeSpar.
MOONPAY_API_KEYMoonPay REST API key (sandbox or production — the key selects the environment)
MOONPAY_PUBLISHABLE_KEYMoonPay publishable key used as `apiKey` in signed widget URLs (required for sign_buy_url / sign_sell_url).
MOONPAY_SECRET_KEYMoonPay secret key used to HMAC-SHA256 sign widget URLs (required for sign_buy_url / sign_sell_url).
MOONPAY_BASE_URLMoonPay API base URL. Defaults to https://api.moonpay.com.
MOONPAY_BUY_WIDGET_URLMoonPay buy widget base URL. Defaults to https://buy.moonpay.com.
MOONPAY_SELL_WIDGET_URLMoonPay sell widget base URL. Defaults to https://sell.moonpay.com.
Cada herramienta es independiente — tu agente carga solo lo que necesita para reducir contexto y tiempo de respuesta.
get_buy_quotecreate_buy_transactionget_buy_transactionlist_buy_transactionsget_sell_quotecreate_sell_transactionget_sell_transactionrefund_sell_transactionMCP es un protocolo — cualquier framework que lo hable puede montar este server.