# CoinMarketCap MCP for Claude Code

Use the CoinMarketCap MCP server with Claude Code to access live crypto prices, market data, technical analysis, and more — directly from your terminal.

## Prerequisites

- Active Claude subscription (Pro, Max, or API access)
- Claude Code installed (`npm install -g @anthropic-ai/claude-code`)

## Setup

1. **Get your API key**

   Sign up or log in at [pro.coinmarketcap.com](https://pro.coinmarketcap.com/login) to get your API key.

1. **Add the CoinMarketCap MCP server**

   Run the following command to register the MCP server:

   ```bash
   claude mcp add cmc-mcp \
     --transport http \
     --url https://mcp.coinmarketcap.com/mcp \
     --header "X-CMC-MCP-API-KEY: your-api-key"
   ```

   Replace `your-api-key` with your actual CoinMarketCap API key.

1. **Verify the connection**

   Start Claude Code and ask: **"What tools do you have available?"**

   ```bash
   claude
   ```

   You should see CoinMarketCap tools listed in the available tools.

## Install Skills (optional)

Install CoinMarketCap skills for structured market analysis and token research workflows:

```bash
npx skills add https://github.com/coinmarketcap-official/skills-for-ai-agents-by-CoinMarketCap
```

This adds skills for [market reports](/ai-agent-hub/skills/market-report), [crypto research](/ai-agent-hub/skills/crypto-research), and [API integration](/ai-agent-hub/skills/cmc-api-crypto).

## What you can do

Once connected, ask Claude Code things like:

- "What's the current price of Ethereum?"
- "Give me a full market report"
- "Research LINK — is it worth holding?"
- "What's the Fear & Greed index right now?"
- "Show me trending crypto narratives"
- "Help me build a portfolio tracker using the CMC API"
