Access CoinMarketCap data via x402 pay-per-request protocol with USDC payments on Base. No API key or subscription required.
Ships in coinmarketcap-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Pay-per-request crypto market data powered by the x402 protocol. Access CoinMarketCap endpoints instantly with on-chain USDC payment. No API key or subscription required.
x402 is an open payment protocol developed by Coinbase that enables automatic stablecoin payments over HTTP. Instead of managing API keys, you pay $0.01 USDC per request on Base. The x402 client library handles payment signing automatically.
Learn more: https://docs.x402.org
Before using x402 endpoints, ensure you have:
Get current prices for specific coins:
Use /x402/v3/cryptocurrency/quotes/latest with symbol or id parameter.
Example: Get BTC and ETH prices for a portfolio tracker.
List top cryptocurrencies:
Use /x402/v3/cryptocurrency/listing/latest with limit parameter.
Example: Display top 100 coins ranked by market cap.
Search for DEX tokens:
Use /x402/v1/dex/search with keyword parameter.
Example: Find a memecoin by name when you don't know the contract address.
Get DEX pair trading data:
Use /x402/v4/dex/pairs/quotes/latest with pair address.
Example: Monitor liquidity and volume for a specific Uniswap pool.
AI agent data access:
Use the MCP endpoint at https://mcp.coinmarketcap.com/x402/mcp.
Example: Let Claude or other LLMs fetch live crypto data with automatic payment.
Install the x402 TypeScript SDK:
npm install @x402/axios @x402/evm viem
Fetch data with automatic payment:
import { createX402AxiosClient } from "@x402/axios";
import { ExactEvmScheme, toClientEvmSigner } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
import { createPublicClient, http } from "viem";
import { base } from "viem/chains";
// SECURITY: Never hardcode private keys in source code.
// Use environment variables: process.env.PRIVATE_KEY
// For production, use a dedicated hot wallet with limited funds.
const account = privateKeyToAccount(process.env.PRIVATE_KEY as `0x${string}`);
const publicClient = createPublicClient({ chain: base, transport: http() });
const signer = toClientEvmSigner(account, publicClient);
const client = createX402AxiosClient({
schemes: [new ExactEvmScheme(signer)],
});
const response = await client.get(
"https://pro.coinmarketcap.com/x402/v3/cryptocurrency/quotes/latest",
{ params: { symbol: "BTC,ETH" } }
);
console.log(response.data);
Base URL: https://pro.coinmarketcap.com
| Endpoint | Path | Use For |
|---|---|---|
| Quotes | /x402/v3/cryptocurrency/quotes/latest | Current prices for specific coins |
| Listings | /x402/v3/cryptocurrency/listing/latest | Top coins by market cap |
| DEX Search | /x402/v1/dex/search | Find DEX tokens by keyword |
| DEX Pairs | /x402/v4/dex/pairs/quotes/latest | DEX pair trading data |
All parameters from the standard CMC Pro API work with x402 endpoints. See endpoints.md for full parameter reference.
The x402 MCP endpoint lets AI agents access CMC data with automatic payment.
Connection URL:
https://mcp.coinmarketcap.com/x402/mcp
Transport: Streamable HTTP (POST)
Connect using any MCP client with an x402-aware HTTP transport. The server exposes the same tools as the REST endpoints and supports automatic tool discovery.
$0.01 USDC per request on Base (Chain ID: 8453).
Payment only occurs on successful data delivery. If the request fails, no payment is deducted.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/cmc-api-cryptoAPI reference for CoinMarketCap cryptocurrency endpoints including quotes, listings, OHLCV, trending, and categories.
Use this skill whenever the user mentions CMC API, asks how to get crypto data programmatically, wants to build price integrations, or needs REST endpoint documentation. This is the go-to reference for any CMC cryptocurrency API question.
Trigger: "CMC API", "coinmarketcap api", "coinmarketcap sdk", "crypto price API", "get bitcoin price via API", "/cmc-api-crypto"
/cmc-api-dexAPI reference for CoinMarketCap DEX endpoints including token lookup, pools, transactions, trending, and security analysis.
Use this skill whenever the user mentions DEX API, asks about on-chain token data, wants to look up tokens by contract address, needs security/rug risk checks, or is building DEX integrations. This is the definitive reference for CMC DEX API questions.
Trigger: "DEX API", "token by contract address", "CMC security API", "liquidity pool API", "/cmc-api-dex"
/cmc-api-exchangeAPI reference for CoinMarketCap exchange endpoints including exchange info, volume, market pairs, and assets.
Use this skill whenever the user mentions exchange API, asks about exchange volumes, wants trading pair data, needs proof-of-reserves info, or is building exchange integrations. This is the authoritative reference for CMC exchange API questions.
Trigger: "exchange API", "CMC exchange data", "trading pairs API", "exchange volume API", "/cmc-api-exchange"
/cmc-api-marketAPI reference for CoinMarketCap market-wide endpoints including global metrics, fear/greed, indices, trending topics, and charts.
Use this skill whenever the user mentions market API, asks about fear/greed index, wants global metrics or BTC dominance data, needs k-line charts, or is working with market sentiment. This is the complete reference for CMC market-wide API questions.
Trigger: "market API", "fear greed API", "global metrics API", "CMC charts API", "/cmc-api-market"
/cmc-mcpFetches cryptocurrency market data, prices, technical analysis, news, and trends using the CoinMarketCap MCP.
Use for ANY question involving cryptocurrencies, tokens, or blockchain markets, even if the user doesn't explicitly ask for data. This includes price checks, portfolio questions, market analysis, coin comparisons, holder metrics, technical indicators, and news.
Trigger: "bitcoin", "ETH", "crypto", "token price", "market cap", "how is [coin] doing", "/cmc-mcp"
/crypto-researchPerforms comprehensive due diligence on a cryptocurrency using CoinMarketCap MCP data.
Use when users ask about a specific coin beyond just its price. This includes questions like "what is [coin]", "is [coin] legit", "analyze [coin]", tokenomics questions, holder distribution, or any request for deep information about a single cryptocurrency.
Trigger: "research [coin]", "tell me about [coin]", "should I invest in [coin]", "DYOR [coin]", "is [coin] safe", "/crypto-research"
/opencmc-coinmarketcap-skills:cmc-x402from coinmarketcap-skills
Generated from the plugin's indexed repository (opencmc/skills-for-ai-agents-by-coinmarketcap) — no native marketplace selected
npx claudepluginhub p/opencmc-coinmarketcap-skillsOther plugins' skills for the same job