CoinMarketCap MCP server

Integrates with CoinMarketCap API to provide tiered access to cryptocurrency market data, exchange information, and blockchain metrics for financial analysis and crypto-related applications.
Back to servers
Setup instructions
Provider
Shinzo Labs
Release date
Mar 21, 2025
Language
TypeScript
Stats
35 stars

The CoinMarketCap MCP Server is a standardized interface implementation for accessing cryptocurrency market data, exchange information, and blockchain metrics through the CoinMarketCap API. It provides a Model Context Protocol (MCP) server that allows you to fetch data on crypto trends, market movements, and global metrics with complete API coverage.

Installation Options

Remote Server Setup (Recommended)

The easiest way to get started is by using Smithery's remote server:

npx -y @smithery/cli install @shinzo-labs/coinmarketcap-mcp

You'll be prompted to enter your CoinMarketCap API key and subscription level during installation.

Local Installation with NPX

To install the server locally using NPX, add the following to your MCP client's config.json:

{
  "mcpServers": {
    "coinmarketcap": {
      "command": "npx",
      "args": [
        "@shinzolabs/coinmarketcap-mcp"
      ],
      "env": {
        "COINMARKETCAP_API_KEY": "your-key-here",
        "SUBSCRIPTION_LEVEL": "Basic"
      }
    }
  }
}

Building From Source

  1. Clone the repository:
git clone https://github.com/shinzo-labs/coinmarketcap-mcp.git
  1. Install the dependencies:
pnpm i
  1. Configure your MCP client with:
{
  "mcpServers": {
    "coinmarketcap": {
      "command": "node",
      "args": [
        "/path/to/coinmarketcap-mcp/index.js"
      ],
      "env": {
        "COINMARKETCAP_API_KEY": "your-key-here",
        "SUBSCRIPTION_LEVEL": "Basic"
      }
    }
  }
}

Configuration Variables

Here are the configuration variables you can set:

Variable Description Required? Default
COINMARKETCAP_API_KEY Your API key from CoinMarketCap Yes
SUBSCRIPTION_LEVEL Your subscription tier (Basic, Hobbyist, Startup, Standard, Professional, or Enterprise) No Basic
PORT Port for HTTP transport No 3000
TELEMETRY_ENABLED Enable/disable telemetry No true

Available Tools

Basic Subscription Level

Cryptocurrency Data

  • Get cryptocurrency mappings, metadata, and listings
  • View latest market quotes for cryptocurrencies
  • Access cryptocurrency categories and metadata

Exchange Information

  • Retrieve exchange mappings and metadata
  • View assets available on exchanges

DEX Data

  • Get decentralized exchange metadata and listings
  • Access DEX networks, spot pairs, and OHLCV data

Global Metrics & Indices

  • View latest global cryptocurrency metrics
  • Access CoinMarketCap 100 Index data

Utility Tools

  • Convert between cryptocurrencies and fiat currencies
  • View API key usage and status
  • Access Fear & Greed Index data

Higher Subscription Levels

Additional tools become available with higher subscription levels:

  • Hobbyist: Historical data for cryptocurrencies, exchanges, and global metrics
  • Startup: Trending cryptocurrencies, OHLCV data, and price performance statistics
  • Standard: Market pairs data, exchange listings, and content/community insights
  • Enterprise: Blockchain statistics

Getting Started

  1. If you don't already have a CoinMarketCap API key, sign up for a free Basic key at CoinMarketCap Pro

  2. Choose your installation method from the options above

  3. Configure your MCP client with your API key and subscription level

  4. Start using the tools to access cryptocurrency market data through the standardized MCP interface

The server provides type-safe parameter validation through Zod, ensuring your queries are properly formatted and validated before being sent to the CoinMarketCap API.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "coinmarketcap" '{"command":"npx","args":["@shinzolabs/coinmarketcap-mcp"],"env":{"COINMARKETCAP_API_KEY":"your-key-here","SUBSCRIPTION_LEVEL":"Basic"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

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.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "coinmarketcap": {
            "command": "npx",
            "args": [
                "@shinzolabs/coinmarketcap-mcp"
            ],
            "env": {
                "COINMARKETCAP_API_KEY": "your-key-here",
                "SUBSCRIPTION_LEVEL": "Basic"
            }
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "coinmarketcap": {
            "command": "npx",
            "args": [
                "@shinzolabs/coinmarketcap-mcp"
            ],
            "env": {
                "COINMARKETCAP_API_KEY": "your-key-here",
                "SUBSCRIPTION_LEVEL": "Basic"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later