加密交易者 Mcp 工具 适用于 Claude 桌面
概覽
什麼是 Crypto-Trader-MCP-ClaudeDesktop?
Crypto-Trader-MCP-ClaudeDesktop 是一個強大的工具,旨在通過 CoinGecko API 提供加密貨幣市場數據。這個應用程序專門為 Claude Desktop 設計,使用戶能夠訪問實時市場信息,使追蹤加密貨幣趨勢和做出明智的交易決策變得更容易。
Crypto-Trader-MCP-ClaudeDesktop 的特點
- 實時數據訪問:直接從 CoinGecko API 獲取最新的加密貨幣市場數據。
- 用戶友好的界面:設計簡單易用,適合新手和經驗豐富的交易者。
- MCP(模型上下文協議)集成:利用 MCP 框架增強數據處理和處理能力。
- 公共代碼庫:該項目是開源的,允許用戶根據需要貢獻和修改代碼。
- 跨平台兼容性:在 Claude Desktop 上無縫運行,確保在不同操作系統上流暢的用戶體驗。
如何使用 Crypto-Trader-MCP-ClaudeDesktop
- 安裝:從 GitHub 下載代碼庫,並按照 README 文件中的安裝說明進行操作。
- API 密鑰設置:從 CoinGecko 獲取 API 密鑰,並在應用程序中配置以開始獲取市場數據。
- 瀏覽界面:熟悉用戶界面,您可以查看各種加密貨幣指標,如價格、市值和交易量。
- 數據分析:利用提供的數據分析市場趨勢,做出明智的交易決策。
- 社區支持:通過 GitHub 問題或討論與社區互動,解決任何疑問或貢獻。
常見問題
問:Crypto-Trader-MCP-ClaudeDesktop 是免費使用的嗎?
答:是的,這是一個開源項目,免費提供在 GitHub 上。
問:我可以為該項目做貢獻嗎?
答:當然可以!歡迎貢獻。您可以分叉代碼庫,進行更改,並提交拉取請求。
問:它支持哪些平台?
答:該應用程序專為 Claude Desktop 設計,但也可以適應其他平台。
問:我該如何報告錯誤或問題?
答:您可以在 GitHub 代碼庫的“問題”部分報告任何錯誤或問題。
問:我在哪裡可以找到文檔?
答:文檔可在代碼庫中找到,包括設置說明和使用指南。
詳細
Crypto Trader MCP Tool for Claude Desktop
An MCP (Model Context Protocol) tool that provides cryptocurrency market data using the CoinGecko API, specifically designed for Claude Desktop.
Tutorial
For a detailed guide on setting up and using this tool, check out our Medium tutorial: Tutorial: Using Claude Desktop with Crypto Trader MCP Tool to Get Real-Time Cryptocurrency Data
Features
- Real-time cryptocurrency price data
- Detailed market information for cryptocurrencies
- Historical price charts
- Cryptocurrency search functionality
- Trending cryptocurrencies tracking
- Global market statistics
Setup
-
Ensure you have Python 3.10 or higher installed
-
Install dependencies:
pip install -r requirements.txt
Integration with Claude Desktop
- Configure your MCP settings in Claude Desktop by adding the following to your MCP configuration:
{
"mcpServers": {
"crypto-trader": {
"command": "py",
"args": ["-3.13", "C:\\Path\\To\\Your\\Crypto-Trader-MCP-ClaudeDesktop\\main.py"]
}
}
}
- Replace the path with the full path to your main.py file
- Run the server using:
py -3.13 main.py
- Keep the server running while using Claude Desktop
Available Tools
1. get_crypto_price
Get real-time cryptocurrency price information:
{
"symbol": "BTC",
"name": "bitcoin",
"price": 65423.12,
"change_24h": 2.5,
"volume_24h": 28345678901,
"market_cap": 1234567890123,
"timestamp": "2025-03-15T10:30:00"
}
2. get_crypto_market_data
Get detailed market information for a cryptocurrency:
{
"symbol": "ETH",
"name": "Ethereum",
"market_cap_rank": 2,
"current_price": 3521.48,
"market_cap": 423456789012,
"total_volume": 15834567890,
"high_24h": 3580.25,
"low_24h": 3475.62,
"price_change_24h": 45.86,
"price_change_percentage_24h": 1.32,
"circulating_supply": 120283456,
"total_supply": 120283456,
"max_supply": null,
"ath": 4878.26,
"ath_date": "2021-11-10T14:24:11.849Z",
"atl": 0.432979,
"atl_date": "2015-10-20T00:00:00.000Z"
}
3. get_crypto_historical_data
Get historical price data for a cryptocurrency:
{
"symbol": "BTC",
"name": "bitcoin",
"days": 30,
"prices": [
{
"date": "2025-02-15T00:00:00",
"price": 62150.23
},
{
"date": "2025-02-16T00:00:00",
"price": 63421.15
}
// ... more data points
]
}
4. search_crypto
Search for cryptocurrencies:
{
"results": [
{
"id": "bitcoin",
"symbol": "BTC",
"name": "Bitcoin"
},
{
"id": "bitcoin-cash",
"symbol": "BCH",
"name": "Bitcoin Cash"
}
// ... more results
]
}
5. get_trending_crypto
Get trending cryptocurrencies:
{
"trending_coins": [
{
"id": "pendle",
"name": "Pendle",
"symbol": "PENDLE",
"market_cap_rank": 85,
"price_btc": 0.00002356
}
// ... more trending coins
]
}
6. get_global_crypto_data
Get global cryptocurrency market data:
{
"active_cryptocurrencies": 12875,
"markets": 892,
"total_market_cap_usd": 2347890123456,
"total_volume_usd": 89723456789,
"market_cap_percentage": {
"BTC": 52.4,
"ETH": 18.2
// ... more cryptocurrencies
},
"updated_at": "2025-03-15T10:30:00"
}
Sample Queries
You can ask Claude Desktop questions like:
- "What's the current price of Bitcoin?"
- "Show me detailed market data for Ethereum"
- "What's the price history of Dogecoin for the last 30 days?"
- "Search for cryptocurrencies related to 'sol'"
- "Which cryptocurrencies are trending today?"
- "What's the total cryptocurrency market capitalization right now?"
Error Handling
All tools include proper error handling and will return an error message if something goes wrong:
{
"error": "Failed to fetch price for INVALID_SYMBOL"
}
Troubleshooting
If the MCP server is not working in Claude Desktop:
- Make sure the server is running - you should see output when you start the script
- Verify the path in your settings is correct and absolute
- Make sure Python 3.10+ is in your system PATH
- Check that all dependencies are installed
- Try restarting Claude Desktop
- Check logs for any error messages
Rate Limits
This tool uses the free CoinGecko API which has rate limits. Please be aware that very frequent requests may be throttled by the API.
License
MIT License
伺服器配置
{
"mcpServers": {
"crypto-trader-mcp-claude-desktop": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/metorial/mcp-container--saintdoresh--crypto-trader-mcp-claudedesktop--crypto-trader-mcp-claude-desktop",
"python main.py"
],
"env": {}
}
}
}