MCP Hub
Back to servers

market-data-mcp

Integrates cryptocurrency market data from CoinGecko, the Fear & Greed Index, and CryptoPanic news into a single toolset for AI agents. It enables users to retrieve global market statistics, trending assets, coin-specific details, and real-time news feeds.

glama
Updated
Mar 26, 2026

market-data-mcp

market-data-mcp is an MCP server that combines broad crypto market data from CoinGecko, the Crypto Fear & Greed Index, and optional CryptoPanic news into one tool surface for agents.

What It Covers

  • Global market overview
  • Fear & Greed index with history
  • Top coins by market cap
  • Detailed coin lookups by CoinGecko ID
  • Search for CoinGecko IDs
  • Trending assets
  • Optional news feed from CryptoPanic

Why This Server Exists

Most agent tasks need a quick high-level market snapshot before deeper exchange or derivatives analysis. This server provides that common layer with:

  • public market data sources
  • simple MCP tool contracts
  • bounded input handling
  • optional news support without requiring it for the rest of the server

Requirements

  • Python 3.11+
  • No API key is required for the core tools
  • Optional keys improve rate limits or enable news

Quick Start

  1. Create your local env file:
cp secrets/market_data.env.example secrets/market_data.env
  1. Optionally set:
  • COINGECKO_API_KEY
  • CRYPTOPANIC_API_KEY
  1. Run locally:
pip install -e .
python -m market_data_mcp

Docker

docker build -t market-data-mcp .
docker run --rm -p 38089:38089 --env-file secrets/market_data.env market-data-mcp

Claude / Codex MCP Registration

claude mcp add market-data --transport http http://127.0.0.1:38089/mcp

Tools

ToolSourceNotes
get_global_marketCoinGeckoGlobal market cap, dominance, volume
get_fear_greedalternative.meCurrent value plus history
get_top_coinsCoinGeckoRanked by market cap
get_coin_infoCoinGeckoDetailed market data for one asset
search_coinCoinGeckoResolve CoinGecko IDs
get_trendingCoinGeckoCurrent trending assets
get_newsCryptoPanicRequires CRYPTOPANIC_API_KEY

Configuration

VariableDefaultDescription
COINGECKO_API_KEYemptyOptional demo key for better CoinGecko limits
CRYPTOPANIC_API_KEYemptyEnables get_news
COINGECKO_BASE_URLhttps://api.coingecko.com/api/v3CoinGecko base URL
FEAR_GREED_BASE_URLhttps://api.alternative.meFear & Greed API base URL
MCP_TRANSPORThttphttp, streamable-http, sse, or stdio
MCP_HOST0.0.0.0Bind host
PORT38089HTTP listen port
MCP_PATH/mcpMCP endpoint path
MCP_ALLOWED_HOSTSemptyExtra allowed hosts, comma-separated
MCP_ALLOWED_ORIGINSemptyExtra allowed origins, comma-separated

Rate Limits

  • CoinGecko free tier is limited; a demo key helps substantially
  • Fear & Greed generally works without authentication
  • CryptoPanic free tier is limited and news is optional in this server

Development

Install test dependencies and run tests:

pip install -e ".[test]"
pytest

Security Notes

  • Do not commit secrets/market_data.env
  • If you expose HTTP externally, put it behind your own auth or trusted network boundary

Reviews

No reviews yet

Sign in to write a review