CoinMarketCap加密货币数据
STDIO提供加密货币市场数据的标准接口
提供加密货币市场数据的标准接口
A Model Context Protocol (MCP) implementation for the CoinMarketCap API, providing a standardized interface for accessing cryptocurrency market data, exchange information, and other blockchain-related metrics.
If you don't have an API key, first sign up to receive a free Basic
key here.
There are several options to configure your MCP client with the server. For hosted/remote server setup, use Smithery's CLI with a Smithery API Key. For local installation, use npx
or build from source. Each of these options is explained below.
To add a remote server to your MCP client config.json
, run the following command from Smithery CLI:
npx -y @smithery/cli install @shinzo-labs/coinmarketcap-mcp
Enter your COINMARKETCAP_API_KEY
and SUBSCRIPTION_LEVEL
(see options below) when prompted.
If you are developing your own agent application, you can use the boilerplate code here.
To install the server locally with npx
, add the following to your MCP client config.json
:
{ "mcpServers": { "coinmarketcap": { "command": "npx", "args": [ "@shinzolabs/coinmarketcap-mcp" ], "env": { "COINMARKETCAP_API_KEY": "your-key-here", "SUBSCRIPTION_LEVEL": "Basic" // See options below } } } }
git clone https://github.com/shinzo-labs/coinmarketcap-mcp.git
pnpm i
config.json
:{ "mcpServers": { "coinmarketcap": { "command": "node", "args": [ "/path/to/coinmarketcap-mcp/index.js" ], "env": { "COINMARKETCAP_API_KEY": "your-key-here", "SUBSCRIPTION_LEVEL": "Basic" // See options below } } } }
Variable | Description | Required? | Default |
---|---|---|---|
COINMARKETCAP_API_KEY | API Key from CoinMarketCap.com | Yes | |
SUBSCRIPTION_LEVEL | Basic , Hobbyist , Startup , Standard , Professional , or Enterprise | No | Basic |
PORT | Port for Streamable HTTP transport method | No | 3000 |
cryptoCurrencyMap
: Get mapping of all cryptocurrenciesgetCryptoMetadata
: Get metadata for one or more cryptocurrenciesallCryptocurrencyListings
: Get latest market quote for 1-5000 cryptocurrenciescryptoQuotesLatest
: Get latest market quote for 1 or more cryptocurrenciescryptoCategories
: Get list of all cryptocurrency categoriescryptoCategory
: Get metadata about a cryptocurrency categoryexchangeMap
: Get mapping of all exchangesexchangeInfo
: Get metadata for one or more exchangesexchangeAssets
: Get list of all assets available on an exchangedexInfo
: Get metadata for one or more decentralised exchangesdexListingsLatest
: Get latest market data for all DEXesdexNetworksList
: Get list of all networks with unique IDsdexSpotPairsLatest
: Get latest market data for all active DEX spot pairsdexPairsQuotesLatest
: Get latest market quotes for spot pairsdexPairsOhlcvLatest
: Get latest OHLCV data for spot pairsdexPairsOhlcvHistorical
: Get historical OHLCV data for spot pairsdexPairsTradeLatest
: Get latest trades for spot pairsglobalMetricsLatest
: Get latest global cryptocurrency metricscmc100IndexLatest
: Get latest CoinMarketCap 100 Index value and constituentscmc100IndexHistorical
: Get historical CoinMarketCap 100 Index valuespriceConversion
: Convert an amount of one cryptocurrency or fiat currency into anothergetPostmanCollection
: Get Postman collection for the APIfiatMap
: Get mapping of all fiat currencieskeyInfo
: Get API key usage and statusfearAndGreedLatest
: Get latest Fear & Greed IndexfearAndGreedHistorical
: Get historical Fear & Greed Index valuescryptoAirdrops
: Get list of all cryptocurrency airdropscryptoAirdrop
: Get metadata about a specific airdrophistoricalCryptocurrencyListings
: Get historical market quotes for any cryptocurrencycryptoQuotesHistorical
: Get historical market quotes for any cryptocurrencycryptoQuotesHistoricalV3
: Get historical market quotes with advanced time-based intervalsexchangeQuotesHistorical
: Get historical quotes for any exchangeglobalMetricsHistorical
: Get historical global cryptocurrency metricsnewCryptocurrencyListings
: Get list of most recently added cryptocurrenciescryptoTrendingGainersLosers
: Get biggest gainers and losers in a given time periodcryptoTrendingLatest
: Get top cryptocurrencies by search volumecryptoTrendingMostVisited
: Get most visited cryptocurrenciescryptoOhlcvLatest
: Get latest OHLCV market data for any cryptocurrencycryptoOhlcvHistorical
: Get historical OHLCV market data for any cryptocurrencycryptoPricePerformanceStatsLatest
: Get price performance statistics for any cryptocurrencycryptoMarketPairsLatest
: Get latest market pairs for any cryptocurrencyexchangeListingsLatest
: Get latest market data for all exchangesexchangeMarketPairsLatest
: Get latest market pairs for any exchangeexchangeQuotesLatest
: Get latest market quotes for one or more exchangescontentLatest
: Get latest cryptocurrency news and contentcontentPostsTop
: Get top cryptocurrency postscontentPostsLatest
: Get latest cryptocurrency postscontentPostsComments
: Get comments for a specific postcommunityTrendingTopic
: Get trending topics in the cryptocurrency communitycommunityTrendingToken
: Get trending tokens in the cryptocurrency communityblockchainStatisticsLatest
: Get latest statistics for one or more blockchainsContributions are welcomed and encouraged! Please read CONTRIBUTING.md for guidelines on issues, contributions, and contact information.