MCP.so
Sign In

CCXT MCP Server

@lazy-dinosaur

About CCXT MCP Server

CCXT MCP Server bridges the gap between AI models and cryptocurrency trading by providing a standardized interface through the Model Context Protocol. Created to empower automated trading strategies, this tool allows AI assistants like Claude and GPT to directly interact with ove

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "ccxt-mcp": {
      "command": "npx",
      "args": [
        "@lazydino/ccxt-mcp"
      ]
    }
  }
}

Tools

20

Fetch markets from a cryptocurrency exchange

Fetch ticker information for a symbol on an exchange

Fetch all tickers from an exchange

Fetch order book for a symbol on an exchange

Fetch recent trades for a symbol on an exchange

Fetch OHLCV candlestick data for a symbol on an exchange

Create a new order using a configured account

Cancel an existing order using a configured account

Fetch information about a specific order using a configured account

Fetch all open orders using a configured account

Fetch all closed orders using a configured account

List all configured account names

Fetch account balance for a configured account

Fetch deposit history for a configured account

Fetch withdrawal history for a configured account

Fetch personal trade history for a configured account

Analyze trading performance for a configured account

Calculate win rate and profit metrics for a configured account

Analyze consecutive winning and losing trades

Analyze daily and monthly returns for a configured account

Overview

What is CCXT MCP Server?

A server that enables AI models to interact with cryptocurrency exchange APIs through the Model Context Protocol (MCP). It uses the CCXT library to provide access to over 100 cryptocurrency exchanges and their trading capabilities.

How to use CCXT MCP Server?

Install globally with npm install -g @lazydino/ccxt-mcp and run with ccxt-mcp, or use npx @lazydino/ccxt-mcp. Configure exchange accounts in Claude Desktop settings or a separate JSON file with --config. Supports both stdio and HTTP+SSE modes.

Key features of CCXT MCP Server

  • Market information retrieval (prices, order books, OHLCV)
  • Create market/limit orders and check status
  • View account balances and trading history
  • Comprehensive performance analysis and win rate calculation
  • Position management with capital ratio and leverage settings
  • Risk management with stop loss, take profit, and trailing profit

Use cases of CCXT MCP Server

  • Query real-time price data across multiple exchanges
  • Execute spot or futures trades with leverage via natural language
  • Analyze trading performance over custom time periods
  • Automate position sizing and risk parameters
  • Integrate AI models with cryptocurrency exchange APIs

FAQ from CCXT MCP Server

How do I configure exchange accounts?

You can include account credentials directly in the Claude Desktop settings JSON or use a separate config file specified with the --config flag. Accounts require an array with name, exchangeId, apiKey, secret, and optional defaultType.

What authentication is needed for HTTP+SSE mode?

When running with --sse, set mcpBearerToken in the config file. Clients must send the header Authorization: Bearer <mcpBearerToken> on requests.

Can it be used without Claude Desktop?

Yes. The server can run standalone via command line or Docker. It exposes MCP endpoints over stdio or HTTP+SSE, compatible with any MCP client.

What exchanges are supported?

Any exchange supported by the CCXT library (over 100), including Binance, Bybit, Coinbase, and more. Exchange IDs correspond to CCXT identifiers.

Are there any known limitations?

AI models may confuse futures and spot trading. Using the recommended prompt helps clarify trading intentions. The server itself does not handle authentication storage beyond the config file.

Frequently asked questions

How do I configure exchange accounts?

You can include account credentials directly in the Claude Desktop settings JSON or use a separate config file specified with the `--config` flag. Accounts require an array with name, exchangeId, apiKey, secret, and optional defaultType.

What authentication is needed for HTTP+SSE mode?

When running with `--sse`, set `mcpBearerToken` in the config file. Clients must send the header `Authorization: Bearer <mcpBearerToken>` on requests.

Can it be used without Claude Desktop?

Yes. The server can run standalone via command line or Docker. It exposes MCP endpoints over stdio or HTTP+SSE, compatible with any MCP client.

What exchanges are supported?

Any exchange supported by the CCXT library (over 100), including Binance, Bybit, Coinbase, and more. Exchange IDs correspond to CCXT identifiers.

Are there any known limitations?

AI models may confuse futures and spot trading. Using the recommended prompt helps clarify trading intentions. The server itself does not handle authentication storage beyond the config file.

Comments

More Other MCP servers