Get the FREE Ultimate OpenClaw Setup Guide →

mcp -ccxt

MCP server from carlosatta/mcp-server-ccxt

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio carlosatta-mcp-server-ccxt node index.js \
  --env HOST="0.0.0.0" \
  --env PORT="3000" \
  --env LOG_LEVEL="info" \
  --env SAFE_MODE="false (set to true to disable all trading operations; read-only access remains available)" \
  --env KRAKEN_SECRET="your_kraken_secret" \
  --env BINANCE_SECRET="your_binance_secret" \
  --env KRAKEN_API_KEY="your_kraken_api_key" \
  --env BINANCE_API_KEY="your_binance_api_key" \
  --env COINBASE_SECRET="your_coinbase_secret" \
  --env COINBASE_API_KEY="your_coinbase_api_key" \
  --env DEFAULT_EXCHANGE="coinbase"

How to use

This MCP server exposes CCXT-powered exchange APIs over Server-Sent Events (SSE). It provides a set of public tools (read-only) for market data and public information, plus private tools when you supply credentials. You can connect via SSE to receive tool results in real-time, or you can send MCP messages to request specific tool executions. Use the provided examples to understand the structure of tool calls, such as get_ticker or batch_get_tickers, or to perform trading operations if SAFE_MODE is disabled and you have valid API keys.

How to install

Prerequisites:

  • Node.js installed (LTS version)
  • npm or yarn
  • Access to exchange API keys if you intend to use private tools

installation steps:

  1. Clone the repository git clone https://github.com/slug/carlosatta-mcp-server-ccxt.git
  2. Install dependencies cd carlosatta-mcp-server-ccxt npm install
  3. Create an environment file or set environment variables as described in the README For example, create a .env with SAFE_MODE=false, HOST=0.0.0.0, PORT=3000, and API keys
  4. Start the server npm start
  5. Verify the server is running by visiting http://0.0.0.0:3000/ or by using the health endpoint

Additional notes

Tips and common issues:

  • Security: Enable SAFE_MODE in production to disable all trading operations. Use separate API keys for read-only vs trading actions and restrict IPs on keys.
  • If tools don’t appear, restart the server after code changes and check logs for errors.
  • Ensure .env (or equivalent environment variables) exists before starting the server to avoid startup failures.
  • When using private tools, ensure API credentials are correctly configured in the environment.
  • The server supports multiple exchanges via CCXT; ensure you have credentials for the exchanges you want to access.

Related MCP Servers

Sponsor this space

Reach thousands of developers