An MCP server for tracking and managing cryptocurrency portfolio allocations, enabling AI agents to query and optimize portfolio strategies in real time. - Portfolio Management: Add and track cryptocurrency holdings with real-time Binance prices. - Price Retrieval: Fetch current prices for any Binance trading pair (e.g., BTC/USDT). - Value History: Generate visual charts of portfolio value over ti
Add this skill
npx mdskills install kukapay/crypto-portfolio-mcpWell-documented MCP server with useful crypto portfolio tools and clear setup instructions
1# Crypto Portfolio MCP23An MCP server for tracking and managing cryptocurrency portfolio allocations, enabling AI agents to query and optimize portfolio strategies in real time.45678910## Features1112- **Portfolio Management**: Add and track cryptocurrency holdings with real-time Binance prices.13- **Price Retrieval**: Fetch current prices for any Binance trading pair (e.g., BTC/USDT).14- **Value History**: Generate visual charts of portfolio value over time.15- **Analysis Prompt**: Pre-built prompt for portfolio analysis with diversification and risk suggestions.16- **SQLite Storage**: Persistent storage of holdings in a local database.1718## Installation1920### Prerequisites21- Python 3.10+22- Git (optional, for cloning the repo)23- A compatible MCP client (e.g., [Claude Desktop](https://www.anthropic.com/claude))242526### Setup271. **Clone the Repository**:28 ```bash29 git clone https://github.com/kukapay/crypto-portfolio-mcp.git30 cd crypto-portfolio-mcp31 ```32332. **Install requirements**:34 ```bash35 pip install mcp[cli] ccxt matplotlib36 ```37383. **Install for Claude Desktop**:39 ```bash40 mcp install main.py --name "CryptoPortfolioMCP"41 ```4243 Or update the configuration file manually:4445 ```46 {47 "mcpServers": {48 "crypto-portfolio-mcp": {49 "command": "python",50 "args": [ "path/to/crypto-portfolio-mcp/main.py" ]51 }52 }53 }54 ```5556## Usage5758Once installed, interact with the server through an MCP client like Claude Desktop. Below are example commands:5960### Add a Holding61- **Prompt**: "Add 0.1 BTC to my portfolio"62- **Result**: Adds 0.1 BTC/USDT to your portfolio and confirms with "Added 0.1 BTC/USDT to portfolio".6364### Get Current Price65- **Prompt**: "What's the current price of ETH on Binance?"66- **Result**: Returns "Current price of ETH/USDT on Binance: $2000.50" (example price).6768### Portfolio Summary69- **Prompt**: "What's my current portfolio summary?"70- **Result**: Displays a formatted summary, e.g.:71 ```72 Portfolio Summary:73 BTC/USDT: 0.1 @ $60000.00 = $6000.0074 ETH/USDT: 2.0 @ $2000.00 = $4000.0075 Total Value: $10000.0076 ```7778### Portfolio Value History79- **Prompt**: "Show me my portfolio value history"80- **Result**: Generates and displays a PNG chart of your portfolio value over time.8182### Analyze Portfolio83- **Prompt**: "Analyze my crypto portfolio"84- **Result**: Provides an analysis with suggestions based on current holdings and Binance market trends.8586## Tools8788The server exposes the following tools:8990- **`get_portfolio_summary`**: Retrieves a text summary of your current portfolio.91- **`add_holding(coin_symbol: str, amount: float)`**: Adds a cryptocurrency holding (e.g., "BTC", 0.1).92- **`get_price(coin_symbol: str)`**: Fetches the current price of a trading pair from Binance.93- **`portfolio_value_history()`**: Generates a PNG chart of portfolio value history.9495See the source code docstrings for detailed parameter descriptions.9697## Database9899Holdings are stored in a SQLite database (`portfolio.db`) with the following schema:100```sql101CREATE TABLE holdings (102 id INTEGER PRIMARY KEY,103 coin_symbol TEXT, -- e.g., "BTC/USDT"104 amount REAL, -- Quantity of the asset105 purchase_date TEXT -- ISO format timestamp106)107```108109## License110111This project is licensed under the MIT License. See [LICENSE](LICENSE) for details.112
Full transparency — inspect the skill content before installing.