home / mcp / coinmarketcap mcp server
MCP Implementation for CoinMarketCap
Configuration
View docs{
"mcpServers": {
"alexander-herranz-coinmarketcap-mcp": {
"command": "npx",
"args": [
"-y",
"@shinzolabs/coinmarketcap-mcp"
],
"env": {
"PORT": "3000",
"TELEMETRY_ENABLED": "true",
"SUBSCRIPTION_LEVEL": "Basic",
"COINMARKETCAP_API_KEY": "your-key-here"
}
}
}
}You can run a CoinMarketCap MCP Server to access a standardized, type-safe interface for CoinMarketCap data from your MCP client. It lets you fetch market data, metadata, OHLCV data, and more through a configurable server that you host locally or run remotely. This guide shows practical steps to install, configure, and use the MCP server so you can integrate CoinMarketCap data into your workflows and agents.
Install the MCP server locally or run it remotely, then connect your MCP client to the server using the provided configuration snippets. You can run the server via NPX for a quick local setup or run it from source after building. Your MCP client will access CoinMarketCap data through the server's endpoints, using your API key and chosen subscription level.
Prerequisites you need before installation:
Option A: NPX Local Install (fastest setup for local development)
{
"mcpServers": {
"coinmarketcap": {
"command": "npx",
"args": [
"@shinzolabs/coinmarketcap-mcp"
],
"env": {
"COINMARKETCAP_API_KEY": "your-key-here",
"SUBSCRIPTION_LEVEL": "Basic" // See options below
}
}
}
}Option B: Build from Source (requires cloning the repository and building)
git clone https://github.com/shinzo-labs/coinmarketcap-mcp.git
```
```bash
pnpm i
```
```javascript
{
"mcpServers": {
"coinmarketcap": {
"command": "node",
"args": [
"/path/to/coinmarketcap-mcp/index.js"
],
"env": {
"COINMARKETCAP_API_KEY": "your-key-here",
"SUBSCRIPTION_LEVEL": "Basic" // See options below
}
}
}
}If you want to run a remote MCP server, you can use a CLI-based setup workflow to register a remote server with your MCP client. The remote setup uses your Smithery API key to connect to the hosted MCP server. The remote setup is recommended for quick, centralized access when you already use the Smithery tooling.
Configure your MCP client to point at the CoinMarketCap MCP server by adding one or more server configurations. The common settings you will provide are the API key and the subscription level. You can also control whether telemetry is enabled and the port used for transport, depending on your environment.
{
"mcpServers": {
"coinmarketcap": {
"command": "npx",
"args": [
"@shinzolabs/coinmarketcap-mcp"
],
"env": {
"COINMARKETCAP_API_KEY": "your-key-here",
"SUBSCRIPTION_LEVEL": "Basic" // See options below
}
}
}
}{
"mcpServers": {
"coinmarketcap": {
"command": "node",
"args": [
"/path/to/coinmarketcap-mcp/index.js"
],
"env": {
"COINMARKETCAP_API_KEY": "your-key-here",
"SUBSCRIPTION_LEVEL": "Basic" // See options below
}
}
}
}Keep your API key secret and do not commit it to source control. Use environment variables to inject secrets at runtime. If you are deploying in a shared environment, restrict access to the MCP server and rotate API keys periodically.
If the server fails to start, verify that Node.js is installed, the API key is valid, and the environment variables are correctly set. Check that the selected subscription level supports the endpoints you intend to use. Review logs for any authentication or network errors and adjust your configuration as needed.
The MCP server exposes a wide range of cryptocurrency data endpoints, including market data, metadata, OHLCV data, and global metrics. Ensure your subscription level matches the endpoints you plan to query.
Get mapping of all cryptocurrencies
Get metadata for one or more cryptocurrencies
Get latest market quote for 1-5000 cryptocurrencies
Get latest market quote for 1 or more cryptocurrencies
Get list of all cryptocurrency categories
Get metadata about a cryptocurrency category
Get mapping of all exchanges
Get metadata for one or more exchanges
Get list of all assets available on an exchange
Get metadata for one or more decentralised exchanges
Get latest market data for all DEXes
Get list of all networks with unique IDs
Get latest market data for all active DEX spot pairs
Get latest market quotes for spot pairs
Get latest OHLCV data for spot pairs
Get historical OHLCV data for spot pairs
Get latest trades for spot pairs
Get latest global cryptocurrency metrics
Get latest CoinMarketCap 100 Index value and constituents
Get historical CoinMarketCap 100 Index values
Convert an amount of one cryptocurrency or fiat currency into another
Get Postman collection for the API
Get mapping of all fiat currencies
Get API key usage and status
Get latest Fear & Greed Index
Get historical Fear & Greed Index values
Get list of all cryptocurrency airdrops
Get metadata about a specific airdrop
Get historical market quotes for any cryptocurrency
Get historical market quotes for any cryptocurrency
Get historical market quotes with advanced time-based intervals
Get historical quotes for any exchange
Get historical global cryptocurrency metrics
Get list of most recently added cryptocurrencies
Get biggest gainers and losers in a given time period
Get top cryptocurrencies by search volume
Get most visited cryptocurrencies
Get latest OHLCV market data for any cryptocurrency
Get historical OHLCV market data for any cryptocurrency
Get price performance statistics for any cryptocurrency
Get latest market pairs for any cryptocurrency
Get latest market data for all exchanges
Get latest market pairs for any exchange
Get latest market quotes for one or more exchanges
Get latest cryptocurrency news and content
Get top cryptocurrency posts
Get latest cryptocurrency posts
Get comments for a specific post
Get trending topics in the cryptocurrency community
Get trending tokens in the cryptocurrency community
Get latest statistics for one or more blockchains