Skip to main content
Glama
CoinGecko MCP Server

CoinGecko MCP Server

CoinGecko MCP Server

An MCP server for CoinGecko — connect any MCP-compatible client to free crypto market data.

npm version npm downloads License: MIT MCP Compatible TypeScript Claude Desktop Cursor

What is this?

An MCP (Model Context Protocol) server that gives AI assistants and agents access to CoinGecko's free crypto market data API — prices, market caps, trending coins, historical data, and global stats — through natural language.

Use it with Claude Desktop, Cursor, Windsurf, Cline, Continue, or any MCP-compatible client to ask questions about crypto markets, compare tokens, and track prices.

Related MCP server: coingecko-mcp-server

Why use this?

  • No API key required — CoinGecko's free tier works out of the box (rate-limited to ~27 calls/min)

  • 8 built-in tools — covers the most common crypto data queries

  • Clean markdown output — results read naturally in chat

  • Rate-limited automatically — respects free tier limits, retries on 429

Tools

Tool

Description

search_coins

Search for cryptocurrencies by name or symbol

get_prices

Get current prices, market caps, and 24h changes for one or more coins

get_market_overview

Get top N coins by market cap with full stats

get_trending

Get currently trending coins (last 24h search volume)

get_coin_details

Get detailed info about a specific coin (description, links, market data, categories)

get_price_history

Get historical price data (daily, weekly, monthly, yearly)

get_global_stats

Get global crypto market stats (total MCap, BTC dominance, active cryptos)

get_token_price_comparison

Compare prices and stats of multiple tokens side-by-side

Quick Start

1. Add to your MCP client

Add this to your MCP client config (e.g. claude_desktop_config.json):

{
  "mcpServers": {
    "coingecko": {
      "command": "npx",
      "args": ["-y", "coingecko-mcp-server"]
    }
  }
}

That's it. No API key, no install step. npx downloads and runs it automatically.

2. Use it

Ask your AI assistant things like:

  • "What's the current price of Bitcoin and Ethereum?"

  • "Show me the top 10 coins by market cap"

  • "What's trending on CoinGecko right now?"

  • "Compare Solana, Avalanche, and Polkadot"

  • "How has Bitcoin performed over the last 30 days?"

  • "What's the total crypto market cap and BTC dominance?"

  • "Search for AI-related crypto tokens"

  • "Tell me about Chainlink — categories, links, market data"

Example Output

🔥 Trending Coins (last 24h):

1. Bitcoin (BTC) — Rank #1 | MCap: $1,340.2B | 24h: +2.1%
2. Ethereum (ETH) — Rank #2 | MCap: $412.8B | 24h: +1.8%
3. Solana (SOL) — Rank #5 | MCap: $78.4B | 24h: +4.3%
...

get_token_price_comparison

Token Comparison (USD):

| Coin | Price | MCap | 24h | 7d | Vol |
|------|-------|------|-----|-----|-----|
| Bitcoin (BTC) | $67,234 | $1,340.2B | +2.1% | +5.3% | $28,400M |
| Ethereum (ETH) | $3,456 | $412.8B | +1.8% | +3.1% | $14,200M |
| Solana (SOL) | $178.5 | $78.4B | +4.3% | +12.1% | $3,800M |

Use Cases

Portfolio Research

Ask "What's my portfolio worth?" after listing your holdings. The server compares prices across multiple tokens and gives you a snapshot with market caps, 24h changes, and volume.

Yield Farming Research

"Show me trending coins with high volume" — find new opportunities by checking what's getting attention. Combine with get_coin_details to deep-dive into categories and links before committing.

Market Intelligence

"What's the total crypto market cap and BTC dominance?" gives you macro context in seconds. Use get_global_stats before making any allocation decision.

Token Comparison

"Compare Solana, Avalanche, and Polkadot" — side-by-side price, market cap, and performance data. Faster than opening three tabs on CoinGecko.

Historical Analysis

"How has Bitcoin performed over the last 30 days?" — daily price history for trend analysis. Works with any timeframe (daily, weekly, monthly, yearly).

Security

  • No API key by default — uses CoinGecko's free tier. Optional API key for higher rate limits.

  • Read-only — only fetches public market data from CoinGecko's API. No writes, no mutations.

  • No local file access — does not read or write any files on your machine.

  • No shell access — does not execute commands or spawn processes.

  • Rate-limited — automatically caps requests to stay within free tier limits.

  • Open source — MIT licensed. Inspect the code at GitHub.

Troubleshooting

Rate limit errors (429)

The server auto-retries on 429, but if you're making rapid queries, add a short delay between requests. Free tier allows ~27 calls/minute. If you hit this frequently, set a COINGECKO_API_KEY for higher limits.

"Coin not found" errors

Use search_coins first to find the correct CoinGecko ID. Coin IDs are lowercase slugs (e.g. bitcoin, ethereum, solana), not ticker symbols.

Server won't start

Make sure Node.js 18+ is installed: node --version. If using npx, ensure npm is up to date: npm install -g npm@latest.

MCP client can't connect

Verify the config path is correct. Claude Desktop uses ~/Library/Application Support/Claude/claude_desktop_config.json on macOS and %APPDATA%\Claude\claude_desktop_config.json on Windows. Restart the client after config changes.

Slow responses

CoinGecko's free tier has ~300ms latency per call. Multi-coin queries (get_prices, get_token_price_comparison) make one API call regardless of how many coins you pass, so batch your queries.

Requirements

  • Node.js 18+

  • No API key needed (CoinGecko free tier)

Rate Limits

The server automatically rate-limits requests to ~27 calls/minute to stay within CoinGecko's free tier. If you have a CoinGecko Pro API key, you can set the COINGECKO_API_KEY environment variable for higher limits:

{
  "mcpServers": {
    "coingecko": {
      "command": "coingecko-mcp-server",
      "env": {
        "COINGECKO_API_KEY": "your_key_here"
      }
    }
  }
}

Development

git clone https://github.com/nova/coingecko-mcp-server.git
cd coingecko-mcp-server
npm install
npm run build
npm start

License

MIT

Available Tools

8 tools
get_coin_detailsA

Get comprehensive details for a single coin by ID: current price, market cap, 24h/7d/30d changes, ATH/ATL, supply data, categories, genesis date, description, and links (homepage, Twitter, GitHub). Returns formatted markdown with all available market data. Use search_coins to find the coin ID first.

Inputs: coin_id (required).

get_global_statsA

Get aggregate crypto market statistics: total market cap, 24h volume, BTC/ETH dominance percentages, number of active cryptocurrencies and exchanges, and 24h market cap change. Returns formatted summary of the entire crypto market in one call.

Inputs: no named parameters.

get_market_overviewA

Get top cryptocurrencies ranked by market cap with price, market cap, 24h change, and 24h volume. Returns up to N coins (default 20) sorted by market cap descending. Useful for a quick snapshot of the overall market or identifying top performers.

Inputs: limit, vs_currency.

get_price_historyA

Get historical price data for a coin over N days (1, 7, 30, 90, 365, or max). Returns sampled daily prices with date stamps and overall period change percentage. Useful for charting trends and identifying price patterns over time.

Inputs: coin_id (required), vs_currency, days.

get_pricesA

Get real-time prices, market caps, 24h volume, and 24h price change for one or more coins. Accepts comma-separated CoinGecko IDs (use search_coins to find IDs). Returns formatted price, market cap, volume, and 24h change percentage for each coin. Useful for quick price checks across multiple tokens.

Inputs: coin_ids (required), vs_currency.

get_token_price_comparisonA

Compare multiple tokens side-by-side in a formatted table. Shows price, market cap, 24h change, 7d change, and 24h volume for each coin. Accepts comma-separated CoinGecko IDs. Use search_coins to find IDs, then compare with this tool for a quick multi-token comparison.

Inputs: coin_ids (required), vs_currency.

search_coinsA

Search cryptocurrencies by name or symbol. Returns matching coins ranked by market cap, each with name, symbol, rank, and CoinGecko ID. Use the returned ID in get_prices, get_coin_details, or get_price_history for full data on a specific coin.

Inputs: query (required), limit.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 8 tools

    Disambiguation4/5

    Tools are mostly distinct with clear purposes. The only potential confusion is between get_prices and get_token_price_comparison, both returning price data for multiple coins, but the comparison tool adds 7d change and a table format, and descriptions clarify the difference.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern (get_* or search_*), using snake_case. This makes the set predictable and easy to understand.

    Tool Count5/5

    With 8 tools covering search, details, multiple prices, comparison, overview, history, trending, and global stats, the count is well-scoped for a crypto data API without unnecessary bloat.

    Completeness4/5

    The tool set covers essential crypto data queries. Minor gaps include no direct listing of all coins (search_coins is limited) and no exchange-specific data, but core workflows are well-supported.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    • Your agent needs crypto prices it can rely on — spot, ranked market tables, history, OHLC, per-venue tickers, and what is trending right now. **What you can ask for** • "What is the price of these 20 tokens in USD and EUR right now?" • "Give me the top 100 by market cap with 24h and 7d change." • "Chart this coin's price over the last year, hourly." • "Where does this token trade, and at what spread per venue?" • "What is trending on CoinGecko today?" **How to use it** Point any MCP client at https://mcp.aisa.one/crypto-market-data/mcp and sign in with OAuth — there is no key to create or paste. 21 CoinGecko tools: simple price and token price by contract, supported currencies, coin list and detail, ranked markets, history, market charts and ranges, OHLC, per-coin tickers, categories, exchanges and their tickers, token data and charts, and trending. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Price the token here, then ask the same agent what X is posting about it — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/finance/mcp for equities, crypto and prediction markets in one place.

    • CoinGecko MCP — wraps CoinGecko free API (no auth required)

    • MCP server with quote and live cryptocurrency price tools, local and cloud-deployed transports.

    • Unlock the power of real-time cryptocurrency data with our Crypto Price Insights MCP server.

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Free MCP server for real-time cryptocurrency data. Get token prices, market overview, top movers, historical charts, and detailed token info directly in Claude Code, Cursor, or any MCP-compatible AI tool. Powered by CoinGecko with 70+ token mappings and built-in caching.
      5
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server providing market data for 15,000+ cryptocurrencies including prices, history, trends, and deep coin metadata via CoinGecko.
      130 npm
      1
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      A Model Context Protocol server for real-time cryptocurrency price data, market data, trending coins, historical charts, and currency conversion using the free CoinGecko API.
      MIT