mcp-server-coingecko: A CoinGecko MCP server

by bestjane

2 stars
353 downloads
Not rated
GitHub

About

mcp-server-coingecko is a Model Context Protocol server that provides tools for querying cryptocurrency data through the CoinGecko API. It is designed for large language models to access current prices, historical data, and market information.

Details

Author
bestjane
GitHub stars
2
Downloads
353
Categories
Other

- Get current time in YYYY-MM-DD HH:MM:SS format
- Retrieve current cryptocurrency price with optional currency target
- Fetch historical price data for custom time ranges
- Obtain detailed information about any supported coin
- List trending coins in the last 24 hours

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  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 mcp-server-coingecko: A CoinGecko MCP server
    Command (node, npx, python, etc.)

    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

From the repository

Run the server directly with uv run mcp-coingecko-server. No configuration is required. Once running, the server exposes five tools: get_current_time, get_coin_price, get_coin_history, get_coin_info, and get_trending_coins.

Claude Desktop / Cursor

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

{
    "mcpServers": {
        "mcp-server-coingecko: a coingecko mcp server": {
            "mcp-coingecko-server": {
                "command": "uv",
                "args": [
                    "run",
                    "mcp-coingecko-server"
                ]
            }
        }
    }
}

McpServers

{
    "mcp-coingecko-server": {
        "command": "uv",
        "args": [
            "run",
            "mcp-coingecko-server"
        ]
    }
}

mcp-server-coingecko: A CoinGecko MCP server

概述

一个用于加密货币数据查询的 Model Context Protocol 服务器。该服务器提供了通过大语言模型与 CoinGecko API 交互的工具,可以查询加密货币的价格、历史数据和市场信息。

工具函数

1. get_current_time
- 获取当前时间
- 返回: 当前时间的字符串格式 (YYYY-MM-DD HH:MM:SS)

2. get_coin_price
- 获取加密货币当前价格
- 输入:
- coin_id (string): 币种ID (如 'bitcoin', 'ethereum')
- vs_currency (string, 可选): 目标货币单位 (默认: 'usd')
- 返回: 当前价格数据

3. get_coin_history
- 获取加密货币历史价格数据
- 输入:
- coin_id (string): 币种ID
- days (string): 时间范围 (1/7/14/30/90/180/365/max)
- vs_currency (string, 可选): 目标货币单位 (默认: 'usd')
- 返回: 历史价格数据

4. get_coin_info
- 获取加密货币详细信息
- 输入:
- coin_id (string): 币种ID
- 返回: 币种详细信息

5. get_trending_coins
- 获取24小时内热门币种
- 返回: 热门币种列表

运行步骤

直接运行:

uv run mcp-coingecko-server

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.