home / mcp / crypto mcp server

Crypto MCP Server

Cryptocurrency Market Data MCP Server

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "nayshins-mcp-server-ccxt": {
      "command": "python",
      "args": [
        "/path/to/crypto_server.py"
      ]
    }
  }
}

You can access real-time and historical cryptocurrency market data through a lightweight MCP server that integrates with major exchanges. This server enables you to fetch current prices, analyze market trends, and retrieve detailed trading information in a standardized way for your LLMs and automation workflows.

How to use

Connect to the MCP server from your MCP client to query current prices, market summaries, top-volume pairs, historical OHLCV data, and price changes. Use the provided tools to request data for specific trading pairs and exchanges, and combine results to build insights or trigger automated actions.

How to install

Prerequisites: Python 3.9 or higher, and internet access to reach exchanges. Optionally, you can install via Smithery for automatic client setups.

# Install via Smithery (automatic Claude client setup)
npx -y @smithery/cli install mcp-server-ccxt --client claude

# Manual installation using pip and uv (recommended for local run)
uv pip install mcp ccxt

# Alternative pip installation
pip install mcp ccxt

Running the server

Start the MCP server locally by running the designated Python script.

python crypto_server.py

Connecting Claude Desktop

Open the Claude Desktop configuration and add a new MCP server entry that points to your local Python script.

{
  "mcpServers": {
    "crypto": {
      "command": "python",
      "args": ["/path/to/crypto_server.py"]
    }
  }
}

Available actions to query data

You can perform these actions to retrieve data from the MCP server. Each action corresponds to a tool you can invoke through your MCP client.

Examples of common queries

Use these prompts in Claude Desktop to fetch data after the server is connected.

What's the current price of BTC/USDT on Binance?
Show me a market summary for ETH/USDT
What are the top 5 trading pairs by volume on Coinbase?
Show me the last 7 days of BTC/USDT price data in 1-hour intervals
What's the 24-hour price change for SOL/USDT?

Available tools

get-price

Retrieve the current price for a specified trading pair on a chosen exchange.

get-market-summary

Fetch a comprehensive market summary including price, volume, bid/ask spreads for a given pair.

get-top-volumes

List top trading pairs by trading volume across supported exchanges.

list-exchanges

Return the list of all exchanges supported by the server.

get-historical-ohlcv

Provide historical OHLCV (candlestick) data for a pair over a chosen timeframe.

get-price-change

Calculate price changes over a specified period for a given pair.

get-volume-history

Return historical trading volume data for a pair over a selected window.