Skip to main content
Glama
Nayshins

Cryptocurrency Market Data MCP Server

by Nayshins

list-exchanges

Retrieve a comprehensive list of cryptocurrency exchanges supported by the Cryptocurrency Market Data MCP Server for accessing real-time market data and trading information.

Instructions

List all supported cryptocurrency exchanges

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Handler logic for the 'list-exchanges' tool: checks the tool name and returns a formatted list of all supported exchanges from SUPPORTED_EXCHANGES.
    if name == "list-exchanges":
        exchange_list = "\n".join([f"- {ex.upper()}" for ex in SUPPORTED_EXCHANGES.keys()])
        return [
            types.TextContent(
                type="text",
                text=f"Supported exchanges:\n\n{exchange_list}"
            )
        ]
  • src/server.py:149-156 (registration)
    Registration of the 'list-exchanges' tool in the handle_list_tools function, including its name, description, and empty input schema.
    types.Tool(
        name="list-exchanges",
        description="List all supported cryptocurrency exchanges",
        inputSchema={
            "type": "object",
            "properties": {}
        },
    ),
  • Input schema for the 'list-exchanges' tool, which requires no parameters.
    inputSchema={
        "type": "object",
        "properties": {}
    },
  • Global dictionary defining all supported exchanges, directly used by the list-exchanges handler to generate the exchange list.
    SUPPORTED_EXCHANGES = {
        'binance': ccxt.binance,
        'coinbase': ccxt.coinbase,
        'kraken': ccxt.kraken,
        'kucoin': ccxt.kucoin,
        'hyperliquid': ccxt.hyperliquid,
        'huobi': ccxt.huobi,
        'bitfinex': ccxt.bitfinex,
        'bybit': ccxt.bybit,
        'okx': ccxt.okx,
        'mexc': ccxt.mexc
    }

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/Nayshins/mcp-server-ccxt'

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