> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://coingecko.ferndocs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://coingecko.ferndocs.com/_mcp/server.

# Claude Code

> Wire CoinGecko into Anthropic's terminal coding agent — MCP server, SKILL, and prompt rules in one place.

[Claude Code](https://www.anthropic.com/claude-code) is Anthropic's terminal-native coding agent. Plug CoinGecko in through any combination of the three integrations below — they're complementary, not exclusive.

## 1. Install the SKILL

The fastest setup. Gives Claude Code built-in knowledge of the CoinGecko API so it writes correct requests without you pasting reference docs every session.

**`npm`**

```bash npm theme={null}
npx skills add coingecko/skills -g -y
```

**`git clone`**

```bash git clone theme={null}
git clone https://github.com/coingecko/skills.git ~/.claude/skills/coingecko
```

Full instructions: [SKILL docs](/docs/ai-agent-hub/skills).

## 2. Add the MCP Server

Connects Claude Code to live CoinGecko data — prices, market caps, onchain pools, OHLCV, NFTs, and more.

Add to your `claude_desktop_config.json` (or project-level MCP config):

**`Keyless`**

```json Keyless theme={null}
{
  "mcpServers": {
    "coingecko_mcp": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.api.coingecko.com/mcp"]
    }
  }
}
```

**`Authenticated (BYOK)`**

```json Authenticated (BYOK) theme={null}
{
  "mcpServers": {
    "coingecko_mcp": {
      "command": "npx",
      "args": ["mcp-remote", "https://mcp.pro-api.coingecko.com/mcp"]
    }
  }
}
```

Full instructions: [MCP Server docs](/docs/ai-agent-hub/mcp-server).

## 3. Add AI prompt rules

If you're generating code that uses the official CoinGecko SDKs, drop our prompt rules into your `CLAUDE.md` so Claude Code follows the right patterns (auth, retries, error handling).

* [Python rules](/docs/ai-agent-hub/python-ai-prompts)
* [TypeScript rules](/docs/ai-agent-hub/typescript-ai-prompts)

## What to try next

Once everything's wired up, try asking Claude Code:

> *"Using the CoinGecko MCP, show me the top 10 trending pools on Base in the last 5 minutes and export them to CSV."*

> *"Write a Python script using coingecko-sdk that tracks my portfolio and sends me a Slack alert if any coin moves more than 10% in an hour."*

---

Have feedback or need help? Reach out to `eason.lim@coingecko[dot]com`.