loading…
Search for a command to run...
loading…
Provides read-only portfolio management and analytics across Binance, Coinbase, and Kraken exchanges. It enables users to track holdings, analyze risk, and moni
Provides read-only portfolio management and analytics across Binance, Coinbase, and Kraken exchanges. It enables users to track holdings, analyze risk, and monitor market intelligence through 18 specialized tools.
A comprehensive read-only cryptocurrency portfolio management server built on the Model Context Protocol (MCP). Supports Binance, Coinbase, and Kraken exchanges with 18+ analytics tools for portfolio tracking, risk assessment, and market intelligence.
This MCP server provides real-time cryptocurrency portfolio analytics through Claude Desktop or any MCP-compatible client. It offers read-only access to your exchange accounts, ensuring your funds remain secure while providing deep insights into your holdings.
git clone https://github.com/lev-corrupted/CryptoPortfolioMCPServer.git
cd CryptoPortfolioMCPServer
chmod +x setup.sh
./setup.sh
cp .env.example .env
# Edit .env with your exchange API keys
source venv/bin/activate
python test_config.py
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"crypto-portfolio": {
"command": "/absolute/path/to/CryptoPortfolioMCPServer/venv/bin/python",
"args": ["-m", "src.server"],
"cwd": "/absolute/path/to/CryptoPortfolioMCPServer"
}
}
}
Replace /absolute/path/to/ with your actual installation path.
Create API keys with read/view permissions only. Never enable trading or withdrawal permissions.
.env file.env.envThe server provides 18 MCP tools across 7 categories:
get_total_portfolio_value - Aggregate portfolio value across all exchangesget_all_balances - Detailed balance breakdown with USD valuesget_portfolio_allocation - Asset allocation percentagesget_current_prices - Real-time cryptocurrency pricescalculate_portfolio_pnl - Profit/loss calculationsget_biggest_movers - Top gaining and losing assetsget_portfolio_performance - Historical performance metricscheck_price_alert - Single price condition monitoringcheck_multiple_alerts - Batch alert checkingget_diversification_score - Portfolio diversification rating (1-10)get_volatility_risk - Risk assessment based on asset volatilityget_stablecoin_ratio - Percentage in stablecoinscheck_arbitrage_opportunities - Cross-exchange price differencescheck_liquidity - Trading volume and liquidity analysisget_fear_greed_index - Crypto market sentiment indicatordetect_dust - Identify small-value holdingsget_exchange_distribution - Portfolio distribution across exchangescalculate_withdrawal_fees - Estimate transfer costsAfter configuration, ask Claude natural language questions:
"What is my total portfolio value?"
"Show me my portfolio allocation"
"What are the biggest movers in my portfolio today?"
"Is Bitcoin above $50,000?"
"What is my diversification score?"
"Are there any arbitrage opportunities?"
"What is the current crypto fear and greed index?"
CryptoPortfolioMCPServer/
├── src/
│ ├── server.py # Main MCP server
│ ├── exchanges/ # Exchange client implementations
│ │ ├── base_exchange.py
│ │ ├── binance_client.py
│ │ ├── coinbase_client.py
│ │ └── kraken_client.py
│ ├── analytics/ # Analytics engines
│ │ ├── portfolio.py
│ │ ├── risk.py
│ │ └── market.py
│ └── utils/ # Utilities
│ ├── config.py
│ └── helpers.py
├── .github/ # GitHub templates
├── requirements.txt
├── setup.sh
├── test_config.py
└── .env.example
Environment variables in .env:
# Exchange API credentials
BINANCE_API_KEY=your_binance_api_key
BINANCE_API_SECRET=your_binance_secret
COINBASE_API_KEY=your_coinbase_api_key
COINBASE_API_SECRET=your_coinbase_secret
KRAKEN_API_KEY=your_kraken_api_key
KRAKEN_API_SECRET=your_kraken_secret
# Optional settings
MOCK_MODE=false
PRICE_CACHE_DURATION=30
BALANCE_CACHE_DURATION=60
Check that API keys are correctly set in .env file.
Verify API key permissions are set to read-only and credentials are correct.
The server implements automatic rate limiting and retry logic.
Important Security Practices:
.env file to version controlThis server cannot execute trades or withdrawals - it only reads portfolio data.
See CONTRIBUTING.md for guidelines.
Contributions must:
MIT License - See LICENSE file for details.
This software is for informational purposes only and does not constitute financial advice. Users are solely responsible for their investment decisions. The server operates in read-only mode and cannot execute trades or transfers.
For issues or questions:
logs/crypto_mcp.logДобавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"crypto-portfolio-mcp-server": {
"command": "npx",
"args": []
}
}
}