CoinGecko API Server MCP

CoinGecko API Server MCP

A Node.js Express server that provides access to CoinGecko's cryptocurrency data through a comprehensive API interface, supporting both free and Pro APIs with automatic fallback functionality.

GaplyDev01

Research & Data
Visit Server

README

CoinGecko API Server MCP

Version License

A powerful and flexible Node.js Express server that provides a comprehensive interface to the CoinGecko cryptocurrency data API. This server supports both the free public API and the Pro API with automatic fallback.

Quick Start

# Install and run with npx
npx coingecko-api-server

# Or clone and install manually
git clone https://github.com/GaplyDev01/coingecko-api-server.git
cd coingecko-api-server
npm install
npm run setup
npm start

Features

  • 🔄 Dual API Support: Seamlessly works with both CoinGecko Free and Pro APIs
  • 🔙 Automatic Fallback: Falls back to free API during development
  • 🔌 RESTful Endpoints: Simple and intuitive API interface
  • 🛡️ Robust Error Handling: Detailed error messages and proper status codes
  • 🧩 Simple Setup: Quick installation with guided setup
  • 📝 Comprehensive Documentation: Clear usage instructions

Setup Options

Option 1: Using npx (Recommended)

This is the fastest way to get started:

npx coingecko-api-server

The interactive setup will:

  1. Ask where to install the server
  2. Clone the repository
  3. Install dependencies
  4. Prompt for your CoinGecko API key (optional)
  5. Configure your server port

Option 2: Manual Setup

If you prefer to set up manually:

# Clone the repository
git clone https://github.com/GaplyDev01/coingecko-api-server.git
cd coingecko-api-server

# Install dependencies
npm install

# Run the setup script
npm run setup

# Start the server
npm start

Configuration

The server can be configured using environment variables in the .env file:

Variable Description Default
PORT The port the server will listen on 3000
COINGECKO_API_KEY Your CoinGecko Pro API key -

API Endpoints

The server provides access to all essential CoinGecko API endpoints:

Basic Endpoints

  • GET /api/ping - Check CoinGecko API status

Price Data

  • GET /api/simple/price - Get price data for specified coins

    • Query params: ids, vs_currencies, include_market_cap, include_24hr_vol, include_24hr_change, include_last_updated_at, precision
  • GET /api/simple/supported_vs_currencies - Get list of supported vs currencies

Coin Data

  • GET /api/coins/markets - Get market data for coins
    • Query params: vs_currency, ids, category, order, per_page, page, sparkline, price_change_percentage

Market Data

  • GET /api/global - Get global cryptocurrency data
  • GET /api/search/trending - Get trending coins

Full API documentation can be found in the CoinGecko API Documentation.

MCP Integration Information

This is an MCP (Marketplace Component Program) server compatible with AI systems like Claude. To use this server in Claude Desktop:

  1. Start the CoinGecko API server locally
  2. In Claude Desktop, install the MCP by providing the server URL (e.g., http://localhost:3000)
  3. Claude can now access cryptocurrency data through the MCP interface

The server implements the full MCP specification with JSON-RPC 2.0:

  • JSON-RPC 2.0 Endpoint: /rpc - Handles all method calls from AI clients
  • Schema Definition: /mcp/schema - Defines available tools and parameters
  • Standardized Communication: Follows MCP protocol for seamless AI integration

For detailed integration instructions, see MCP_INTEGRATION.md.

Pro API vs Free API

This server supports both the CoinGecko Pro API and the free API:

  • Pro API: Higher rate limits, no throttling, additional endpoints. Requires an API key.
  • Free API: Limited to ~30 calls/minute with potential rate limiting.

The server automatically detects if an API key is provided and uses the appropriate API. If no key is provided, it will fall back to the free API, which is ideal for development or personal use.

For more details about the Pro API setup, see USING_COINGECKO_PRO.md.

Development

# Run in development mode with hot reload
npm run dev

The server uses direct fetch calls to the CoinGecko API, ensuring compatibility with both free and Pro versions.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

Recommended Servers

Crypto Price & Market Analysis MCP Server

Crypto Price & Market Analysis MCP Server

A Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.

Featured
TypeScript
MCP PubMed Search

MCP PubMed Search

Server to search PubMed (PubMed is a free, online database that allows users to search for biomedical and life sciences literature). I have created on a day MCP came out but was on vacation, I saw someone post similar server in your DB, but figured to post mine.

Featured
Python
dbt Semantic Layer MCP Server

dbt Semantic Layer MCP Server

A server that enables querying the dbt Semantic Layer through natural language conversations with Claude Desktop and other AI assistants, allowing users to discover metrics, create queries, analyze data, and visualize results.

Featured
TypeScript
mixpanel

mixpanel

Connect to your Mixpanel data. Query events, retention, and funnel data from Mixpanel analytics.

Featured
TypeScript
Sequential Thinking MCP Server

Sequential Thinking MCP Server

This server facilitates structured problem-solving by breaking down complex issues into sequential steps, supporting revisions, and enabling multiple solution paths through full MCP integration.

Featured
Python
Nefino MCP Server

Nefino MCP Server

Provides large language models with access to news and information about renewable energy projects in Germany, allowing filtering by location, topic (solar, wind, hydrogen), and date range.

Official
Python
Vectorize

Vectorize

Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.

Official
JavaScript
Mathematica Documentation MCP server

Mathematica Documentation MCP server

A server that provides access to Mathematica documentation through FastMCP, enabling users to retrieve function documentation and list package symbols from Wolfram Mathematica.

Local
Python
kb-mcp-server

kb-mcp-server

An MCP server aimed to be portable, local, easy and convenient to support semantic/graph based retrieval of txtai "all in one" embeddings database. Any txtai embeddings db in tar.gz form can be loaded

Local
Python
Research MCP Server

Research MCP Server

The server functions as an MCP server to interact with Notion for retrieving and creating survey data, integrating with the Claude Desktop Client for conducting and reviewing surveys.

Local
Python