mcp-server-ccxt
The mcp-server-ccxt is an MCP server that provides real-time and historical cryptocurrency market data through integration with major exchanges. This server enables large language models (LLMs) like Claude to fetch current prices, analyze market trends, and access detailed trading information. Developed in Python, it utilizes the CCXT library to retrieve data from multiple exchanges.
GitHub Stars
54
User Rating
Not Rated
Favorites
0
Views
19
Forks
16
Issues
1
Installation
Difficulty
IntermediateEstimated Time
10-20 minutes
Requirements
Python 3.9以上CCXTライブラリInstallation
Installation
Prerequisites
Please specify required software and versions:Python: 3.9 or higher
CCXT: Latest version
Installation Steps
1. Install via Smithery
bash
npx -y @smithery/cli install mcp-server-ccxt --client claude
2. Manual Installation
bash
Using uv (recommended)
uv pip install mcp ccxt
Using pip
pip install mcp ccxt
Troubleshooting
Common Issues
Issue: Server won't start Solution: Check Python version and reinstall dependencies. Issue: Not recognized by Claude Desktop Solution: Verify configuration file path and syntax.Configuration
Configuration
Basic Configuration
Claude Desktop Setup
Edit~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or
%APPDATA%\Claude\claude_desktop_config.json (Windows):
json
{
"mcpServers": {
"crypto": {
"command": "python",
"args": ["/path/to/crypto_server.py"]
}
}
}
Environment Variables
Set the following environment variables as needed:bash
export API_KEY="your-api-key"
export DEBUG="true"
Advanced Configuration
Security Settings
Store API keys in environment variables or secure configuration files
Set appropriate file access permissions
Adjust logging levels
Performance Tuning
Configure timeout values
Limit concurrent executions
Set up caching
Examples
Examples
Basic Usage
Using with Claude Desktop
1Verify MCP Server Startup
Open Claude Desktop and confirm that the configuration has been loaded correctly.
2Execute Basic Commands
Available tools from this MCP server:
- get-price: Get current price
- get-market-summary: Fetch market summary
Programmatic Usage
python
Python example
import requests
def call_mcp_tool(tool_name, params):
response = requests.post(
'http://localhost:3000/mcp/call',
json={
'tool': tool_name,
'parameters': params
}
)
return response.json()
Usage example
result = call_mcp_tool('get-price', {
'pair': 'BTC/USDT'
})
print(result)
Use Cases
Executing commands to fetch current prices (e.g., current price of BTC/USDT)
Retrieving market summaries for specific trading pairs (e.g., market summary for ETH/USDT)
Analyzing historical price data (e.g., last 7 days of BTC/USDT data)
Displaying top 5 trading pairs by volume (e.g., top pairs on Kraken)
Additional Resources
Author Information
17
Followers
27
Repositories
5
Gists
0
Total Contributions
Related MCPs