Skip to main content
Glama
Wh0FF24

crypto-data-mcp

by Wh0FF24

crypto-data-mcp

CI PyPI License: MIT

Real-time cryptocurrency data for AI coding tools. An MCP server that gives Claude Code, Cursor, and other MCP-compatible tools access to live prices, market data, token info, and historical charts -- powered by CoinGecko.

Built by Whoff Agents.

Installation

Fastest: one-liner with uvx (no install needed)

uvx crypto-data-mcp

Install from PyPI

pip install crypto-data-mcp
# or
uv add crypto-data-mcp

From source

git clone https://github.com/Wh0FF24/crypto-data-mcp.git
cd crypto-data-mcp
uv sync

Related MCP server: CoinGecko MCP Server

Usage with Claude Code

Add to your Claude Code MCP config at ~/.claude/claude_desktop_config.json:

{
  "mcpServers": {
    "crypto-data": {
      "command": "uvx",
      "args": ["crypto-data-mcp"]
    }
  }
}

Or if installed via pip/uv:

{
  "mcpServers": {
    "crypto-data": {
      "command": "crypto-data-mcp"
    }
  }
}

Then in Claude Code, you can ask things like:

  • "What's the current price of Bitcoin?"

  • "Compare ETH, SOL, and AVAX prices"

  • "Show me the crypto market overview"

  • "Get me 30 days of BTC price history"

  • "What's Ethereum's all-time high?"

Available Tools

get_price

Get the current price for a single token.

Parameters:

Param

Type

Default

Description

symbol

string

required

Token symbol (BTC, ETH, SOL) or CoinGecko ID

currency

string

"usd"

Quote currency (usd, eur, gbp, etc.)

Example response:

{
  "symbol": "BTC",
  "coingecko_id": "bitcoin",
  "currency": "usd",
  "price": 67250.00,
  "price_change_24h_pct": -1.82,
  "market_cap": 1325000000000,
  "volume_24h": 28500000000,
  "last_updated_at": 1712000000
}

get_prices

Get prices for multiple tokens in one call. More efficient than calling get_price repeatedly.

Parameters:

Param

Type

Default

Description

symbols

list[string]

required

List of symbols (max 50)

currency

string

"usd"

Quote currency

Example response:

[
  { "symbol": "BTC", "price": 67250.00, "price_change_24h_pct": -1.82 },
  { "symbol": "ETH", "price": 2064.00, "price_change_24h_pct": -2.15 },
  { "symbol": "SOL", "price": 79.00, "price_change_24h_pct": -3.10 }
]

get_market_overview

Get a crypto market overview with top movers, market cap, and sentiment.

Parameters: None required.

Example response:

{
  "total_market_cap_usd": 2390000000000,
  "total_volume_24h_usd": 85000000000,
  "btc_dominance_pct": 55.95,
  "eth_dominance_pct": 11.20,
  "active_cryptocurrencies": 17887,
  "fear_greed_index": { "value": 35, "classification": "Fear" },
  "top_gainers_24h": [ "..." ],
  "top_losers_24h": [ "..." ]
}

get_token_info

Get detailed information about a token including description, supply, ATH/ATL, and multi-timeframe price changes.

Parameters:

Param

Type

Default

Description

symbol

string

required

Token symbol or CoinGecko ID

Example response:

{
  "symbol": "ETH",
  "name": "Ethereum",
  "description": "Ethereum is a decentralized...",
  "market_cap_rank": 2,
  "website": "https://www.ethereum.org/",
  "current_price_usd": 2064.00,
  "ath_usd": 4946.05,
  "ath_date": "2021-11-10T14:24:19.604Z",
  "atl_usd": 0.432979,
  "circulating_supply": 120500000,
  "total_supply": 120500000,
  "max_supply": null,
  "price_change_24h_pct": -2.15,
  "price_change_7d_pct": -5.30,
  "price_change_30d_pct": -12.40
}

get_historical_prices

Get historical price data as timestamp/price pairs for charting and analysis.

Parameters:

Param

Type

Default

Description

symbol

string

required

Token symbol or CoinGecko ID

days

int

7

Days of history (1-365)

currency

string

"usd"

Quote currency

Granularity: 5-minute for 1 day, hourly for 1-90 days, daily for 90+ days.

Example response:

{
  "symbol": "BTC",
  "currency": "usd",
  "days": 7,
  "data_points": 168,
  "prices": [
    [1711900000000, 67100.00],
    [1711903600000, 67250.00]
  ]
}

Supported Tokens

The server includes a built-in mapping for 70+ popular tokens (BTC, ETH, SOL, USDT, USDC, BNB, XRP, ADA, DOGE, AVAX, and many more). For tokens not in the built-in map, it automatically searches CoinGecko to resolve the symbol.

Data Source

All data comes from the CoinGecko API (free tier). The server includes:

  • 60-second caching to reduce API calls

  • Automatic retry with backoff on rate limits

  • Graceful error handling for network issues and invalid inputs

The free CoinGecko tier allows approximately 10-30 requests per minute.

Development

# Install dependencies
uv sync

# Run tests (uses live CoinGecko API -- may hit rate limits)
uv run pytest tests/ -v

# Run the server directly
uv run crypto-data-mcp

Pricing

Free tier -- This open-source MCP server with CoinGecko data is free.

Pro tier -- Coming soon at $19/mo with:

  • Real-time WebSocket price feeds

  • DEX data (Uniswap, Raydium, Jupiter)

  • On-chain analytics

  • Wallet and portfolio tracking

  • Higher rate limits

  • Priority support

Visit whoffagents.com for updates.

Get the Next One Before It Hits GitHub

We ship a new MCP tool or agent pattern most weeks. Subscribers get early access + the build notes that don't make it into the README. → Subscribe free at whoffagents.com

From the Team That Ships in Public

We build in the open and write up what breaks:

License

MIT

  • whoff-agents — free Claude Code skills for multi-agent workflows, from the same team. Includes context-anchor skill + Atlas Starter Kit.

Available Tools

5 tools
get_historical_pricesA

Get historical price data for a cryptocurrency over a specified number of days. Returns an ordered array of [timestamp_ms, price] pairs suitable for charting, trend analysis, backtesting, or computing metrics like volatility and drawdown. Data granularity varies automatically: 5-minute intervals for 1 day, hourly for 2-90 days, and daily for 91-365 days. Use this when you need a price series rather than a single current price. For just the current price, use get_price instead. Valid range: 1 to 365 days. Accepts common symbols or CoinGecko IDs. The server retries once with a 5-second backoff on rate limits.

ParametersJSON Schema
NameRequiredDescriptionDefault
daysNo
symbolYes
currencyNousd

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.9/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Despite having no annotations, the description fully discloses behavioral traits: returns ordered [timestamp_ms, price] pairs, automatic granularity adjustment based on days, retry with 5-second backoff on rate limits, and accepts common symbols or CoinGecko IDs. No contradictions with annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured and concise: front-loaded with purpose, followed by output format, use cases, granularity details, usage guidance, and fallback behavior. Every sentence provides necessary information without redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and an output schema present, the description covers all critical aspects: purpose, parameters, behavior, error handling (retry), and differentiation from siblings. It is sufficiently detailed for correct tool invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description compensates by explaining the days parameter's effect on granularity (5-min, hourly, daily), default value (7), valid range, and that symbol accepts common symbols or CoinGecko IDs. It does not detail the currency parameter beyond default, but adds substantial meaning overall.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: retrieving historical price data for a cryptocurrency over a specified number of days. It distinguishes itself from sibling tools by explicitly contrasting with get_price for single current prices and mentioning use cases like charting and backtesting.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit guidance on when to use this tool ('when you need a price series rather than a single current price') and points to the sibling tool get_price as the alternative. Also specifies valid range (1-365 days) and data granularity variations, enabling correct decision-making.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_market_overviewA

Get a broad snapshot of the entire cryptocurrency market. Returns total market capitalisation, 24-hour trading volume, Bitcoin dominance percentage, Ethereum dominance percentage, total number of active cryptocurrencies, the Fear and Greed index (0-100, where 0 is Extreme Fear and 100 is Extreme Greed), the top 5 gainers and top 5 losers by 24-hour price change. Use this tool when you want macro context before analysing individual tokens, or when the user asks about overall market sentiment, bull/bear conditions, or which tokens are moving most. Takes no parameters. Data is sourced from CoinGecko global endpoints and the Alternative.me Fear and Greed index.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Describes returns in detail, mentions data sources (CoinGecko, Alternative.me), and notes it takes no parameters. No destructive effects implied. Lacks mention of data freshness or rate limits, but for a read-only no-param tool this is sufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Concise yet informative. Purpose stated first, then returns, usage guidance, and data source. Every sentence adds value with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Provides enough context for an agent to decide when to use it. Since output schema exists, agent can see structured return details. Could mention the output schema explicitly, but not necessary.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters exist, so no additional semantics needed beyond noting 'takes no parameters.' Schema coverage is 100%. Baseline for 0 params is 4, and the description meets that.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clearly states it gets a broad snapshot of the entire cryptocurrency market and lists specific data returned (market cap, volume, dominance, etc.). Distinguishes well from sibling tools that focus on individual tokens or prices.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly says when to use: for macro context before individual analysis or when user asks about market sentiment. Does not explicitly state when not to use, but the sibling list implies it is not for single token queries.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_priceA

Get the current price, 24-hour change, market cap, and trading volume for a single cryptocurrency token. Use this when you need live market data for one token. For multiple tokens, prefer get_prices to avoid redundant API calls. Accepts common symbols (BTC, ETH, SOL, DOGE) or full CoinGecko IDs (bitcoin, ethereum). Prices update approximately every 60 seconds due to server-side caching. Returns an error JSON if the token is not found or the CoinGecko API is temporarily unavailable.

ParametersJSON Schema
NameRequiredDescriptionDefault
symbolYes
currencyNousd

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description fully carries the burden. It discloses server-side caching (60-second update), error return on missing token or API unavailability, and implicitly indicates it is a read-only, non-destructive operation. No contradictions.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is four sentences, front-loading the main action. Every sentence adds value—purpose, when to use, accepted formats, caching behavior, error handling. No redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has an output schema, the description covers key return fields (price, 24h change, market cap, volume) and error behavior. It addresses all relevant aspects for a simple single-token price tool, making it complete in context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so description must compensate. It explains symbol accepts common symbols or full CoinGecko IDs, adding valuable context. However, it does not elaborate on the 'currency' parameter beyond what the schema (title and default) provides, leaving a gap in compensation.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool retrieves current price, 24h change, market cap, and volume for a single token. It distinguishes from sibling 'get_prices' by explicitly noting it's for one token while get_prices is for multiple. Acceptable symbol formats are specified, making purpose unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly says when to use ('need live market data for one token') and when not to ('for multiple tokens, prefer get_prices'). It also mentions caching and error handling, providing clear context for invocation.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_pricesA

Get current prices for up to 50 cryptocurrency tokens in a single request. Always prefer this over multiple get_price calls when you need data for two or more tokens. It batches them into one CoinGecko API call and is significantly more efficient. Returns the same fields as get_price for each token. Symbols that cannot be resolved are omitted from the result without failing the entire batch. Accepts common symbols (BTC, ETH, SOL) or CoinGecko IDs. Returns an error if the list is empty or exceeds 50 tokens.

ParametersJSON Schema
NameRequiredDescriptionDefault
symbolsYes
currencyNousd

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description discloses important behaviors: same fields as get_price, graceful omission of unresolved symbols, acceptance of multiple symbol formats, and error conditions. However, it could mention rate limits or authentication requirements for fuller transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise at six sentences, each adding essential information. It is well-structured: purpose, usage guide, efficiency claim, field consistency, error handling, and input format. No redundant text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given two parameters, no enums, an output schema, and sibling tools, the description covers purpose, usage, error behavior, and input constraints. It omits the list of supported currencies for the 'currency' parameter, but the default and context of cryptocurrency pricing mitigate this gap. Overall comprehensive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0% description coverage, so the description must compensate. It adds meaning for 'symbols' (accepts common symbols or CoinGecko IDs) but does not clarify valid values for 'currency' beyond the default 'usd'. The added value is partial.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool gets current prices for up to 50 cryptocurrency tokens, using a specific verb ('get') and resource ('prices'), with constraints on batch size. It explicitly distinguishes itself from sibling 'get_price' by noting efficiency for multiple tokens.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives explicit guidance: 'Always prefer this over multiple get_price calls when you need data for two or more tokens.' It also explains error handling (empty list or exceeding 50 tokens) and acceptable input types, providing clear when-to-use context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_token_infoA

Get detailed fundamental information about a cryptocurrency token, including its project description, official website, market cap rank, all-time high and all-time low prices with dates, circulating and total supply, fully diluted valuation, and price change percentages over 24 hours, 7 days, and 30 days. Use this when you need more than just a current price, for example for fundamental analysis, understanding a token history, or answering questions about supply dynamics. For just the current price or market cap, use get_price instead. Accepts common symbols (BTC, ETH) or CoinGecko IDs. Project descriptions are truncated to 500 characters.

ParametersJSON Schema
NameRequiredDescriptionDefault
symbolYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.7/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so the description carries the full burden. It discloses that project descriptions are truncated to 500 characters, and that it accepts both symbols and IDs. It does not explicitly state read-only nature or any other behaviors like data freshness, but the truncation detail and input flexibility add value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single focused paragraph that front-loads the main purpose. Every sentence contributes useful information, with no wasted words. It is appropriately sized for the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given one required parameter and an existing output schema, the description provides a thorough summary of returned data (market cap rank, ATH/ATL, supply, price changes, etc.). It also mentions the truncation limit, covering all necessary context for agent usage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% with no parameter description. The description compensates by stating 'Accepts common symbols (BTC, ETH) or CoinGecko IDs,' which adds meaningful guidance beyond the schema's simple 'Symbol' title.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Get detailed fundamental information about a cryptocurrency token' and lists specific data points like project description, market cap rank, ATH/ATL, supply, etc. It distinguishes from siblings by explicitly mentioning 'For just the current price or market cap, use get_price instead.'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit when-to-use context: 'when you need more than just a current price, for example for fundamental analysis, understanding a token history, or answering questions about supply dynamics.' Also tells when not to use it, naming the alternative tool get_price, and specifies accepted input formats (common symbols or CoinGecko IDs).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 5 tool updatesv1.0.0
    • First observedget_historical_prices
    • First observedget_market_overview
    • First observedget_price
    • First observedget_prices
    • First observedget_token_info

TDQS

A4.6/5.0
Disambiguation5/5

Each tool has a clearly distinct purpose: get_price for a single current price, get_prices for batch, get_market_overview for macro data, get_token_info for fundamentals, get_historical_prices for time series. No overlap.

Naming Consistency5/5

All tools follow the 'get_X' pattern with descriptive noun phrases (price, prices, market_overview, token_info, historical_prices), providing excellent consistency.

Tool Count5/5

5 tools is well-scoped for a crypto data server, covering the essential endpoints without being excessive or insufficient.

Completeness4/5

The set covers current prices (single/batch), market overview, token fundamentals, and historical data. Minor gaps like token search or comparison tools, but core CRUD-like operations are present.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Real-time crypto market intelligence MCP. Get prices, trending coins, market overview, top coins by market cap, and portfolio value — all through natural language in Claude, Cursor, or any MCP client
    6
    MIT
  • A
    license
    A
    quality
    F
    maintenance
    An MCP server for CoinGecko that connects any MCP-compatible client to free crypto market data, providing tools for prices, market caps, trending coins, historical data, and global stats.
    8
    50
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    MCP server providing market data for 15,000+ cryptocurrencies including prices, history, trends, and deep coin metadata via CoinGecko.
    101
    1
    Apache 2.0

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Wh0FF24/crypto-data-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server