mcp-crypto

mcp-crypto

Provides real-time cryptocurrency data from CoinGecko, including prices, market data, historical data, and coin search.

Category
Visit Server

README

# CoinGecko MCP Server

A Model Context Protocol (MCP) server that provides real-time cryptocurrency data from the CoinGecko API.

## Features

- **get_price**: Get current price for any cryptocurrency
- **get_market_data**: Get detailed market data including market cap, volume, etc.
- **get_historical_data**: Get historical price data with customizable time periods
- **search_coins**: Search for cryptocurrencies by name or symbol

## Installation

1. Clone the repository
2. Install dependencies:
   ```bash
   npm install
   ```

Build

npm run build

Usage

Development

npm run dev

Production

npm start

Testing

npm test

Tools

get_price

Get the current price for a cryptocurrency.

Parameters:

  • coin_id (optional): CoinGecko coin ID (e.g., "bitcoin", "ethereum")
  • symbol (optional): Cryptocurrency symbol (e.g., "BTC", "ETH")
  • vs_currency (optional): Target currency (default: "usd")

Example:

{
  "symbol": "TRX",
  "vs_currency": "usd"
}

get_market_data

Get detailed market data for a cryptocurrency.

Parameters:

  • coin_id (optional): CoinGecko coin ID (e.g., "bitcoin", "ethereum")
  • symbol (optional): Cryptocurrency symbol (e.g., "BTC", "ETH")
  • vs_currency (optional): Target currency (default: "usd")

Example:

{
  "symbol": "BTC"
}

get_historical_data

Get historical price data.

Parameters:

  • coin_id (optional): CoinGecko coin ID (e.g., "bitcoin", "ethereum")
  • symbol (optional): Cryptocurrency symbol (e.g., "BTC", "ETH")
  • vs_currency (optional): Target currency (default: "usd")
  • days (optional): Number of days (1-365, default: 1)
  • interval (optional): Data interval (daily/hourly)

Example:

{
  "symbol": "ETH",
  "days": 7,
  "interval": "daily"
}

search_coins

Search for cryptocurrencies by name or symbol.

Parameters:

  • query (required): Search query

Example:

{
  "query": "tron"
}

Integration

With Claude Desktop

Add to your MCP settings:

{
  "mcpServers": {
    "coingecko": {
      "command": "node",
      "args": ["/path/to/coingecko-mcp-server/build/index.js"]
    }
  }
}

Rate Limits

CoinGecko's free API has rate limits:

  • 10-30 calls per minute
  • Please be respectful of their service

License

MIT


## Key Changes from OKX to CoinGecko

1. **API Base URL**: Changed to `https://api.coingecko.com/api/v3`
2. **Endpoints**: Using CoinGecko's endpoints:
   - `/simple/price` for basic price data
   - `/coins/markets` for detailed market data
   - `/coins/{id}/market_chart` for historical data
   - `/search` for coin search
3. **Parameters**: Adapted to CoinGecko's parameter structure
4. **Data Format**: Updated types to match CoinGecko's response format
5. **Coin Identification**: Added support for both coin_id and symbol lookup
6. **Error Handling**: Added rate limit detection (HTTP 429)

## Setup Instructions

1. **Create the project directory:**
   ```bash
   mkdir coingecko-mcp-server
   cd coingecko-mcp-server
  1. Create all the files above in their respective locations

  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    
  4. Test the server:

    npm test
    

This CoinGecko-based server should be much more reliable than the OKX version, as CoinGecko has excellent uptime and a well-designed API.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured