SuperAPIAI Directory

crypto-portfolio-mcp

github.com · AI developer platforms

Track and manage cryptocurrency portfolio allocations.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsLinux

About this tool

Purpose: crypto-portfolio-mcp is an MCP (Model Context Protocol) server for tracking and managing cryptocurrency portfolio allocations, enabling AI agents to query and optimize portfolio strategies in real time.

Key capabilities:

  • Portfolio management: Add and track cryptocurrency holdings using Binance real-time prices.
  • Price retrieval: Query the current price of any Binance trading pair (such as BTC/USDT).
  • Value history: Generate a visualization chart (PNG) of portfolio value over time.
  • Analysis prompts: Built-in prompts for portfolio analysis, providing diversification and risk recommendations.
  • SQLite storage: Persist holdings to a local database (portfolio.db).

Usage:

  1. Prerequisites: Git (optional, for cloning the repository), a compatible MCP client (such as Claude Desktop).
  2. Clone the repository: git clone https://github.com/kukapay/crypto-portfolio-mcp.git then cd crypto-portfolio-mcp
  3. Install dependencies: pip install mcp[cli] ccxt matplotlib
  4. Install to Claude Desktop: mcp install main.py --name "CryptoPortfolioMCP"; or manually add it in the configuration file: {"mcpServers": {"crypto-portfolio-mcp": {"command": "python", "args": ["path/to/crypto-portfolio-mcp/main.py"]}}}
  5. Interact through an MCP client, for example with prompts such as "Add 0.1 BTC to my portfolio", "What's the current price of ETH on Binance?", "What's my current portfolio summary?", "Show me my portfolio value history", "Analyze my crypto portfolio".

Tools exposed by the server: get_portfolio_summary: Get a text summary of the current portfolio. add_holding(coin_symbol: str, amount: float): Add a cryptocurrency holding (such as "BTC", 0.1). get_price(coin_symbol: str): Get the current price of a trading pair from Binance. portfolio_value_history(): Generate a PNG chart of portfolio value history.

Limitations: Requires a Binance data source and a compatible MCP client; holdings are stored in local SQLite; see the source code docstrings for specific parameter descriptions. The project uses the MIT license.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools