Skip to main content
Glama
sapph1re

FinData MCP

crypto_price

Get cryptocurrency price, market cap, 24-hour volume, and 7-day sparkline data using CoinGecko IDs to track digital asset performance.

Instructions

Cryptocurrency price, market cap, 24h volume, and 7-day sparkline via CoinGecko.

Args: coin_id: CoinGecko coin ID in lowercase-hyphenated format (e.g. bitcoin, ethereum, solana, chainlink) symbol: Alias for coin_id coin: Alias for coin_id

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
coin_idNo
symbolNo
coinNo

Implementation Reference

  • The `crypto_price` tool handler implementation in `server.py`. It accepts coin identification, validates it, and calls the underlying client to perform the request.
    @mcp.tool()
    def crypto_price(coin_id: str = "", symbol: str = "", coin: str = "") -> dict[str, Any]:
        """Cryptocurrency price, market cap, 24h volume, and 7-day sparkline via CoinGecko.
    
        Args:
            coin_id: CoinGecko coin ID in lowercase-hyphenated format (e.g. bitcoin, ethereum, solana, chainlink)
            symbol: Alias for coin_id
            coin: Alias for coin_id
        """
        resolved = coin_id or symbol or coin
        if not resolved:
            return {"error": "Missing required parameter: provide 'coin_id', 'symbol', or 'coin' (e.g. coin_id='bitcoin')"}
        return _get_client().call("crypto_price", coin_id=resolved)

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/sapph1re/findata-mcp'

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