The CoinMarketCap MCP server provides a standardized interface for accessing cryptocurrency market data, exchange information, and blockchain-related metrics through the Model Context Protocol (MCP). It offers comprehensive coverage of the CoinMarketCap API with type-safe parameter validation.
Install the server to your MCP client configuration using Smithery CLI:
npx -y @smithery/cli install @shinzo-labs/coinmarketcap-mcp
You'll be prompted to enter your COINMARKETCAP_API_KEY
and SUBSCRIPTION_LEVEL
.
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"
}
}
}
}
Clone the repository:
git clone https://github.com/shinzo-labs/coinmarketcap-mcp.git
Install dependencies:
pnpm i
Configure your MCP client:
{
"mcpServers": {
"coinmarketcap": {
"command": "node",
"args": [
"/path/to/coinmarketcap-mcp/index.js"
],
"env": {
"COINMARKETCAP_API_KEY": "your-key-here",
"SUBSCRIPTION_LEVEL": "Basic"
}
}
}
}
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 cryptocurrenciescryptoQuotesLatest
: Get latest market quote for one 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 exchangeglobalMetricsLatest
: Get latest global cryptocurrency metricspriceConversion
: Convert amounts between cryptocurrencies or fiat currenciesgetPostmanCollection
: Get Postman collection for the APIThe server supports additional functionality based on your CoinMarketCap subscription level:
If you don't have an API key, sign up for a free Basic
key at CoinMarketCap.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.