mcp-coingecko mcp

v1.0.0 · MCP Tool · finance · registry.pascalai.org

Cryptocurrency data via CoinGecko API v3 (free tier, no key required for basic use). Operations: price (current price in any currency), market (market data list), coin (detailed coin info), history (historical OHLCV), trending (trending coins), search (search coins), categories (coin categories), exchanges (exchange list), global (global market stats).

coingeckocryptobitcoinpricesfinance

Input Parameters

ParameterTypeDescription
operationrequired string price: current price; market: market cap list; coin: full coin data; history: OHLCV; trending: trending coins; search: search by name; categories: coin categories; exchanges: exchange list; global: market overview. One of: price, market, coin, history, trending, search, categories, exchanges, global.
apiKeyoptional string CoinGecko API key (optional, for Pro plan higher rate limits).
coinIdoptional string CoinGecko coin ID (e.g. bitcoin, ethereum, solana). Required for price, coin, history.
coinIdsoptional string Comma-separated coin IDs for price (e.g. bitcoin,ethereum).
currencyoptional string Target currency (e.g. usd, eur, btc). Default: usd. Default: usd.
pageoptional integer Page number for market/exchanges (default: 1). Default: 1.
perPageoptional integer Results per page for market/exchanges (default: 20, max: 250). Default: 20.
daysoptional string Time range for history: 1, 7, 14, 30, 90, 180, 365, max (default: 7). Default: 7.
orderoptional string Sort order for market (default: market_cap_desc). Default: market_cap_desc.
queryoptional string Search query for search operation.
categoryoptional string Filter market by category (e.g. decentralized-finance-defi).
sparklineoptional boolean Include 7-day sparkline data in market results. Default: False.

Output Fields

FieldTypeDescription
prices object
coins array[object]
coin object
trending array[object]
global object
error string

Examples

Get Bitcoin and Ethereum price in USD

// Input
{
  "operation": "price",
  "coinIds": "bitcoin,ethereum",
  "currency": "usd"
}

// Output
{
  "prices": {
    "bitcoin": {
      "usd": 65000
    },
    "ethereum": {
      "usd": 3200
    }
  }
}

Trending coins

// Input
{
  "operation": "trending"
}

// Output
{
  "trending": [
    {
      "id": "solana",
      "name": "Solana",
      "symbol": "SOL"
    }
  ]
}

Install & Discovery

Install

ppm install mcp-coingecko

Get JSON Schema

GET /v1/packages/mcp-coingecko/1.0.0/schema

Discover by keyword

GET /v1/mcp/discover?q=coingecko
Discovery hint: Install with ppm install mcp-coingecko or invoke remotely via POST /v1/invoke/mcp-coingecko on the MCP Service.

PascalAI Usage

uses toolslib;
var Tool := LoadTool('mcp-coingecko');
var R := Tool.Call(JsonObj(['operation','price','coinIds','bitcoin,ethereum','currency','usd']));
Writeln(R.ToJSON);