Get the FREE Ultimate OpenClaw Setup Guide →

mcp -ccxt

High-performance CCXT MCP server for cryptocurrency exchange integration

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio doggybee-mcp-server-ccxt mcp-server-ccxt \
  --env PROXY_URL="Proxy URL in http(s)://user:pass@host:port format (optional)" \
  --env USE_PROXY="true/false to enable a proxy (optional)" \
  --env KUCOIN_SECRET="Your KuCoin API secret (optional for private endpoints)" \
  --env BINANCE_SECRET="Your Binance API secret (optional for private endpoints)" \
  --env KUCOIN_API_KEY="Your KuCoin API key (optional for private endpoints)" \
  --env BINANCE_API_KEY="Your Binance API key (optional for private endpoints)" \
  --env DEFAULT_EXCHANGE="Default exchange (optional, e.g., binance)" \
  --env KUCOIN_PASSPHRASE="Your KuCoin passphrase (optional for private endpoints)" \
  --env DEFAULT_MARKET_TYPE="Default market type (optional, e.g., spot, futures)"

How to use

This CCXT MCP Server provides a unified MCP endpoint layer that connects to CCXT-supported cryptocurrency exchanges. It exposes a set of MCP tools for querying market data, retrieving tickers, order books, OHLCV candles, and more, as well as private actions if you supply API keys (such as placing orders or managing balances). The server is designed to be plugged into MCP-compatible LLM clients, allowing models to request exchange data or execute trades via a single, consistent API surface. You can start the server with the standard MCP command and configure defaults like the default exchange and market type through environment variables. The available public tools include listing exchanges, getting tickers, order books, OHLCV data, and market information; private tools enable account balances and order placement when API keys are configured.

How to install

Prerequisites:

  • Node.js installed (recommended LTS)
  • npm or pnpm for package management
  • Optional: an MCP client setup (e.g., Claude Desktop) to connect to the server

Installation steps:

  1. Install globally via npm (recommended):
npm install -g @mcpfun/mcp-server-ccxt
  1. Start the server (globally installed):
mcp-server-ccxt
  1. Alternatively, install locally and run via npm script:
# Clone the repository (or install from npm registry if you have access)
git clone https://github.com/doggybee/mcp-server-ccxt.git
cd mcp-server-ccxt

# Install dependencies
npm install

# Build if required (check repository specifics)
npm run build

# Start the server
npm start
  1. If you prefer to run via npx (without installation):
npx @mcpfun/mcp-server-ccxt

Configuration:

  • Create and edit an environment file or export environment variables as needed (see environment variables in mcp_config).
  • Ensure your API keys and proxy settings (if used) are properly configured before starting the server.

Additional notes

Tips and reminders:

  • API keys: Only enable permissions you need; avoid enabling withdrawal where not required.
  • Environment variables: Use DEFAULT_EXCHANGE and DEFAULT_MARKET_TYPE to simplify client requests.
  • Proxies: If behind a proxy, enable USE_PROXY and provide PROXY_URL. Some exchanges may require specific proxy configurations.
  • Troubleshooting: If MCP messages fail to route, verify that the server process is running and that the MCP client is configured to target the correct command (mcp-server-ccxt).
  • Performance: The MCP CCXT server includes caching and rate-limiting; tune defaults via environment variables as needed for your workload.
  • Networking: Ensure your hosting environment allows outbound connections to exchange endpoints and that any firewall rules permit MCP traffic.

Related MCP Servers

Sponsor this space

Reach thousands of developers