coingecko-mcp

parasraut21/coingecko-mcp

3.3

If you are the rightful owner of coingecko-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency data through CoinGecko's API.

Tools
13
Resources
0
Prompts
0

CoinGecko MCP Server

A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency data through CoinGecko's API. This server enables AI assistants to access real-time cryptocurrency market data, DeFi information, exchange details, and more.

Data Provider

This MCP server uses CoinGecko as the primary data provider for all cryptocurrency-related information. CoinGecko is one of the world's largest independent cryptocurrency data aggregators, providing reliable and comprehensive market data.

Available Tools

Tool NameDescriptionParametersReturns
TokenHistoryToolFetch historical data for tokens by contract addresschainId, addressHistorical token data
TrendingSearchToolGet trending search data and popular coinsNoneTrending coins and tokens
GlobalMarketToolRetrieve global cryptocurrency market statisticsNoneTotal market cap, volume data
GlobalDeFiToolAccess global DeFi market dataNoneDeFi market cap and metrics
PublicCompaniesHoldingsToolGet public companies' crypto holdingscoin (bitcoin/ethereum)Corporate holdings data
ExchangeRatesToolFetch crypto-to-fiat exchange ratesNoneExchange rates for various currencies
ExchangesToolList all supported cryptocurrency exchangesNoneComplete exchanges list
CoinCategoriesToolGet top 10 coin categories by market capNoneCategories with market data
TrendingPoolsToolFetch trending liquidity poolsNoneTrending pools across DEXs
NewPoolsToolGet newly created liquidity poolsNoneRecently created pools
CoinDataByContractToolGet coin data by contract addresscoin_id, contract_addressDetailed coin information
CoinDataToolGet detailed coin data by CoinGecko IDcoin_idComprehensive coin data
ExchangeByIdToolGet specific exchange informationexchange_idExchange details and metrics

Prerequisites

  • Node.js (v14 or higher)
  • npm or yarn
  • CoinGecko API key (free tier available)

Environment Setup

Create a .env file in your project root with the following variables:

COIN_GECKO_API_URL=https://api.coingecko.com/api/v3
COIN_GECKO_API_KEY= your_api_key
NODE_ENV=development
APP_PORT=3080

Environment Variables Explained

  • COIN_GECKO_API_URL: Base URL for CoinGecko API endpoints
  • COIN_GECKO_API_KEY: Your CoinGecko API key for authentication
  • NODE_ENV: Environment mode (development/production)
  • APP_PORT: Port number for the MCP server (default: 3080)

Installation

  1. Clone the repository:
git clone <your-repository-url>
cd coingecko-mcp-server
  1. Install dependencies:
npm install
  1. Set up environment variables:
cp .env.example .env
# Edit .env with your CoinGecko API key and configuration
  1. Run Build:
npm run build
  1. Start the server:
npm run start

The server will be available at http://localhost:3080/mcp

MCP Client Configuration

For Cursor IDE

Add the following configuration to your Cursor settings:

{
  "mcp": {
    "servers": {
      "test-mcp": {
        "url": "http://localhost:3080/mcp",
        "transport": "http"
      }
    }
  }
}

For Claude Desktop

Add to your Claude Desktop configuration file:

{
  "mcpServers": {
    "test-mcp": {
      "url": "http://localhost:3080/mcp",
      "transport": "http"
    }
  }
}

Usage Examples

Once connected, you can ask your AI assistant questions like:

  • "What are the trending cryptocurrencies right now?"
  • "Show me the global DeFi market data"
  • "What companies hold Bitcoin?"
  • "Get the current price of Ethereum"
  • "Show me new liquidity pools created today"

API Rate Limits

This server respects CoinGecko's API rate limits:

  • Free tier: 10-50 calls/minute
  • Pro tier: Higher limits available with paid plans

Features

  • ✅ Real-time cryptocurrency data
  • ✅ Global market statistics
  • ✅ DeFi ecosystem insights
  • ✅ Exchange information
  • ✅ Corporate crypto holdings
  • ✅ Liquidity pool tracking
  • ✅ Historical token data
  • ✅ Trending analysis
  • ✅ Error handling and logging
  • ✅ Environment-based configuration

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request