ccxt-mcp-server
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
fetch_account_balance
Fetches the current account balance.
fetch_deposit_address
Fetches the deposit address for a currency.
withdraw_cryptocurrency
Withdraws cryptocurrency to a specified address.
fetch_open_positions
Fetches open positions (primarily for futures/derivatives).
set_trading_leverage
Sets leverage for a trading symbol (primarily for futures).
create_spot_limit_order
Places a new spot limit order.
create_spot_market_order
Places a new spot market order.
create_futures_limit_order
Places a new futures limit order.
create_futures_market_order
Places a new futures market order.
cancel_order
Cancels an existing open order.
fetch_order_history
Fetches the history of orders (open/closed).
fetch_my_trade_history
Fetches the history of trades executed by the user.
fetch_ohlcv
Fetches historical OHLCV (candlestick) data.
fetch_funding_rate
Fetches the funding rate for a perpetual futures contract.
fetch_long_short_ratio
Fetches the long/short ratio (requires exchange-specific params).
fetch_option_contract_data
Fetches market data for an options contract.
fetch_market_ticker
Fetches the latest price ticker data for a symbol.
fetch_public_market_trades
Fetches recent public trades for a symbol.
calculate_technical_indicator_tool
Fetches OHLCV data and calculates a specified technical indicator.