Fiatβcrypto on/off-ramp. Broader coverage than UnblockPay (100+ assets, 160+ countries) including BR Pix onramp. Sell-side flows enable agents paying out in crypto.
$ npm install @codespar/mcp-moonpayAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"mcpServers": {
"moonpay": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-moonpay"
],
"env": {
"MOONPAY_API_KEY": "<your_moonpay_api_key>"
}
}
}
}After restart, your agent can call any of the 20 tools below β try get_buy_quote first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
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.
Each tool is independent β your agent loads only what it needs to reduce context and response time.
get_buy_quotecreate_buy_transactionget_buy_transactionlist_buy_transactionsget_sell_quotecreate_sell_transactionget_sell_transactionrefund_sell_transactionMCP is a protocol β any framework that speaks it can mount this server.