CoinGecko MCP Server

by crazyrabbitLTC

5 stars
Not rated
GitHub

About

Enables interaction with the CoinGecko Pro API to access cryptocurrency data including price history and market metrics through both MCP and OpenAI function calling.

Details

Author
crazyrabbitLTC
Repository
crazyrabbitLTC/mcp-coingecko-server
GitHub stars
5
License
MIT License
Categories
Cloud Service, Other, Finance, API, Developer Tools, Productivity, Design, AI, Search, Automation, Infrastructure, Frontend, Knowledge Base
Tags
#data

Setting up with Highlight

Follow these steps to add this server as a custom Highlight plugin:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name CoinGecko MCP Server
    Command (node, npx, python, etc.) node
    Arguments
    • Argument 1 /path/to/coingecko-server/build/index.js
    Environment
    • COINGECKO_API_KEY your-api-key-here

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

get-coins

Get a paginated list of supported coins.

find-coin-ids

Look up CoinGecko IDs for coin names or symbols.

get-historical-data

Get historical price, market cap, and volume data for a specific coin. Parameters: id (string), vs_currency (string), from (string), to (string), interval (string).

get-ohlc-data

Get OHLC candlestick data for a specific coin.

refresh-cache

Refresh the local coin list cache.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "coingecko mcp server": {
            "env": {
                "COINGECKO_API_KEY": "your-api-key-here"
            },
            "args": [
                "/path/to/coingecko-server/build/index.js"
            ],
            "command": "node"
        }
    }
}

Linux

{
    "env": {
        "COINGECKO_API_KEY": "your-api-key-here"
    },
    "args": [
        "/path/to/coingecko-server/build/index.js"
    ],
    "command": "node"
}

Macos

{
    "env": {
        "COINGECKO_API_KEY": "your-api-key-here"
    },
    "args": [
        "/path/to/coingecko-server/build/index.js"
    ],
    "command": "node"
}

Windows

{
    "env": {
        "COINGECKO_API_KEY": "your-api-key-here"
    },
    "args": [
        "/path/to/coingecko-server/build/index.js"
    ],
    "command": "node"
}

Update: CoinGecko now has an official MCP server:https://docs.coingecko.com/reference/mcp-server

I recomend you use that one, as I probably won't update or keep this one current.

A Model Context Protocol (MCP) server and OpenAI function calling service for interacting with the CoinGecko Pro API.

- Paginated list of supported cryptocurrencies
- Coin ID lookup by name or symbol
- Historical price, market cap, and volume data
- OHLC (Open, High, Low, Close) candlestick data
- Local coin cache with refresh capability

Create a.envfile in your project root:

Claude Desktop provides full support for MCP features. To use this server:

Add to your Claude Desktop configuration:

- On macOS:~/Library/Application Support/Claude/claude_desktop_config.json
- On Windows:%APPDATA%\Claude\claude_desktop_config.json

{ "mcpServers": { "coingecko": { "command": "node", "args": ["/path/to/coingecko-server/build/index.js"], "env": { "COINGECKO_API_KEY": "your-api-key-here" } } } }

The server provides the following tools:

- get-coins: Get a paginated list of supported coins
- find-coin-ids: Look up CoinGecko IDs for coin names/symbols
- get-historical-data: Get historical price, market cap, and volume data
- get-ohlc-data: Get OHLC candlestick data
- refresh-cache: Refresh the local coin list cache

import { CoinGeckoService } from 'coingecko-server'; import OpenAI from 'openai'; const openai = new OpenAI(); const coinGeckoService = new CoinGeckoService(process.env.COINGECKO_API_KEY); // Get function definitions const functions = CoinGeckoService.getOpenAIFunctionDefinitions(); // Example: Get historical data const response = await openai.chat.completions.create({ model: "gpt-4-turbo-preview", messages: [{ role: "user", content: "Get Bitcoin's price history for the last week" }], functions: [functions[2]], // get_historical_data function function_call: "auto", }); if (response.choices[0].message.function_call) { const args = JSON.parse(response.choices[0].message.function_call.arguments); const history = await coinGeckoService.getHistoricalData( args.id, args.vs_currency, args.from, args.to, args.interval ); }
interface OHLCData { timestamp: number; open: number; high: number; low: number; close: number; }
interface HistoricalData { prices: [number, number][]; market_caps: [number, number][]; total_volumes: [number, number][]; }
interface CoinInfo { id: string; symbol: string; name: string; platforms?: Record<string, string>; }

Please refer to theCoinGecko Pro API documentationfor current rate limits and usage guidelines.

Provides seamless access to the Binance exchange API. Requires Binance API credentials to be configured.

Interact with the Binance API to view portfolios, convert tokens, and execute trades with minimal market impact.

Access the Binance Futures API for trading, account management, and market data.

Hosted MCP gateway that enables AI agents to discover and compare Web3 infra services (RPCs, indexing, oracles, storage, compute, dev tools, and more) across 20+ networks via a single endpoint

Access cryptocurrency data, market information, and trading insights from Coinbase's public API.

Fetches real-time cryptocurrency prices from the CoinGecko API.

Access Bitcoin network data from mempool.space's API for AI agents and applications.

Official CoinGecko API MCP Server for Crypto Price & Market Data, across 200+ blokchain networks and 8M+ tokens.

WunderTrading MCP connects AI agents to live crypto trading execution on 20+ supported exchanges through a single MCP integration. Use it to turn AI-driven signals, market analysis, sentiment, screenshots, and custom strategy logic into real trades on exchanges including Binance, Bybit, Coinbase, Bitget, OKX, KuCoin, Hyperliquid, and BingX. Supports MCP and REST API workflows for order execution, trade management, and AI-powered automation.

Interact with Alchemy's blockchain APIs to query data without writing code.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.