remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Integrations
Provides access to Binance cryptocurrency exchange data and trading capabilities, including price information, order book data, and the ability to execute market/limit orders through the CCXT library
Allows retrieval of Bitcoin price information, historical OHLCV data, and execution of Bitcoin trades across supported cryptocurrency exchanges
Enables retrieval of market data and execution of trades on Coinbase cryptocurrency exchange, supporting features like price comparison, order management, and account balance checks
CCXT MCP Server
CCXT MCP Server is a server that allows AI models to interact with cryptocurrency exchange APIs through the Model Context Protocol (MCP). This server uses the CCXT library to provide access to more than 100 cryptocurrency exchanges and their trading capabilities.
🚀 Quick Start
Installation and Usage
Global Installation
Running with npx
You can run it directly without installation:
View help:
Configuration
Registering the MCP Server in Claude Desktop
- Open Claude Desktop Settings:
- Go to the Settings menu in the Claude Desktop app
- Find the "MCP Servers" section
- Add a New MCP Server:
- Click the "Add Server" button
- Server name:
ccxt-mcp
- Command:
npx @lazydino/ccxt-mcp
- Additional arguments (optional):
--config /path/to/config.json
- Save and Test the Server:
- Save the settings
- Test the connection with the "Test Connection" button
Configuration Methods - Two Options
Option 1: Include Account Information Directly in Claude Desktop Settings (Basic Method)
This method includes CCXT account information directly in the Claude Desktop settings file (claude_desktop_config.json):
Using this method, you don't need a separate configuration file. All settings are integrated into the Claude Desktop configuration file.
Option 2: Using a Separate Configuration File (Advanced Method)
To separate account information into a separate configuration file, set up as follows:
- Create a Separate Configuration File (e.g.,
ccxt-accounts.json
):
- Specify the Configuration File Path in Claude Desktop Settings:
Reasons to Use a Separate Configuration File:
- Prevents recursive reference issues
- Separates sensitive information like API keys
- Easier multi-environment configuration (development, testing, production)
- Improved configuration file version control
Key Features
- Market Information Retrieval:
- List exchanges
- View market information by exchange
- Get price information for specific symbols
- View order book information for specific symbols
- Search historical OHLCV data
- Trading Functions:
- Create market/limit orders
- Cancel orders and check status
- View account balances
- Check trading history
- Trading Analysis:
- Daily/weekly/monthly performance analysis
- Win rate calculation (last 7 days, 30 days, all time)
- Average profit/loss ratio (R-multiple)
- Maximum consecutive loss/profit series analysis
- Asset variation tracking
- Comprehensive performance metrics
- Trade pattern recognition
- Period-based return calculations
- Position Management:
- Capital ratio trading (e.g., enter with 5% of account capital)
- Futures market leverage setting (1-100x)
- Dynamic position sizing (volatility-based)
- Split buy/sell strategy implementation
- Risk Management:
- Technical indicator-based stop loss setting (e.g., lowest point among 10 candles on 5-minute chart)
- Volatility-based stop loss/take profit (ATR multiples)
- Maximum allowable loss limit (daily/weekly)
- Dynamic take profit setting (trailing profit)
How It Works
- User: Requests like "Tell me the Bitcoin price" or "Buy Ethereum on my Binance account"
- AI Model: Understands user requests and determines which MCP tools/resources to use
- MCP Protocol: Standardized communication between AI and CCXT MCP server
- CCXT MCP Server: Communicates with cryptocurrency exchange APIs using the CCXT library
- Exchange API: Provides actual data and executes trade orders
Using with AI Models
When registered with Claude Desktop, you can make the following types of requests to AI models:
Cautions and Recommended Prompts
When using AI models, consider the following cautions and use the prompt below for effective trading:
Notes:
- AI models sometimes confuse futures trading with spot trading.
- Without clear guidance on trading capital size, AI might get confused.
- Using the above prompt helps clearly communicate your trading intentions.
Basic Query Examples
Advanced Trading Query Examples
Position Management
Performance Analysis
Detailed Trading Analytics
Development
Building from Source
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
Distributed under the MIT License. See the LICENSE file for more information.
❤️ Support
If you find this project useful, please consider giving it a ⭐️ on GitHub!
You must be authenticated.
Tools
A server that allows AI models to interact with cryptocurrency exchange APIs through the Model Context Protocol, providing access to over 100 exchanges and their trading capabilities.
- 🚀 Quick Start
- Installation and Usage
- Configuration
- Key Features
- How It Works
- Using with AI Models
- Development
- 🤝 Contributing
- 📄 License
- ❤️ Support