ccxt-mcp-server

ccxt-mcp-server

3.3

If you are the rightful owner of ccxt-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The CCXT MCP Server is a Model Context Protocol server that allows LLMs to interact with cryptocurrency exchanges using the CCXT library.

The CCXT MCP Server is designed to facilitate interaction between Large Language Models (LLMs) and cryptocurrency exchanges by leveraging the CCXT library. It provides a standardized and asynchronous interface for tasks such as fetching balances, market data, and creating orders. Built using FastMCP, this server simplifies the process of creating MCP servers in Python, ensuring efficient and non-blocking operations. The server supports both public and private tools, with clear parameter descriptions and constraints, making it accessible for both LLMs and developers. Authentication is handled through API keys, secrets, and passphrases, ensuring secure access to private endpoints.

Features

  • CCXT Integration: Wraps common CCXT functions for exchange interaction.
  • Asynchronous: Built using asyncio and ccxt.async_support for efficient non-blocking operations.
  • Clear Tool Definitions: Uses typing.Annotated and pydantic.Field for clear parameter descriptions and constraints.
  • Authentication Handling: Supports API key, secret, and passphrase authentication for private endpoints.
  • Public & Private Tools: Provides separate tools for public market data and private account actions.

Tools

  1. fetch_account_balance

    Fetches the current account balance.

  2. fetch_deposit_address

    Fetches the deposit address for a currency.

  3. withdraw_cryptocurrency

    Withdraws cryptocurrency to a specified address.

  4. fetch_open_positions

    Fetches open positions (primarily for futures/derivatives).

  5. set_trading_leverage

    Sets leverage for a trading symbol (primarily for futures).

  6. create_spot_limit_order

    Places a new spot limit order.

  7. create_spot_market_order

    Places a new spot market order.

  8. create_futures_limit_order

    Places a new futures limit order.

  9. create_futures_market_order

    Places a new futures market order.

  10. cancel_order

    Cancels an existing open order.

  11. fetch_order_history

    Fetches the history of orders (open/closed).

  12. fetch_my_trade_history

    Fetches the history of trades executed by the user.

  13. fetch_ohlcv

    Fetches historical OHLCV (candlestick) data.

  14. fetch_funding_rate

    Fetches the funding rate for a perpetual futures contract.

  15. fetch_long_short_ratio

    Fetches the long/short ratio (requires exchange-specific params).

  16. fetch_option_contract_data

    Fetches market data for an options contract.

  17. fetch_market_ticker

    Fetches the latest price ticker data for a symbol.

  18. fetch_public_market_trades

    Fetches recent public trades for a symbol.

  19. calculate_technical_indicator_tool

    Fetches OHLCV data and calculates a specified technical indicator.

Related MCP Servers

View all finance servers →